-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.in
124 lines (103 loc) · 3.89 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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}/xlennart\"
SCORE_DEFINES=-DSCOREFILE=\"${localstatedir}/games/xlennart.scores\"
PROG = xlennart
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/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/arch.xpm \
pixmaps/icon.xpm pixmaps/centos.xpm pixmaps/logo.xpm \
pixmaps/maccpu.xpm pixmaps/debian.xpm pixmaps/nextcpu.xpm \
pixmaps/gentoo.xpm pixmaps/openbsd.xpm pixmaps/os2cpu.xpm \
pixmaps/mandriva.xpm pixmaps/openbsd.xpm\
pixmaps/spark_0.xpm pixmaps/slackware.xpm pixmaps/suse.xpm \
pixmaps/spark_1.xpm pixmaps/ubuntu.xpm pixmaps/sgicpu.xpm \
pixmaps/suncpu.xpm pixmaps/toaster.xpm pixmaps/initfail.xpm
XBMS = bitmaps/arch.xbm bitmaps/bsd.xbm bitmaps/bucket.xbm bitmaps/centos.xbm \
bitmaps/debian.xbm bitmaps/gentoo.xbm bitmaps/hand_down.xbm \
bitmaps/hand_down_mask.xbm bitmaps/hand_up.xbm bitmaps/hand_up_mask.xbm \
bitmaps/initfail.xbm bitmaps/mandriva.xbm bitmaps/openbsd.xbm \
bitmaps/slackware.xbm bitmaps/suse.xbm bitmaps/ubuntu.xbm
MANDIR = man6
MAN = xlennart.6
all: ${PROG}
xlennart: ${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}/games
$(INSTALL_DATA) ${srcdir}/scores ${DESTDIR}${localstatedir}/games/xlennart.scores.default
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart/pixmaps
$(MKINSTALLDIRS) ${DESTDIR}${datadir}/xlennart/bitmaps
for i in ${XPMS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xlennart/pixmaps ; \
done
for i in ${XBMS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xlennart/bitmaps ; \
done
uninstall:
if [ -f ${DESTDIR}${bindir}/${PROG} ] ; \
then \
rm ${DESTDIR}${bindir}/${PROG} ; \
fi;
if [ -f ${DESTDIR}${mandir}/${MANDIR}/${MAN} ] ; \
then \
rm ${DESTDIR}${mandir}/${MANDIR}/${MAN} ; \
fi;
if [ -f ${DESTDIR}${localstatedir}/games/xlennart.scores.default ] ; \
then \
rm ${DESTDIR}${localstatedir}/games/xlennart.scores.default ; \
fi;
if [ -d ${DESTDIR}${datadir}/xlennart ] ; \
then \
rm -r ${DESTDIR}${datadir}/xlennart ; \
fi;
distclean::
rm -f config.cache config.h config.log config.status Makefile
distclean clean::
rm -f ${PROG} *.o
rm -f *core core*: