comparison arogue7/Makefile.in @ 156:3e1146666ae5

arogue7, xrogue: begin using autoconf. File locations can be customized via './configure'. 'make install' does not work yet. Options for wizard mode and load checks may not do what is intended. Fun fact: there's an enlightening epigraph in the introduction to the autoconf manual.
author John "Elwin" Edwards
date Thu, 04 Jun 2015 10:41:39 -0400
parents arogue7/Makefile@adfa37e67084
children 2515e03b2f09
comparison
equal deleted inserted replaced
155:1af259ac4ed2 156:3e1146666ae5
1 #
2 # Makefile for rogue
3 #
4 # Advanced Rogue
5 # Copyright (C) 1984, 1985, 1986 Michael Morgan, Ken Dalka and AT&T
6 # All rights reserved.
7 #
8 # Based on "Rogue: Exploring the Dungeons of Doom"
9 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
10 # All rights reserved.
11 #
12 # See the file LICENSE.TXT for full copyright and licensing information.
13 #
14
15 #
16 # Makefile for rogue
17 #
18
19
20 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@
21 PROGRAM=@PROGRAM@
22
23 SAVEDIR=@SAVEDIR@
24 SCOREFILE=@SCOREFILE@
25 LOGFILE=@LOGFILE@
26 GROUPOWNER=@GROUPOWNER@
27
28 O=o
29
30 HDRS= rogue.h mach_dep.h network.h
31
32 OBJS1 = vers.$(O) actions.$(O) chase.$(O) command.$(O) daemon.$(O) \
33 daemons.$(O) eat.$(O) effects.$(O) encumb.$(O) fight.$(O) init.$(O) \
34 io.$(O) list.$(O) main.$(O) maze.$(O) mdport.$(O) misc.$(O) \
35 monsters.$(O)
36 OBJS2 = move.$(O) new_level.$(O) options.$(O) outside.$(O) pack.$(O) \
37 passages.$(O) player.$(O) potions.$(O) rings.$(O) rip.$(O) rogue.$(O) \
38 rooms.$(O) save.$(O) scrolls.$(O) state.$(O) sticks.$(O) things.$(O) \
39 trader.$(O) util.$(O) weapons.$(O) wear.$(O) wizard.$(O) xcrypt.$(O)
40 OBJS = $(OBJS1) $(OBJS2)
41
42 CFILES= vers.c actions.c chase.c command.c daemon.c \
43 daemons.c eat.c effects.c encumb.c fight.c init.c \
44 io.c list.c main.c maze.c mdport.c misc.c monsters.c \
45 move.c new_level.c options.c outside.c pack.c \
46 passages.c player.c potions.c rings.c rip.c rogue.c \
47 rooms.c save.c scrolls.c state.c sticks.c things.c \
48 trader.c util.c weapons.c wear.c wizard.c xcrypt.c
49 MISC_C=
50 DOCSRC= aguide.mm
51 DOCS = $(PROGRAM).doc $(PROGRAM).html
52 MISC = Makefile $(MISC_C) LICENSE.TXT $(PROGRAM).sln $(PROGRAM).vcproj $(DOCS)\
53 $(DOCSRC)
54
55 CC = gcc
56 CPPFLAGS =@DEFS@
57 ROPTS =
58 COPTS = -O3
59 CFLAGS= $(COPTS) $(ROPTS)
60 LIBS = @LIBS@
61 RM = rm -f
62
63 .SUFFIXES: .obj
64
65 .c.obj:
66 $(CC) $(CFLAGS) /c $*.c
67
68 $(PROGRAM): $(HDRS) $(OBJS)
69 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
70
71 clean:
72 $(RM) $(OBJS1)
73 $(RM) $(OBJS2)
74 $(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).lck
75 $(RM) $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip
76
77 dist.src:
78 make clean
79 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
80 gzip -f $(DISTNAME)-src.tar
81
82 doc.nroff:
83 tbl aguide.mm | nroff -mm | colcrt - > arogue77.doc
84
85 doc.groff:
86 groff -P-c -t -mm -Tascii aguide.mm | sed -e 's/.\x08//g' > arogue77.doc
87 groff -t -mm -Thtml aguide.mm > arogue77.ht
88
89 dist.irix:
90 make clean
91 make CC=cc COPTS="-woff 1116 -O3" $(PROGRAM)
92 tar cf $(DISTNAME)-irix.tar $(PROGRAM) LICENSE.TXT $(DOCS)
93 gzip -f $(DISTNAME)-irix.tar
94
95 dist.aix:
96 make clean
97 make CC=xlc COPTS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM)
98 tar cf $(DISTNAME)-aix.tar $(PROGRAM) LICENSE.TXT $(DOCS)
99 gzip -f $(DISTNAME)-aix.tar
100
101 dist.linux:
102 make clean
103 make $(PROGRAM)
104 tar cf $(DISTNAME)-linux.tar $(PROGRAM) LICENSE.TXT $(DOCS)
105 gzip -f $(DISTNAME)-linux.tar
106
107 dist.interix:
108 @$(MAKE) clean
109 @$(MAKE) COPTS="-ansi" $(PROGRAM)
110 tar cf $(DISTNAME)-interix.tar $(PROGRAM) LICENSE.TXT $(DOCS)
111 gzip -f $(DISTNAME)-interix.tar
112
113 dist.cygwin:
114 @$(MAKE) --no-print-directory clean
115 @$(MAKE) --no-print-directory $(PROGRAM)
116 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe LICENSE.TXT $(DOCS)
117 gzip -f $(DISTNAME)-cygwin.tar
118
119 #
120 # Use MINGW32-MAKE to build this target
121 #
122 dist.mingw32:
123 @$(MAKE) --no-print-directory RM="cmd /c del" clean
124 @$(MAKE) --no-print-directory LIBS="-lpdcurses" $(PROGRAM)
125 cmd /c del $(DISTNAME)-mingw32.zip
126 zip $(DISTNAME)-mingw32.zip $(PROGRAM).exe LICENSE.TXT $(DOCS)
127
128 dist.msys:
129 @$(MAKE) --no-print-directory clean
130 @$(MAKE) --no-print-directory LIBS="-lcurses" $(PROGRAM)
131 tar cf $(DISTNAME)-msys.tar $(PROGRAM).exe LICENSE.TXT $(DOCS)
132 gzip -f $(DISTNAME)-msys.tar
133
134 dist.djgpp:
135 @$(MAKE) --no-print-directory clean
136 @$(MAKE) --no-print-directory LDFLAGS="-L$(DJDIR)/LIB" \
137 LIBS="-lpdcurses" $(PROGRAM)
138 rm -f $(DISTNAME)-djgpp.zip
139 zip $(DISTNAME)-djgpp.zip $(PROGRAM).exe LICENSE.TXT $(DOCS)
140
141 #
142 # Use NMAKE to build this targer
143 #
144 dist.win32:
145 @$(MAKE) /NOLOGO O="obj" RM="-del" clean
146 @$(MAKE) /NOLOGO O="obj" CC="CL" \
147 LIBS="..\pdcurses\pdcurses.lib shfolder.lib user32.lib Advapi32.lib" \
148 COPTS="-nologo -I..\pdcurses \
149 -Ox -wd4033 -wd4716" $(PROGRAM)
150 -del $(DISTNAME)-win32.zip
151 zip $(DISTNAME)-win32.zip $(PROGRAM).exe LICENSE.TXT $(DOCS)
152
153
154 actions.o: rogue.h
155 chase.o: rogue.h
156 command.o: rogue.h
157 command.o: mach_dep.h
158 daemon.o: rogue.h
159 daemons.o: rogue.h
160 eat.o: rogue.h
161 edit.o: mach_dep.h
162 edit.o: rogue.h
163 effects.o: rogue.h
164 encumb.o: rogue.h
165 fight.o: rogue.h
166 init.o: rogue.h
167 init.o: mach_dep.h
168 io.o: rogue.h
169 list.o: rogue.h
170 main.o: mach_dep.h
171 main.o: network.h
172 main.o: rogue.h
173 maze.o: rogue.h
174 misc.o: rogue.h
175 monsters.o: rogue.h
176 move.o: rogue.h
177 new_level.o: rogue.h
178 options.o: rogue.h
179 outside.o: rogue.h
180 pack.o: rogue.h
181 passages.o: rogue.h
182 player.o: rogue.h
183 potions.o: rogue.h
184 rings.o: rogue.h
185 rip.o: mach_dep.h
186 rip.o: network.h
187 rip.o: rogue.h
188 rogue.o: rogue.h
189 rooms.o: rogue.h
190 save.o: rogue.h
191 save.o: mach_dep.h
192 scrolls.o: rogue.h
193 sticks.o: rogue.h
194 things.o: rogue.h
195 trader.o: rogue.h
196 util.o: rogue.h
197 weapons.o: rogue.h
198 wear.o: rogue.h
199 wizard.o: rogue.h