2 # Useful ./configure options with respect to this Makefile:
5 # --exec_prefix=EXEC_PREFIX
9 # --with-sharedir=SHAREDIR
12 exec_prefix = @
exec_prefix@
20 CFLAGS
:=@CFLAGS@
'-DROOTDIR="$(sharedir)"'
22 LOADLIBES
:=@LOADLIBES@
25 # End of configure section
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
39 $(CC
) $(LDFLAGS
) -o
$@
$^
$(LOADLIBES
)
41 tworld.exe
: $(OBJS
) $(RESOURCES
)
42 $(CC
) $(LDFLAGS
) -o
$@
$^
$(LOADLIBES
)
45 $(CC
) -Wall
-W
-O
-o
$@
$^
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
74 echo \
#define COMPILE_TIME \"`date '+%Y %b %e %T %Z'`\" > comptime.h
80 liboshw.a
: oshw.h defs.h gen.h state.h err.h oshw
/*.c oshw
/*.h
87 tworldres.o
: tworld.ico
88 echo SDL_app ICON
$^ | windres
-o
$@
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
/.
112 rm -f
$(OBJS
) tworld mklynxcc comptime.h config.
*
113 rm -f tworldres.o tworld.exe mklynxcc.exe
114 (cd oshw
&& $(MAKE
) clean)
117 rm -f
$(OBJS
) tworld mklynxcc comptime.h config.
* configure
118 rm -f tworldres.o tworld.exe mklynxcc.exe
119 (cd oshw
&& $(MAKE
) spotless
)