You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

107 lines
3.4 KiB

  1. CC = @CC@
  2. CFLAGS = @CFLAGS@
  3. CPPFLAGS = @CPPFLAGS@
  4. LDFLAGS = @LDFLAGS@
  5. LIBS = @LIBS@ @X_LIBS@ @WIDGET_LIBS@ @X_PRE_LIBS@
  6. INSTALL=@INSTALL@
  7. INSTALL_DATA=@INSTALL_DATA@
  8. MKINSTALLDIRS = $(SHELL) $(top_srcdir)/mkinstalldirs
  9. X_CFLAGS=@X_CFLAGS@
  10. GTK_CFLAGS=@GTK_CFLAGS@
  11. prefix=@prefix@
  12. exec_prefix=@exec_prefix@
  13. bindir=@bindir@
  14. mandir=@mandir@
  15. datadir=@datadir@
  16. localstatedir=@localstatedir@
  17. top_srcdir = @top_srcdir@
  18. srcdir = @srcdir@
  19. VPATH = @srcdir@
  20. ALL_CFLAGS = $(CFLAGS) $(CPPFLAGS) -I$(srcdir)
  21. ALL_LDFLAGS = $(CFLAGS) $(LDFLAGS)
  22. IMAGE_DEFINES=-DIMAGES=\"${datadir}/xlennart\"
  23. SCORE_DEFINES=-DSCOREFILE=\"${localstatedir}/games/xlennart.scores\"
  24. PROG = xlennart
  25. OBJS = Bill.o Bucket.o Cable.o Computer.o Game.o Horde.o Network.o \
  26. OS.o Scorelist.o Spark.o UI.o util.o @WIDGET_OBJS@
  27. XPMS = pixmaps/about.xpm pixmaps/billA_0.xpm \
  28. pixmaps/billA_1.xpm pixmaps/billA_10.xpm pixmaps/billA_11.xpm \
  29. pixmaps/billA_12.xpm pixmaps/billA_2.xpm pixmaps/billA_3.xpm \
  30. pixmaps/billA_4.xpm pixmaps/billA_5.xpm pixmaps/billA_6.xpm \
  31. pixmaps/billA_7.xpm pixmaps/billA_8.xpm pixmaps/billA_9.xpm \
  32. pixmaps/billD_0.xpm pixmaps/billD_1.xpm pixmaps/billD_2.xpm \
  33. pixmaps/billD_3.xpm pixmaps/billD_4.xpm pixmaps/billL_0.xpm \
  34. pixmaps/billL_1.xpm pixmaps/billL_2.xpm pixmaps/billR_0.xpm \
  35. pixmaps/billR_1.xpm pixmaps/billR_2.xpm pixmaps/bsd.xpm \
  36. pixmaps/bsdcpu.xpm pixmaps/bucket.xpm pixmaps/arch.xpm \
  37. pixmaps/icon.xpm pixmaps/centos.xpm pixmaps/logo.xpm \
  38. pixmaps/maccpu.xpm pixmaps/debian.xpm pixmaps/nextcpu.xpm \
  39. pixmaps/gentoo.xpm pixmaps/openbsd.xpm pixmaps/os2cpu.xpm \
  40. pixmaps/mandriva.xpm pixmaps/openbsd.xpm\
  41. pixmaps/spark_0.xpm pixmaps/slackware.xpm pixmaps/suse.xpm \
  42. pixmaps/spark_1.xpm pixmaps/ubuntu.xpm pixmaps/sgicpu.xpm \
  43. pixmaps/suncpu.xpm pixmaps/toaster.xpm pixmaps/initfail.xpm
  44. XBMS = bitmaps/arch.xbm bitmaps/bsd.xbm bitmaps/bucket.xbm bitmaps/centos.xbm \
  45. bitmaps/debian.xbm bitmaps/gentoo.xbm bitmaps/hand_down.xbm \
  46. bitmaps/hand_down_mask.xbm bitmaps/hand_up.xbm bitmaps/hand_up_mask.xbm \
  47. bitmaps/initfail.xbm bitmaps/mandriva.xbm bitmaps/openbsd.xbm \
  48. bitmaps/slackware.xbm bitmaps/suse.xbm bitmaps/ubuntu.xbm
  49. MANDIR = man6
  50. MAN = xlennart.6
  51. all: ${PROG}
  52. xlennart: ${OBJS}
  53. $(CC) $(ALL_LDFLAGS) -o $@ ${OBJS} ${LIBS}
  54. .c.o:
  55. $(CC) $(ALL_CFLAGS) -c $< -o $@
  56. Scorelist.o: Scorelist.c
  57. $(CC) $(ALL_CFLAGS) $(SCORE_DEFINES) -c $< -o $@
  58. x11-motif.o: x11-motif.c
  59. $(CC) $(ALL_CFLAGS) $(X_CFLAGS) -c $< -o $@
  60. x11-athena.o: x11-athena.c
  61. $(CC) $(ALL_CFLAGS) $(X_CFLAGS) -c $< -o $@
  62. x11.o: x11.c
  63. $(CC) $(ALL_CFLAGS) $(X_CFLAGS) $(IMAGE_DEFINES) -c $< -o $@
  64. gtk.o: gtk.c
  65. $(CC) $(ALL_CFLAGS) $(GTK_CFLAGS) $(IMAGE_DEFINES) -c $< -o $@
  66. install:
  67. $(MKINSTALLDIRS) ${DESTDIR}${bindir}
  68. $(INSTALL) ${PROG} ${DESTDIR}${bindir}/${PROG}
  69. $(MKINSTALLDIRS) ${DESTDIR}${mandir}/${MANDIR}
  70. $(INSTALL_DATA) ${srcdir}/${MAN} ${DESTDIR}${mandir}/${MANDIR}
  71. $(MKINSTALLDIRS) ${DESTDIR}${localstatedir}/games
  72. $(INSTALL_DATA) ${srcdir}/scores ${DESTDIR}${localstatedir}/games/xlennart.scores.default
  73. $(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart
  74. $(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart/pixmaps
  75. $(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart/bitmaps
  76. for i in ${XPMS}; do \
  77. ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xlennart/pixmaps ; \
  78. done
  79. for i in ${XBMS}; do \
  80. ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xlennart/bitmaps ; \
  81. done
  82. distclean::
  83. rm -f config.cache config.h config.log config.status Makefile
  84. distclean clean::
  85. rm -f ${PROG} *.o
  86. rm -f *core core*: