-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.in
105 lines (86 loc) · 3.33 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ @X_LIBS@ @WIDGET_LIBS@ @X_PRE_LIBS@
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
MKINSTALLDIRS = $(SHELL) $(top_srcdir)/mkinstalldirs
X_CFLAGS=@X_CFLAGS@
GTK_CFLAGS=@GTK_CFLAGS@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
datadir=@datadir@
localstatedir=@localstatedir@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
ALL_CFLAGS = $(CFLAGS) $(CPPFLAGS) -I$(srcdir)
ALL_LDFLAGS = $(CFLAGS) $(LDFLAGS)
IMAGE_DEFINES=-DIMAGES=\"${datadir}/xbill\"
SCORE_DEFINES=-DSCOREFILE=\"${localstatedir}/xbill/scores\"
PROG = xbill
OBJS = Bill.o Bucket.o Cable.o Computer.o Game.o Horde.o Network.o \
OS.o Scorelist.o Spark.o UI.o util.o @WIDGET_OBJS@
XPMS = pixmaps/about.xpm pixmaps/apple.xpm pixmaps/billA_0.xpm \
pixmaps/billA_1.xpm pixmaps/billA_10.xpm pixmaps/billA_11.xpm \
pixmaps/billA_12.xpm pixmaps/billA_2.xpm pixmaps/billA_3.xpm \
pixmaps/billA_4.xpm pixmaps/billA_5.xpm pixmaps/billA_6.xpm \
pixmaps/billA_7.xpm pixmaps/billA_8.xpm pixmaps/billA_9.xpm \
pixmaps/billD_0.xpm pixmaps/billD_1.xpm pixmaps/billD_2.xpm \
pixmaps/billD_3.xpm pixmaps/billD_4.xpm pixmaps/billL_0.xpm \
pixmaps/billL_1.xpm pixmaps/billL_2.xpm pixmaps/billR_0.xpm \
pixmaps/billR_1.xpm pixmaps/billR_2.xpm pixmaps/bsd.xpm \
pixmaps/bsdcpu.xpm pixmaps/bucket.xpm pixmaps/hurd.xpm \
pixmaps/icon.xpm pixmaps/linux.xpm pixmaps/logo.xpm \
pixmaps/maccpu.xpm pixmaps/next.xpm pixmaps/nextcpu.xpm \
pixmaps/os2.xpm pixmaps/os2cpu.xpm \
pixmaps/palm.xpm pixmaps/palmcpu.xpm pixmaps/redhat.xpm \
pixmaps/sgi.xpm pixmaps/sgicpu.xpm pixmaps/spark_0.xpm \
pixmaps/spark_1.xpm pixmaps/sun.xpm pixmaps/suncpu.xpm \
pixmaps/toaster.xpm pixmaps/wingdows.xpm
XBMS = bitmaps/apple.xbm bitmaps/bsd.xbm bitmaps/bucket.xbm \
bitmaps/hand_down.xbm bitmaps/hand_down_mask.xbm bitmaps/hand_up.xbm \
bitmaps/hand_up_mask.xbm bitmaps/hurd.xbm bitmaps/linux.xbm \
bitmaps/next.xbm bitmaps/os2.xbm bitmaps/palm.xbm bitmaps/redhat.xbm \
bitmaps/sgi.xbm bitmaps/sun.xbm
MANDIR = man6
MAN = xbill.6
all: ${PROG}
xbill: ${OBJS}
$(CC) $(ALL_LDFLAGS) -o $@ ${OBJS} ${LIBS}
.c.o:
$(CC) $(ALL_CFLAGS) -c $< -o $@
Scorelist.o: Scorelist.c
$(CC) $(ALL_CFLAGS) $(SCORE_DEFINES) -c $< -o $@
x11-motif.o: x11-motif.c
$(CC) $(ALL_CFLAGS) $(X_CFLAGS) -c $< -o $@
x11-athena.o: x11-athena.c
$(CC) $(ALL_CFLAGS) $(X_CFLAGS) -c $< -o $@
x11.o: x11.c
$(CC) $(ALL_CFLAGS) $(X_CFLAGS) $(IMAGE_DEFINES) -c $< -o $@
gtk.o: gtk.c
$(CC) $(ALL_CFLAGS) $(GTK_CFLAGS) $(IMAGE_DEFINES) -c $< -o $@
install:
$(MKINSTALLDIRS) ${DESTDIR}${bindir}
$(INSTALL) ${PROG} ${DESTDIR}${bindir}/${PROG}
$(MKINSTALLDIRS) ${DESTDIR}${mandir}/${MANDIR}
$(INSTALL_DATA) ${srcdir}/${MAN} ${DESTDIR}${mandir}/${MANDIR}
$(MKINSTALLDIRS) ${DESTDIR}${localstatedir}/xbill
$(INSTALL_DATA) -m 0666 ${srcdir}/scores ${DESTDIR}${localstatedir}/xbill
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xbill
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xbill/pixmaps
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xbill/bitmaps
for i in ${XPMS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xbill/pixmaps ; \
done
for i in ${XBMS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xbill/bitmaps ; \
done
distclean::
rm -f config.cache config.h config.log config.status Makefile
distclean clean::
rm -f ${PROG} *.o
rm -f *core core*