updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / tworld / Makefile.in
blob2c52dee028dfc8fbf44eeaf82ff1d917d84149d2
2 # Useful ./configure options with respect to this Makefile:
4 # --prefix=PREFIX
5 # --exec_prefix=EXEC_PREFIX
6 # --bindir=BINDIR
7 # --datadir=DATADIR
8 # --mandir=MANDIR
9 # --with-sharedir=SHAREDIR
11 prefix = @prefix@
12 exec_prefix = @exec_prefix@
13 bindir = @bindir@
14 datadir = @datadir@
15 sharedir = @sharedir@
16 mandir = @mandir@
18 CC = @CC@
20 CFLAGS :=@CFLAGS@ '-DROOTDIR="$(sharedir)"'
21 LDFLAGS :=@LDFLAGS@
22 LOADLIBES :=@LOADLIBES@
25 # End of configure section
28 OBJS = \
29 tworld.o series.o play.o encoding.o solution.o res.o lxlogic.o mslogic.o \
30 unslist.o help.o score.o random.o cmdline.o fileio.o err.o liboshw.a
32 RESOURCES = tworldres.o
35 # Binaries
38 tworld: $(OBJS)
39 $(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES)
41 tworld.exe: $(OBJS) $(RESOURCES)
42 $(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES)
44 mklynxcc: mklynxcc.c
45 $(CC) -Wall -W -O -o $@ $^
48 # Object files
51 tworld.o : tworld.c defs.h gen.h err.h series.h res.h play.h score.h \
52 solution.h fileio.h help.h oshw.h cmdline.h ver.h
53 series.o : series.c series.h defs.h gen.h err.h fileio.h solution.h
54 play.o : play.c play.h defs.h gen.h err.h state.h random.h oshw.h res.h \
55 logic.h solution.h fileio.h
56 encoding.o : encoding.c encoding.h defs.h gen.h err.h state.h
57 solution.o : solution.c solution.h defs.h gen.h err.h fileio.h
58 res.o : res.c res.h defs.h gen.h fileio.h err.h oshw.h
59 lxlogic.o : lxlogic.c logic.h defs.h gen.h err.h state.h random.h
60 mslogic.o : mslogic.c logic.h defs.h gen.h err.h state.h random.h
61 unslist.o : unslist.c unslist.h gen.h err.h fileio.h
62 help.o : help.c help.h defs.h gen.h state.h oshw.h ver.h comptime.h
63 score.o : score.c score.h defs.h gen.h err.h play.h
64 random.o : random.c random.h defs.h gen.h
65 cmdline.o : cmdline.c cmdline.h gen.h
66 fileio.o : fileio.c fileio.h defs.h gen.h err.h
67 err.o : err.c oshw.h err.h
70 # Generated files
73 comptime.h:
74 echo \#define COMPILE_TIME \"`date '+%Y %b %e %T %Z'`\" > comptime.h
77 # Libraries
80 liboshw.a: oshw.h defs.h gen.h state.h err.h oshw/*.c oshw/*.h
81 (cd oshw && $(MAKE))
84 # Resources
87 tworldres.o: tworld.ico
88 echo SDL_app ICON $^ | windres -o $@
91 # Other
94 install: tworld
95 mkdir -p $(DESTDIR)$(bindir)
96 mkdir -p $(DESTDIR)$(sharedir)/sets
97 mkdir -p $(DESTDIR)$(sharedir)/data
98 mkdir -p $(DESTDIR)$(sharedir)/res
99 mkdir -p $(DESTDIR)$(mandir)/man6
100 cp -i ./tworld $(DESTDIR)$(bindir)/.
101 cp -i sets/*.dac $(DESTDIR)$(sharedir)/sets/.
102 cp -i data/*.dat $(DESTDIR)$(sharedir)/data/.
103 cp -i res/rc $(DESTDIR)$(sharedir)/res/.
104 cp -i res/*.bmp $(DESTDIR)$(sharedir)/res/.
105 cp -i res/*.txt $(DESTDIR)$(sharedir)/res/.
106 cp -i res/*.wav $(DESTDIR)$(sharedir)/res/.
107 cp -i docs/tworld.6 $(DESTDIR)$(mandir)/man6/.
109 all: tworld mklynxcc
111 clean:
112 rm -f $(OBJS) tworld mklynxcc comptime.h config.*
113 rm -f tworldres.o tworld.exe mklynxcc.exe
114 (cd oshw && $(MAKE) clean)
116 spotless:
117 rm -f $(OBJS) tworld mklynxcc comptime.h config.* configure
118 rm -f tworldres.o tworld.exe mklynxcc.exe
119 (cd oshw && $(MAKE) spotless)
120 rm -f Makefile