comparison urogue/Makefile @ 256:c495a4f288c6

Import UltraRogue from the Roguelike Restoration Project (r1490)
author John "Elwin" Edwards
date Tue, 31 Jan 2017 19:56:04 -0500
parents
children c4b12d2d1dcd
comparison
equal deleted inserted replaced
253:d9badb9c0179 256:c495a4f288c6
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 memory.o \
34 misc.o \
35 monsdata.o \
36 monsters.o \
37 move.o \
38 newlvl.o \
39 options.o \
40 pack.o \
41 passages.o \
42 player.o \
43 potions.o \
44 random.o \
45 rings.o \
46 rip.o \
47 rooms.o \
48 save.o \
49 scrolls.o \
50 state.o \
51 status.o \
52 sticks.o \
53 things.o \
54 trader.o \
55 verify.o \
56 vers.o \
57 weapons.o \
58 wizard.o
59
60 PROGRAM = ur
61
62 CFILES = armor.c \
63 artifact.c \
64 bag.c \
65 chase.c \
66 command.c \
67 daemon.c \
68 daemons.c \
69 dict.c \
70 dictutil.c \
71 encumb.c \
72 fight.c \
73 getplay.c \
74 ident.c \
75 init.c \
76 io.c \
77 list.c \
78 magic.c \
79 main.c \
80 maze.c \
81 memory.c \
82 misc.c \
83 monsdata.c \
84 monsters.c \
85 move.c \
86 newlvl.c \
87 options.c \
88 pack.c \
89 passages.c \
90 player.c \
91 potions.c \
92 random.c \
93 rings.c \
94 rip.c \
95 rooms.c \
96 save.c \
97 scrolls.c \
98 state.c \
99 status.c \
100 sticks.c \
101 things.c \
102 trader.c \
103 verify.c \
104 vers.c \
105 weapons.c \
106 wizard.c
107
108 MISC= Makefile README LICENSE.TXT history.txt TODO
109
110 CC = gcc
111 CFLAGS= -O3
112 CRLIB = -lcurses
113 RM = rm -f
114 TAR = tar
115
116 urogue: $(OBJS) $(MAKEFILE)
117 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
118
119 clean:
120 rm -f $(OBJS) urogue a.out core *.map urogue.exe urogue.cat
121
122 dist.src:
123 make clean
124 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
125 gzip -f $(DISTNAME)-src.tar
126
127 dist.irix:
128 make clean
129 make CC=cc CFLAGS="-woff 1116 -O3" urogue
130 nroff -man urogue.6 | colcrt - > urogue.cat
131 tar cf $(DISTNAME)-irix.tar urogue urogue.cat README LICENSE.TXT
132 gzip -f $(DISTNAME)-irix.tar
133
134 dist.aix:
135 make clean
136 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" urogue
137 nroff -man urogue.6 | colcrt - > urogue.cat
138 tar cf $(DISTNAME)-aix.tar urogue urogue.cat README LICENSE.TXT
139 gzip -f $(DISTNAME)-aix.tar
140
141 dist.linux:
142 make clean
143 make urogue
144 groff -man urogue.6 | sed -e 's/.\x08//g' > urogue.cat
145 tar cf $(DISTNAME)-linux.tar urogue urogue.cat README LICENSE.TXT
146 gzip -f $(DISTNAME)-linux.tar
147
148 dist.interix:
149 make clean
150 make urogue
151 groff -P-b -P-u -man -Tascii urogue.6 > urogue.cat
152 tar cf $(DISTNAME)-interix.tar urogue urogue.cat README LICENSE.TXT
153 gzip -f $(DISTNAME)-interix.tar
154
155 dist.cygwin:
156 make clean
157 make urogue
158 groff -P-c -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
159 tar cf $(DISTNAME)-cygwin.tar urogue.exe urogue.cat README LICENSE.TXT
160 gzip -f $(DISTNAME)-cygwin.tar
161
162 dist.djgpp:
163 make clean
164 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" urogue
165 groff -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
166 rm -f $(DISTNAME)-djgpp.zip
167 zip $(DISTNAME)-djgpp.zip urogue.exe urogue.cat README LICENSE.TXT