Mercurial > hg > early-roguelike
comparison rogue4/Makefile @ 12:9535a08ddc39
Import Rogue 5.2 from the Roguelike Restoration Project (r1490)
author | edwarj4 |
---|---|
date | Sat, 24 Oct 2009 16:52:52 +0000 |
parents | |
children | 63b9fd7d70ce |
comparison
equal
deleted
inserted
replaced
11:949d558c2162 | 12:9535a08ddc39 |
---|---|
1 # | |
2 # Makefile for rogue | |
3 # @(#)Makefile 4.13 (Berkeley) 1/23/82 | |
4 # | |
5 # Rogue: Exploring the Dungeons of Doom | |
6 # Copyright (C) 1980, 1981, 1982 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 DISTNAME=rogue5.2.2 | |
13 | |
14 HDRS= rogue.h extern.h | |
15 DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \ | |
16 fight.o init.o io.o list.o main.o misc.o monsters.o move.o \ | |
17 new_level.o options.o pack.o passages.o potions.o rings.o rip.o \ | |
18 rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\ | |
19 xcrypt.o mdport.o | |
20 OBJS= $(DOBJS) mach_dep.o | |
21 CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \ | |
22 fight.c init.c io.c list.c main.c misc.c monsters.c move.c \ | |
23 new_level.c options.c pack.c passages.c potions.c rings.c rip.c \ | |
24 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \ | |
25 mach_dep.c xcrypt.c mdport.c | |
26 MISC= Makefile LICENSE.TXT rogue.6 rogue.me | |
27 | |
28 CC = gcc | |
29 CFLAGS= -O3 | |
30 CRLIB = -lcurses | |
31 RM = rm -f | |
32 TAR = tar | |
33 | |
34 SCOREFILE= | |
35 SF=-DSCOREFILE=\"rogue52.scr\" -DLOCKFILE=\"rogue52.lck\" | |
36 NAMELIST= | |
37 NL= | |
38 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 | |
39 MACHDEP= | |
40 | |
41 .c.o: | |
42 @echo $(CC) -c $(CFLAGS) $*.c | |
43 @$(CC) -c $(CFLAGS) $*.c -o $*.o | |
44 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - | |
45 # @cc -c $(CFLAGS) x.c | |
46 # @mv x.o $*.o | |
47 | |
48 rogue: $(HDRS) $(OBJS) # xs.o | |
49 # @rm -f x.c | |
50 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) | |
51 $(CC) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ | |
52 | |
53 vers.o: | |
54 $(CC) -c $(CFLAGS) vers.c | |
55 | |
56 mach_dep.o: mach_dep.c | |
57 $(CC) -c $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c | |
58 | |
59 xs.o: strings | |
60 ./xstr | |
61 $(CC) -c $(CFLAGS) xs.c | |
62 | |
63 xstr: xstr.c | |
64 $(CC) -s -O -o xstr xstr.c | |
65 | |
66 findpw: findpw.c xcrypt.c | |
67 $(CC) -s -o findpw findpw.c xcrypt.c | |
68 | |
69 prob: prob.o extern.o xs.o | |
70 $(CC) -O -o prob prob.o extern.o xs.o | |
71 | |
72 prob.o: prob.c rogue.h | |
73 $(CC) -O -c prob.c | |
74 | |
75 clean: | |
76 rm -f $(POBJS) $(OBJS) core a.out p.out rogue strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz rogue.cat rogue.doc xstr.exe | |
77 | |
78 dist.src: | |
79 make clean | |
80 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) | |
81 gzip -f $(DISTNAME)-src.tar | |
82 | |
83 debug.irix: | |
84 make clean | |
85 make CC=cc CFLAGS="-woff 1116 -g -DWIZARD" rogue | |
86 dist.irix: | |
87 make clean | |
88 make CC=cc CFLAGS="-woff 1116 -O3" rogue | |
89 tbl rogue.me | nroff -me | colcrt - > rogue.doc | |
90 nroff -man rogue.6 | colcrt - > rogue.cat | |
91 tar cf $(DISTNAME)-irix.tar rogue LICENSE.TXT rogue.cat rogue.doc | |
92 gzip -f $(DISTNAME)-irix.tar | |
93 | |
94 debug.aix: | |
95 make clean | |
96 make CC=xlc CFLAGS="-qmaxmem=16768 -g -qstrict -DWIZARD" rogue | |
97 dist.aix: | |
98 make clean | |
99 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" rogue | |
100 tbl rogue.me | nroff -me | colcrt - > rogue.doc | |
101 nroff -man rogue.6 | colcrt - > rogue.cat | |
102 tar cf $(DISTNAME)-aix.tar rogue LICENSE.TXT rogue.cat rogue.doc | |
103 gzip -f $(DISTNAME)-aix.tar | |
104 | |
105 debug.linux: | |
106 make clean | |
107 make CFLAGS="-g3 -DWIZARD" rogue | |
108 dist.linux: | |
109 make clean | |
110 make rogue | |
111 groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc | |
112 groff -man rogue.6 | sed -e 's/.\x08//g' > rogue.cat | |
113 tar cf $(DISTNAME)-linux.tar rogue LICENSE.TXT rogue.cat rogue.doc | |
114 gzip -f $(DISTNAME)-linux.tar | |
115 | |
116 debug.interix: | |
117 make clean | |
118 make CFLAGS="-g3 -DWIZARD" rogue | |
119 dist.interix: | |
120 make clean | |
121 make rogue | |
122 groff -P-b -P-u -t -me -Tascii rogue.me > rogue.doc | |
123 groff -P-b -P-u -man -Tascii rogue.6 > rogue.cat | |
124 tar cf $(DISTNAME)-interix.tar rogue LICENSE.TXT rogue.cat rogue.doc | |
125 gzip -f $(DISTNAME)-interix.tar | |
126 | |
127 debug.cygwin: | |
128 make clean | |
129 make CFLAGS="-g3 -DWIZARD" rogue | |
130 dist.cygwin: | |
131 make clean | |
132 make rogue | |
133 groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc | |
134 groff -P-c -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat | |
135 tar cf $(DISTNAME)-cygwin.tar rogue.exe LICENSE.TXT rogue.cat rogue.doc | |
136 gzip -f $(DISTNAME)-cygwin.tar | |
137 | |
138 debug.djgpp: | |
139 make clean | |
140 make CFLAGS="-g3 -DWIZARD" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" rogue | |
141 dist.djgpp: | |
142 make clean | |
143 make CFLAGS="-O3" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" rogue | |
144 groff -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc | |
145 groff -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat | |
146 rm -f $(DISTNAME)-djgpp.zip | |
147 zip $(DISTNAME)-djgpp.zip rogue.exe LICENSE.TXT rogue.cat rogue.doc |