Mercurial > hg > early-roguelike
comparison xrogue/Makefile @ 133:e6179860cb76
Import XRogue 8.0 from the Roguelike Restoration Project (r1490)
author | John "Elwin" Edwards |
---|---|
date | Tue, 21 Apr 2015 08:55:20 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
124:d10fc4a065ac | 133:e6179860cb76 |
---|---|
1 # XRogue: Expeditions into the Dungeons of Doom | |
2 # Copyright (C) 1991 Robert Pietkivitch | |
3 # All rights reserved. | |
4 # | |
5 # Based on "Advanced Rogue" | |
6 # Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T | |
7 # All rights reserved. | |
8 # | |
9 # Based on "Rogue: Exploring the Dungeons of Doom" | |
10 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman | |
11 # All rights reserved. | |
12 # | |
13 # See the file LICENSE.TXT for full copyright and licensing information. | |
14 | |
15 DISTNAME=xrogue8.0.3 | |
16 PROGRAM=xrogue | |
17 | |
18 O=o | |
19 | |
20 HDRS = rogue.h mach_dep.h network.h | |
21 | |
22 OBJS1 = vers.$(O) actions.$(O) bolt.$(O) chase.$(O) command.$(O) daemon.$(O) \ | |
23 daemons.$(O) eat.$(O) effects.$(O) fight.$(O) encumb.$(O) help.$(O) \ | |
24 init.$(O) io.$(O) list.$(O) main.$(O) maze.$(O) misc.$(O) monsters.$(O) | |
25 OBJS2 = mons_def.$(O) move.$(O) n_level.$(O) options.$(O) outside.$(O) pack.$(O) \ | |
26 passages.$(O) player.$(O) potions.$(O) rings.$(O) rip.$(O) rooms.$(O) \ | |
27 save.$(O) scrolls.$(O) sticks.$(O) things.$(O) trader.$(O) util.$(O) \ | |
28 weapons.$(O) wear.$(O) wizard.$(O) rogue.$(O) state.$(O) xcrypt.$(O) | |
29 OBJS = $(OBJS1) $(OBJS2) | |
30 | |
31 CFILES= vers.c actions.c bolt.c chase.c command.c daemon.c daemons.c eat.c \ | |
32 effects.c fight.c encumb.c help.c init.c io.c list.c main.c maze.c \ | |
33 misc.c monsters.c mons_def.c move.c n_level.c options.c outside.c \ | |
34 pack.c passages.c player.c potions.c rings.c rip.c rooms.c save.c \ | |
35 scrolls.c sticks.c things.c trader.c util.c weapons.c wear.c wizard.c \ | |
36 rogue.c state.c xcrypt.c | |
37 | |
38 MISC = Makefile README.TXT LICENSE.TXT $(PROGRAM).sln $(PROGRAM).vcproj | |
39 | |
40 CC = gcc | |
41 CFLAGS= -O3 | |
42 CRLIB = -lcurses | |
43 RM = rm -f | |
44 TAR = tar | |
45 .SUFFIXES: .obj | |
46 | |
47 .c.obj: | |
48 $(CC) $(CFLAGS) /c $*.c | |
49 | |
50 $(PROGRAM): $(HDRS) $(OBJS) | |
51 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ | |
52 | |
53 clean: | |
54 $(RM) $(OBJS1) | |
55 $(RM) $(OBJS2) | |
56 $(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip | |
57 | |
58 dist.src: | |
59 make clean | |
60 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) | |
61 gzip -f $(DISTNAME)-src.tar | |
62 | |
63 dist.irix: | |
64 make clean | |
65 make CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM) | |
66 tar cf $(DISTNAME)-irix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
67 gzip -f $(DISTNAME)-irix.tar | |
68 | |
69 dist.aix: | |
70 make clean | |
71 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM) | |
72 tar cf $(DISTNAME)-aix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
73 gzip -f $(DISTNAME)-aix.tar | |
74 | |
75 dist.linux: | |
76 make clean | |
77 make $(PROGRAM) | |
78 tar cf $(DISTNAME)-linux.tar $(PROGRAM) README.TXT LICENSE.TXT | |
79 gzip -f $(DISTNAME)-linux.tar | |
80 | |
81 dist.interix: | |
82 make clean | |
83 make $(PROGRAM) | |
84 tar cf $(DISTNAME)-interix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
85 gzip -f $(DISTNAME)-interix.tar | |
86 | |
87 dist.cygwin: | |
88 make clean | |
89 make $(PROGRAM) | |
90 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe README.TXT LICENSE.TXT | |
91 gzip -f $(DISTNAME)-cygwin.tar | |
92 | |
93 dist.mingw32: | |
94 $(MAKE) RM="cmd /c del" clean | |
95 $(MAKE) CRLIB="-lpdcurses -lWs2_32" $(PROGRAM) | |
96 cmd /c del $(DISTNAME)-mingw32.zip | |
97 zip $(DISTNAME)-mingw32.zip $(PROGRAM).exe README.TXT LICENSE.TXT | |
98 | |
99 dist.msys: | |
100 $(MAKE) clean | |
101 $(MAKE) CRLIB="-lcurses -lWs2_32" $(PROGRAM) | |
102 tar cf $(DISTNAME)-msys.tar $(PROGRAM).exe README.TXT LICENSE.TXT | |
103 gzip -f $(DISTNAME)-msys.tar | |
104 | |
105 dist.djgpp: | |
106 make clean | |
107 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM) | |
108 rm -f $(DISTNAME)-djgpp.zip | |
109 zip $(DISTNAME)-djgpp.zip $(PROGRAM) README.TXT LICENSE.TXT | |
110 | |
111 dist.win32: | |
112 nmake O="obj" RM="-del" clean | |
113 nmake O="obj" CC="CL" CRLIB="..\pdcurses.lib shell32.lib user32.lib Advapi32.lib Ws2_32.lib" CFLAGS="-DPDC_STATIC_BUILD -nologo -I.. -Ox -wd4033 -wd4716" $(PROGRAM) | |
114 -del $(DISTNAME)-win32.zip | |
115 zip $(DISTNAME)-win32.zip $(PROGRAM).exe README.TXT LICENSE.TXT |