Mercurial > hg > early-roguelike
comparison rogue5/Makefile.in @ 33:f502bf60e6e4
Import Rogue 5.4 from the Roguelike Restoration Project (r1490)
author | elwin |
---|---|
date | Mon, 24 May 2010 20:10:59 +0000 |
parents | |
children | 655c317b6237 |
comparison
equal
deleted
inserted
replaced
32:2dcd75e6a736 | 33:f502bf60e6e4 |
---|---|
1 ############################################################################### | |
2 # | |
3 # Makefile for rogue | |
4 # | |
5 # Rogue: Exploring the Dungeons of Doom | |
6 # Copyright (C) 1980-1983, 1985, 1999 Michael Toy, Ken Arnold and Glenn Wichman | |
7 # All rights reserved. | |
8 # | |
9 # See the file LICENSE.TXT for full copyright and licensing information. | |
10 # | |
11 ############################################################################### | |
12 | |
13 ############################################################################### | |
14 # Site configuration occurs beneath this comment | |
15 # Typically ./configure (autoconf tools) configures this section | |
16 # This section could be manually configured if autoconf/configure fails | |
17 ############################################################################### | |
18 | |
19 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@ | |
20 PACKAGE_TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ | |
21 PROGRAM=@PROGRAM@ | |
22 | |
23 O=o | |
24 | |
25 #CC=gcc | |
26 CC = @CC@ | |
27 | |
28 #CFLAGS=-O2 | |
29 CFLAGS= @CFLAGS@ | |
30 | |
31 #LIBS=-lcurses | |
32 LIBS = @LIBS@ | |
33 | |
34 #RM=rm -f | |
35 RM = rm -f | |
36 | |
37 #GROFF=groff | |
38 GROFF = @GROFF@ | |
39 | |
40 #NROFF=nroff | |
41 NROFF = @NROFF@ | |
42 | |
43 #TBL=tbl | |
44 TBL = @TBL@ | |
45 | |
46 #COLCRT=colcrt | |
47 COLCRT = @COLCRT@ | |
48 | |
49 #SED=sed | |
50 SED = @SED@ | |
51 | |
52 #SCOREFILE=rogue54.scr | |
53 SCOREFILE = @SCOREFILE@ | |
54 | |
55 #LOCKFILE=rogue54.lck | |
56 LOCKFILE = @LOCKFILE@ | |
57 | |
58 #GROUPOWNER=games | |
59 GROUPOWNER = @GROUPOWNER@ | |
60 | |
61 #CPPFLAGS=-DHAVE_CONFIG_H | |
62 CPPFLAGS =@DEFS@ @CPPFLAGS@ | |
63 | |
64 #DISTFILE = $(PROGRAM) | |
65 DISTFILE = $(DISTNAME)-@TARGET@ | |
66 | |
67 INSTALL=./install-sh | |
68 | |
69 #INSTGROUP=-g games | |
70 INSTGROUP= | |
71 #INSTOWNER=-u root | |
72 INSTOWNER= | |
73 | |
74 CHGRP=chgrp | |
75 | |
76 MKDIR=mkdir | |
77 | |
78 TOUCH=touch | |
79 | |
80 RMDIR=rmdir | |
81 | |
82 CHMOD=chmod | |
83 | |
84 DESTDIR= | |
85 | |
86 prefix=@prefix@ | |
87 exec_prefix=@exec_prefix@ | |
88 datarootdir=@datarootdir@ | |
89 datadir=@datadir@ | |
90 bindir=@bindir@ | |
91 mandir=@mandir@ | |
92 docdir=@docdir@ | |
93 man6dir = $(mandir)/man6 | |
94 | |
95 ############################################################################### | |
96 # Site configuration occurs above this comment | |
97 # It should not be necessary to change anything below this comment | |
98 ############################################################################### | |
99 | |
100 HDRS = rogue.h extern.h score.h | |
101 OBJS1 = vers.$(O) extern.$(O) armor.$(O) chase.$(O) command.$(O) \ | |
102 daemon.$(O) daemons.$(O) fight.$(O) init.$(O) io.$(O) list.$(O) \ | |
103 mach_dep.$(O) main.$(O) mdport.$(O) misc.$(O) monsters.$(O) \ | |
104 move.$(O) new_level.$(O) | |
105 OBJS2 = options.$(O) pack.$(O) passages.$(O) potions.$(O) rings.$(O) \ | |
106 rip.$(O) rooms.$(O) save.$(O) scrolls.$(O) state.$(O) sticks.$(O) \ | |
107 things.$(O) weapons.$(O) wizard.$(O) xcrypt.$(O) | |
108 OBJS = $(OBJS1) $(OBJS2) | |
109 CFILES = vers.c extern.c armor.c chase.c command.c daemon.c \ | |
110 daemons.c fight.c init.c io.c list.c mach_dep.c \ | |
111 main.c mdport.c misc.c monsters.c move.c new_level.c \ | |
112 options.c pack.c passages.c potions.c rings.c rip.c \ | |
113 rooms.c save.c scrolls.c state.c sticks.c things.c \ | |
114 weapons.c wizard.c xcrypt.c | |
115 MISC_C = findpw.c scedit.c scmisc.c | |
116 DOCSRC = rogue.me.in rogue.6.in rogue.doc.in rogue.html.in rogue.cat.in | |
117 DOCS = $(PROGRAM).doc $(PROGRAM).html $(PROGRAM).cat $(PROGRAM).me \ | |
118 $(PROGRAM).6 | |
119 AFILES = configure Makefile.in configure.ac config.h.in config.sub config.guess \ | |
120 install-sh rogue.6.in rogue.me.in rogue.html.in rogue.doc.in rogue.cat.in | |
121 MISC = Makefile.std LICENSE.TXT rogue54.sln rogue54.vcproj rogue.spec \ | |
122 rogue.png rogue.desktop | |
123 | |
124 .SUFFIXES: .obj | |
125 | |
126 .c.obj: | |
127 $(CC) $(CFLAGS) $(CPPFLAGS) /c $*.c | |
128 | |
129 .c.o: | |
130 $(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c | |
131 | |
132 $(PROGRAM): $(HDRS) $(OBJS) | |
133 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ | |
134 | |
135 clean: | |
136 $(RM) $(OBJS1) | |
137 $(RM) $(OBJS2) | |
138 $(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe | |
139 $(RM) $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip | |
140 $(RM) $(DISTNAME)/* | |
141 -rmdir $(DISTNAME) | |
142 | |
143 maintainer-clean: | |
144 $(RM) config.h | |
145 $(RM) Makefile | |
146 $(RM) config.status | |
147 $(RM) -r autom4te.cache | |
148 $(RM) config.log | |
149 $(RM) $(PROGRAM).scr $(PROGRAM).lck | |
150 | |
151 stddocs: | |
152 sed -e 's/@PROGRAM@/rogue/' -e 's/@SCOREFILE@/rogue.scr/' rogue.6.in > rogue.6 | |
153 sed -e 's/@PROGRAM@/rogue/' -e 's/@SCOREFILE@/rogue.scr/' rogue.me.in > rogue.me | |
154 sed -e 's/@PROGRAM@/rogue/' -e 's/@SCOREFILE@/rogue.scr/' rogue.html.in > rogue,html | |
155 sed -e 's/@PROGRAM@/rogue/' -e 's/@SCOREFILE@/rogue.scr/' rogue.doc.in > rogue.doc | |
156 sed -e 's/@PROGRAM@/rogue/' -e 's/@SCOREFILE@/rogue.scr/' rogue.cat.in > rogue.cat | |
157 | |
158 dist.src: | |
159 $(MAKE) $(MAKEFILE) clean | |
160 mkdir $(DISTNAME) | |
161 cp $(CFILES) $(HDRS) $(MISC) $(AFILES) $(DISTNAME) | |
162 tar cf $(DISTNAME)-src.tar $(DISTNAME) | |
163 gzip -f $(DISTNAME)-src.tar | |
164 rm -fr $(DISTNAME) | |
165 | |
166 findpw: findpw.c xcrypt.o mdport.o xcrypt.o | |
167 $(CC) -s -o findpw findpw.c xcrypt.o mdport.o -lcurses | |
168 | |
169 scedit: scedit.o scmisc.o vers.o mdport.o xcrypt.o | |
170 $(CC) -s -o scedit vers.o scedit.o scmisc.o mdport.o xcrypt.o -lcurses | |
171 | |
172 scmisc.o scedit.o: | |
173 $(CC) -O -c $(SF) $*.c | |
174 | |
175 $(PROGRAM).doc: rogue.me | |
176 if test "x$(GROFF)" != "x" -a "x$(SED)" != "x" ; then \ | |
177 $(GROFF) -P-c -t -me -Tascii rogue.me | $(SED) -e 's/.\x08//g' > $(PROGRAM).doc ;\ | |
178 elif test "x$(NROFF)" != "x" -a "x$(TBL)" != "x" -a "x$(COLCRT)" != "x" ; then \ | |
179 tbl rogue.me | $(NROFF) -me | colcrt - > $(PROGRAM).doc ;\ | |
180 fi | |
181 | |
182 $(PROGRAM).cat: rogue.6 | |
183 if test "x$(GROFF)" != "x" -a "x$(SED)" != "x" ; then \ | |
184 $(GROFF) -Tascii -man rogue.6 | $(SED) -e 's/.\x08//g' > $(PROGRAM).cat ;\ | |
185 elif test "x$(NROFF)" != "x" -a "x$(TBL)" != "x" -a "x$(COLCRT)" != "x" ; then \ | |
186 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\ | |
187 fi | |
188 | |
189 dist: clean $(PROGRAM) | |
190 tar cf $(DISTFILE).tar $(PROGRAM) LICENSE.TXT $(DOCS) | |
191 gzip -f $(DISTFILE).tar | |
192 | |
193 install: $(PROGRAM) | |
194 -$(TOUCH) test | |
195 -if test ! -f $(DESTDIR)$(SCOREFILE) ; then $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi | |
196 -$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) | |
197 -if test "x$(GROUPOWNER)" != "x" ; then \ | |
198 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \ | |
199 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \ | |
200 $(CHMOD) 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \ | |
201 $(CHMOD) 0464 $(DESTDIR)$(SCOREFILE) ; \ | |
202 fi | |
203 -if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi | |
204 -if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi | |
205 -$(INSTALL) -m 0644 rogue.doc $(DESTDIR)$(docdir)/$(PROGRAM).doc | |
206 -$(INSTALL) -m 0644 rogue.html $(DESTDIR)$(docdir)/$(PROGRAM).html | |
207 -$(INSTALL) -m 0644 rogue.cat $(DESTDIR)$(docdir)/$(PROGRAM).cat | |
208 -$(INSTALL) -m 0644 LICENSE.TXT $(DESTDIR)$(docdir)/LICENSE.TXT | |
209 -$(INSTALL) -m 0644 rogue.me $(DESTDIR)$(docdir)/$(PROGRAM).me | |
210 -if test ! -f $(DESTDIR)$(LOCKFILE) ; then $(INSTALL) -m 0666 test $(DESTDIR)$(LOCKFILE) ; $(RM) $(DESTDIR)$(LOCKFILE) ; fi | |
211 -$(RM) test | |
212 | |
213 uninstall: | |
214 -$(RM) $(DESTDIR)$(bindir)/$(PROGRAM) | |
215 -$(RM) $(DESTDIR)$(man6dir)/$(PROGRAM).6 | |
216 -$(RM) $(DESTDIR)$(docdir)$(PROGRAM)/$(PROGRAM).doc | |
217 -$(RM) $(DESTDIR)$(LOCKFILE) | |
218 -$(RMDIR) $(DESTDIR)$(docdir)$(PROGRAM) | |
219 | |
220 reinstall: uninstall install |