Mercurial > hg > early-roguelike
comparison xrogue/Makefile.in @ 156:3e1146666ae5
arogue7, xrogue: begin using autoconf.
File locations can be customized via './configure'. 'make install'
does not work yet. Options for wizard mode and load checks may not do
what is intended.
Fun fact: there's an enlightening epigraph in the introduction to the
autoconf manual.
author | John "Elwin" Edwards |
---|---|
date | Thu, 04 Jun 2015 10:41:39 -0400 |
parents | xrogue/Makefile@e6179860cb76 |
children | 2515e03b2f09 |
comparison
equal
deleted
inserted
replaced
155:1af259ac4ed2 | 156:3e1146666ae5 |
---|---|
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=@PACKAGE_TARNAME@@PACKAGE_VERSION@ | |
16 PROGRAM=@PROGRAM@ | |
17 | |
18 SAVEDIR=@SAVEDIR@ | |
19 SCOREFILE=@SCOREFILE@ | |
20 LOGFILE=@LOGFILE@ | |
21 GROUPOWNER=@GROUPOWNER@ | |
22 | |
23 O=o | |
24 | |
25 HDRS = rogue.h mach_dep.h network.h | |
26 | |
27 OBJS1 = vers.$(O) actions.$(O) bolt.$(O) chase.$(O) command.$(O) daemon.$(O) \ | |
28 daemons.$(O) eat.$(O) effects.$(O) fight.$(O) encumb.$(O) help.$(O) \ | |
29 init.$(O) io.$(O) list.$(O) main.$(O) maze.$(O) misc.$(O) monsters.$(O) | |
30 OBJS2 = mons_def.$(O) move.$(O) n_level.$(O) options.$(O) outside.$(O) pack.$(O) \ | |
31 passages.$(O) player.$(O) potions.$(O) rings.$(O) rip.$(O) rooms.$(O) \ | |
32 save.$(O) scrolls.$(O) sticks.$(O) things.$(O) trader.$(O) util.$(O) \ | |
33 weapons.$(O) wear.$(O) wizard.$(O) rogue.$(O) state.$(O) xcrypt.$(O) | |
34 OBJS = $(OBJS1) $(OBJS2) | |
35 | |
36 CFILES= vers.c actions.c bolt.c chase.c command.c daemon.c daemons.c eat.c \ | |
37 effects.c fight.c encumb.c help.c init.c io.c list.c main.c maze.c \ | |
38 misc.c monsters.c mons_def.c move.c n_level.c options.c outside.c \ | |
39 pack.c passages.c player.c potions.c rings.c rip.c rooms.c save.c \ | |
40 scrolls.c sticks.c things.c trader.c util.c weapons.c wear.c wizard.c \ | |
41 rogue.c state.c xcrypt.c | |
42 | |
43 MISC = Makefile README.TXT LICENSE.TXT $(PROGRAM).sln $(PROGRAM).vcproj | |
44 | |
45 CC = gcc | |
46 CPPFLAGS =@DEFS@ | |
47 CFLAGS= -O3 | |
48 LIBS = @LIBS@ | |
49 RM = rm -f | |
50 TAR = tar | |
51 .SUFFIXES: .obj | |
52 | |
53 .c.obj: | |
54 $(CC) $(CFLAGS) /c $*.c | |
55 | |
56 $(PROGRAM): $(HDRS) $(OBJS) | |
57 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ | |
58 | |
59 clean: | |
60 $(RM) $(OBJS1) | |
61 $(RM) $(OBJS2) | |
62 $(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip | |
63 | |
64 dist.src: | |
65 make clean | |
66 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) | |
67 gzip -f $(DISTNAME)-src.tar | |
68 | |
69 dist.irix: | |
70 make clean | |
71 make CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM) | |
72 tar cf $(DISTNAME)-irix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
73 gzip -f $(DISTNAME)-irix.tar | |
74 | |
75 dist.aix: | |
76 make clean | |
77 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM) | |
78 tar cf $(DISTNAME)-aix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
79 gzip -f $(DISTNAME)-aix.tar | |
80 | |
81 dist.linux: | |
82 make clean | |
83 make $(PROGRAM) | |
84 tar cf $(DISTNAME)-linux.tar $(PROGRAM) README.TXT LICENSE.TXT | |
85 gzip -f $(DISTNAME)-linux.tar | |
86 | |
87 dist.interix: | |
88 make clean | |
89 make $(PROGRAM) | |
90 tar cf $(DISTNAME)-interix.tar $(PROGRAM) README.TXT LICENSE.TXT | |
91 gzip -f $(DISTNAME)-interix.tar | |
92 | |
93 dist.cygwin: | |
94 make clean | |
95 make $(PROGRAM) | |
96 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe README.TXT LICENSE.TXT | |
97 gzip -f $(DISTNAME)-cygwin.tar | |
98 | |
99 dist.mingw32: | |
100 $(MAKE) RM="cmd /c del" clean | |
101 $(MAKE) CRLIB="-lpdcurses -lWs2_32" $(PROGRAM) | |
102 cmd /c del $(DISTNAME)-mingw32.zip | |
103 zip $(DISTNAME)-mingw32.zip $(PROGRAM).exe README.TXT LICENSE.TXT | |
104 | |
105 dist.msys: | |
106 $(MAKE) clean | |
107 $(MAKE) CRLIB="-lcurses -lWs2_32" $(PROGRAM) | |
108 tar cf $(DISTNAME)-msys.tar $(PROGRAM).exe README.TXT LICENSE.TXT | |
109 gzip -f $(DISTNAME)-msys.tar | |
110 | |
111 dist.djgpp: | |
112 make clean | |
113 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM) | |
114 rm -f $(DISTNAME)-djgpp.zip | |
115 zip $(DISTNAME)-djgpp.zip $(PROGRAM) README.TXT LICENSE.TXT | |
116 | |
117 dist.win32: | |
118 nmake O="obj" RM="-del" clean | |
119 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) | |
120 -del $(DISTNAME)-win32.zip | |
121 zip $(DISTNAME)-win32.zip $(PROGRAM).exe README.TXT LICENSE.TXT |