comparison urogue/Makefile.in @ 273:51ddbe7b992d

UltraRogue: begin autoconfiscation. Build options can now be set with configure.
author John "Elwin" Edwards
date Mon, 04 Sep 2017 21:08:09 -0400
parents urogue/Makefile@c4b12d2d1dcd
children 603e8a99c859
comparison
equal deleted inserted replaced
272:1db299e868b8 273:51ddbe7b992d
1 # UltraRogue: The Ultimate Adventure in the Dungeons of Doom
2 # Copyright (C) 1985, 1986, 1992, 1993, 1995 Herb Chong
3 # All rights reserved.
4 #
5 # See the file LICENSE.TXT for full copyright and licensing information.
6
7 #
8 # Makefile for urogue
9 #
10
11 DISTNAME=urogue1.0.7
12
13 HDRS = dict.h dictutil.h rogue.h
14 OBJS = armor.o \
15 artifact.o \
16 bag.o \
17 chase.o \
18 command.o \
19 daemon.o \
20 daemons.o \
21 dict.o \
22 dictutil.o \
23 encumb.o \
24 fight.o \
25 getplay.o \
26 ident.o \
27 init.o \
28 io.o \
29 list.o \
30 magic.o \
31 main.o \
32 maze.o \
33 mdport.o \
34 memory.o \
35 misc.o \
36 monsdata.o \
37 monsters.o \
38 move.o \
39 newlvl.o \
40 options.o \
41 pack.o \
42 passages.o \
43 player.o \
44 potions.o \
45 random.o \
46 rings.o \
47 rip.o \
48 rooms.o \
49 save.o \
50 scrolls.o \
51 state.o \
52 status.o \
53 sticks.o \
54 things.o \
55 trader.o \
56 verify.o \
57 vers.o \
58 weapons.o \
59 wizard.o \
60 xcrypt.o
61
62 PROGRAM =@PROGRAM@
63
64 CFILES = armor.c \
65 artifact.c \
66 bag.c \
67 chase.c \
68 command.c \
69 daemon.c \
70 daemons.c \
71 dict.c \
72 dictutil.c \
73 encumb.c \
74 fight.c \
75 getplay.c \
76 ident.c \
77 init.c \
78 io.c \
79 list.c \
80 magic.c \
81 main.c \
82 maze.c \
83 mdport.c \
84 memory.c \
85 misc.c \
86 monsdata.c \
87 monsters.c \
88 move.c \
89 newlvl.c \
90 options.c \
91 pack.c \
92 passages.c \
93 player.c \
94 potions.c \
95 random.c \
96 rings.c \
97 rip.c \
98 rooms.c \
99 save.c \
100 scrolls.c \
101 state.c \
102 status.c \
103 sticks.c \
104 things.c \
105 trader.c \
106 verify.c \
107 vers.c \
108 weapons.c \
109 wizard.c \
110 xcrypt.c
111
112 MISC= Makefile README LICENSE.TXT history.txt TODO
113
114 CC = @CC@
115 CPPFLAGS=@DEFS@
116 CFLAGS=
117 CRLIB = @LIBS@
118 RM = rm -f
119 TAR = tar
120
121 .c.o:
122 $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $*.o $*.c
123
124 $(PROGRAM): $(OBJS) $(MAKEFILE)
125 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
126
127 clean:
128 rm -f $(OBJS) urogue a.out core *.map urogue.exe urogue.cat
129
130 dist.src:
131 make clean
132 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
133 gzip -f $(DISTNAME)-src.tar
134
135 dist.irix:
136 make clean
137 make CC=cc CFLAGS="-woff 1116 -O3" urogue
138 nroff -man urogue.6 | colcrt - > urogue.cat
139 tar cf $(DISTNAME)-irix.tar urogue urogue.cat README LICENSE.TXT
140 gzip -f $(DISTNAME)-irix.tar
141
142 dist.aix:
143 make clean
144 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" urogue
145 nroff -man urogue.6 | colcrt - > urogue.cat
146 tar cf $(DISTNAME)-aix.tar urogue urogue.cat README LICENSE.TXT
147 gzip -f $(DISTNAME)-aix.tar
148
149 dist.linux:
150 make clean
151 make urogue
152 groff -man urogue.6 | sed -e 's/.\x08//g' > urogue.cat
153 tar cf $(DISTNAME)-linux.tar urogue urogue.cat README LICENSE.TXT
154 gzip -f $(DISTNAME)-linux.tar
155
156 dist.interix:
157 make clean
158 make urogue
159 groff -P-b -P-u -man -Tascii urogue.6 > urogue.cat
160 tar cf $(DISTNAME)-interix.tar urogue urogue.cat README LICENSE.TXT
161 gzip -f $(DISTNAME)-interix.tar
162
163 dist.cygwin:
164 make clean
165 make urogue
166 groff -P-c -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
167 tar cf $(DISTNAME)-cygwin.tar urogue.exe urogue.cat README LICENSE.TXT
168 gzip -f $(DISTNAME)-cygwin.tar
169
170 dist.djgpp:
171 make clean
172 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" urogue
173 groff -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
174 rm -f $(DISTNAME)-djgpp.zip
175 zip $(DISTNAME)-djgpp.zip urogue.exe urogue.cat README LICENSE.TXT