annotate srogue/Makefile.in @ 232:bac2c81fec78

Makefiles: don't rely on built-in implicit rules. Not all make implementations will use CPPFLAGS when compiling C files.
author John "Elwin" Edwards
date Tue, 08 Mar 2016 19:45:41 -0500
parents 455464db5800
children 0b3d1b38998f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
1 # Makefile for rogue
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
2 # %W% (Berkeley) %G%
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
3 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
4 # Super-Rogue
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
5 # Copyright (C) 1984 Robert D. Kindelberger
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
6 # All rights reserved.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
7 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
8 # Based on "Rogue: Exploring the Dungeons of Doom"
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
9 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
10 # All rights reserved.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
11 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
12 # See the file LICENSE.TXT for full copyright and licensing information.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
13
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
14 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
15 PACKAGE_TARNAME=@PACKAGE_TARNAME@-@PACKAGE_VERSION@
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
16 PROGRAM=@PROGRAM@
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
17
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
18 SCOREFILE=@SCOREFILE@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
19 LOGFILE=@LOGFILE@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
20 SAVEDIR=@SAVEDIR@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
21 GROUPOWNER=@GROUPOWNER@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
22
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
23 DESTDIR=
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
24 prefix=@prefix@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
25 exec_prefix=@exec_prefix@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
26 datarootdir=@datarootdir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
27 bindir=@bindir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
28 docdir=@docdir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
29
104
fbc75509f4cd Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents: 102
diff changeset
30 HDRS= bob.h cx.h ncx.h rdk.h rogue.h config.h
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
31 OBJS= vers.o armor.o chase.o command.o daemon.o daemons.o disply.o encumb.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
32 fight.o global.o init.o io.o list.o main.o mdport.o misc.o monsters.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
33 move.o new_leve.o options.o pack.o passages.o potions.o pstats.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
34 rings.o rip.o rooms.o save.o scrolls.o state.o sticks.o things.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
35 trader.o weapons.o wizard.o xcrypt.o
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
36 CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c disply.c encumb.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
37 fight.c global.c init.c io.c list.c main.c mdport.c misc.c monsters.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
38 move.c new_leve.c options.c pack.c passages.c potions.c pstats.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
39 rings.c rip.c rooms.c save.c scrolls.c state.c sticks.c things.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
40 trader.c weapons.c wizard.c xcrypt.c
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
41
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
42 DOCS= $(PROGRAM).doc
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
43 MISC= Makefile LICENSE.TXT rogue.nr
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
44
231
455464db5800 Don't force the use of GCC.
John "Elwin" Edwards
parents: 224
diff changeset
45 CC = @CC@
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 104
diff changeset
46 CFLAGS=
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
47 CPPFLAGS=@DEFS@
222
a666e4a034ed Fix curses library detection.
John "Elwin" Edwards
parents: 116
diff changeset
48 CRLIB = @LIBS@
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
49 RM = rm -f
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
50 TAR = tar
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
51 INSTALL=@INSTALL@
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
52 GROFF=@GROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
53 NROFF=@NROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
54 COLCRT=@COLCRT@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
55 TBL=@TBL@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
56
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
57 all: $(PROGRAM) docs
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
58
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
59 $(PROGRAM): $(HDRS) $(OBJS)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
60 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
61
232
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 231
diff changeset
62 .SUFFIXES: .c .o
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 231
diff changeset
63
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 231
diff changeset
64 .c.o:
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 231
diff changeset
65 $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 231
diff changeset
66
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
67 tags: $(HDRS) $(CFILES)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
68 ctags -u $?
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
69 ed - tags < :ctfix
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
70 sort tags -o tags
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
71
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
72 lint:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
73 lint -hxbc $(CFILES) $(CRLIB) > linterrs
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
74
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
75 clean:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
76 rm -f $(OBJS) core
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
77 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(DOCS)
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
78
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
79 docs: $(DOCS)
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
80
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
81 $(PROGRAM).doc: rogue.nr
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
82 if test "x$(GROFF)" != "x" ; then \
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
83 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii rogue.nr >$(PROGRAM).doc ;\
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
84 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
85 $(TBL) rogue.nr | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
86 fi
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
87
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
88 install: all
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
89 touch test
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
90 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
91 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
92 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
93 if test "x$(LOGFILE)" != "x" && test ! -f $(DESTDIR)$(LOGFILE) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
94 mkdir -p `dirname $(DESTDIR)$(LOGFILE)` ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
95 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
96 if test "x$(SAVEDIR)" != "x" && test ! -d $(DESTDIR)$(SAVEDIR) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
97 mkdir -p $(DESTDIR)$(SAVEDIR) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
98 mkdir -p $(DESTDIR)$(bindir)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
99 $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
100 -if test "x$(GROUPOWNER)" != "x" ; then \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
101 chgrp $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
102 chgrp $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
103 chgrp $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
104 chgrp $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
105 chmod 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
106 chmod 0464 $(DESTDIR)$(SCOREFILE) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
107 chmod 0464 $(DESTDIR)$(LOGFILE) ; \
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
108 chmod 0775 $(DESTDIR)$(SAVEDIR) ; \
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
109 fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
110 if test ! -d $(DESTDIR)$(docdir) ; \
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
111 then mkdir -p $(DESTDIR)$(docdir) ; fi
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
112 $(INSTALL) -m 0644 LICENSE.TXT $(DESTDIR)$(docdir)/LICENSE.TXT
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
113 $(INSTALL) -m 0644 rogue.nr $(DESTDIR)$(docdir)/$(PROGRAM).nr
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
114 $(INSTALL) -m 0644 $(PROGRAM).doc $(DESTDIR)$(docdir)/$(PROGRAM).doc
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
115 $(RM) test
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
116
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
117 uninstall:
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
118 $(RM) $(DESTDIR)$(bindir)/$(PROGRAM)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
119 $(RM) -r $(DESTDIR)$(docdir)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
120
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
121 reinstall: uninstall install
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
122
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
123 count:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
124 wc -l $(HDRS) $(CFILES)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
125
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
126 realcount:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
127 cc -E $(CFILES) | ssp - | wc -l
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
128
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
129 update:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
130 ar uv .SAVE $(CFILES) $(HDRS) $(MISC)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
131
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
132 dist:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
133 @mkdir dist
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
134 cp $(CFILES) $(HDRS) $(MISC) dist
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
135
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
136 dist.src:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
137 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
138 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
139 gzip -f $(DISTNAME)-src.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
140
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
141 dist.irix:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
142 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
143 make CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
144 tbl rogue.nr | nroff -mm | colcrt - > $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
145 tar cf $(DISTNAME)-irix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
146 gzip -f $(DISTNAME)-irix.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
147
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
148 debug.aix:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
149 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
150 make CC=xlc CFLAGS="-qmaxmem=16768 -g -DWIZARD -qstrict" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
151
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
152 dist.aix:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
153 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
154 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
155 tbl rogue.nr | nroff -mm | colcrt - > $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
156 tar cf $(DISTNAME)-aix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
157 gzip -f $(DISTNAME)-aix.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
158
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
159 debug.linux:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
160 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
161 make CFLAGS="-g -DWIZARD" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
162
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
163 dist.linux:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
164 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
165 make $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
166 groff -P-c -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' >$(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
167 tar cf $(DISTNAME)-linux.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
168 gzip -f $(DISTNAME)-linux.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
169
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
170 debug.interix:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
171 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
172 make CFLAGS="-g3 -DWIZARD" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
173
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
174 dist.interix:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
175 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
176 make $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
177 groff -P-b -P-u -t -mm -Tascii rogue.nr > $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
178 tar cf $(DISTNAME)-interix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
179 gzip -f $(DISTNAME)-interix.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
180
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
181 debug.cygwin:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
182 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
183 make CFLAGS="-g3 -DWIZARD" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
184
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
185 dist.cygwin:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
186 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
187 make $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
188 groff -P-c -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' >$(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
189 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe LICENSE.TXT $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
190 gzip -f $(DISTNAME)-cygwin.tar
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
191
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
192 debug.djgpp:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
193 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
194 make CFGLAGS="-g3 -DWIZARD" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
195
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
196 dist.djgpp:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
197 make clean
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
198 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
199 groff -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' > $(PROGRAM).doc
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
200 rm -f $(DISTNAME)-djgpp.zip
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
201 zip $(DISTNAME)-djgpp.zip $(PROGRAM).exe LICENSE.TXT $(PROGRAM).doc