comparison srogue/Makefile.in @ 101:15f8229f38c1

srogue: begin porting to autoconf. Super-Rogue can now be built with './configure && make', though 'make install' does not work yet, and there may be problems with portability.
author John "Elwin" Edwards
date Sun, 01 Sep 2013 20:50:52 -0700
parents
children 1906d183f1f5
comparison
equal deleted inserted replaced
100:1e88eb1942a5 101:15f8229f38c1
1 # Makefile for rogue
2 # %W% (Berkeley) %G%
3 #
4 # Super-Rogue
5 # Copyright (C) 1984 Robert D. Kindelberger
6 # All rights reserved.
7 #
8 # Based on "Rogue: Exploring the Dungeons of Doom"
9 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
10 # All rights reserved.
11 #
12 # See the file LICENSE.TXT for full copyright and licensing information.
13
14 DISTNAME=srogue9.0-1
15 PROGRAM=@PROGRAM@
16
17 HDRS= bob.h cx.h ncx.h rdk.h rogue.h
18 OBJS= vers.o armor.o chase.o command.o daemon.o daemons.o disply.o encumb.o \
19 fight.o global.o init.o io.o list.o main.o mdport.o misc.o monsters.o \
20 move.o new_leve.o options.o pack.o passages.o potions.o pstats.o \
21 rings.o rip.o rooms.o save.o scrolls.o state.o sticks.o things.o \
22 trader.o weapons.o wizard.o xcrypt.o
23 CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c disply.c encumb.c \
24 fight.c global.c init.c io.c list.c main.c mdport.c misc.c monsters.c \
25 move.c new_leve.c options.c pack.c passages.c potions.c pstats.c \
26 rings.c rip.c rooms.c save.c scrolls.c state.c sticks.c things.c \
27 trader.c weapons.c wizard.c xcrypt.c
28
29 MISC= Makefile LICENSE.TXT rogue.nr
30
31 CC = gcc
32 CFLAGS= -g
33 CPPFLAGS=@DEFS@
34 CRLIB = -lcurses
35 RM = rm -f
36 TAR = tar
37
38 $(PROGRAM): $(HDRS) $(OBJS)
39 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
40
41 tags: $(HDRS) $(CFILES)
42 ctags -u $?
43 ed - tags < :ctfix
44 sort tags -o tags
45
46 lint:
47 lint -hxbc $(CFILES) $(CRLIB) > linterrs
48
49 clean:
50 rm -f $(OBJS) core
51 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).doc
52
53 count:
54 wc -l $(HDRS) $(CFILES)
55
56 realcount:
57 cc -E $(CFILES) | ssp - | wc -l
58
59 update:
60 ar uv .SAVE $(CFILES) $(HDRS) $(MISC)
61
62 dist:
63 @mkdir dist
64 cp $(CFILES) $(HDRS) $(MISC) dist
65
66 dist.src:
67 make clean
68 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
69 gzip -f $(DISTNAME)-src.tar
70
71 dist.irix:
72 make clean
73 make CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM)
74 tbl rogue.nr | nroff -mm | colcrt - > $(PROGRAM).doc
75 tar cf $(DISTNAME)-irix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
76 gzip -f $(DISTNAME)-irix.tar
77
78 debug.aix:
79 make clean
80 make CC=xlc CFLAGS="-qmaxmem=16768 -g -DWIZARD -qstrict" $(PROGRAM)
81
82 dist.aix:
83 make clean
84 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM)
85 tbl rogue.nr | nroff -mm | colcrt - > $(PROGRAM).doc
86 tar cf $(DISTNAME)-aix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
87 gzip -f $(DISTNAME)-aix.tar
88
89 debug.linux:
90 make clean
91 make CFLAGS="-g -DWIZARD" $(PROGRAM)
92
93 dist.linux:
94 make clean
95 make $(PROGRAM)
96 groff -P-c -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' >$(PROGRAM).doc
97 tar cf $(DISTNAME)-linux.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
98 gzip -f $(DISTNAME)-linux.tar
99
100 debug.interix:
101 make clean
102 make CFLAGS="-g3 -DWIZARD" $(PROGRAM)
103
104 dist.interix:
105 make clean
106 make $(PROGRAM)
107 groff -P-b -P-u -t -mm -Tascii rogue.nr > $(PROGRAM).doc
108 tar cf $(DISTNAME)-interix.tar $(PROGRAM) LICENSE.TXT $(PROGRAM).doc
109 gzip -f $(DISTNAME)-interix.tar
110
111 debug.cygwin:
112 make clean
113 make CFLAGS="-g3 -DWIZARD" $(PROGRAM)
114
115 dist.cygwin:
116 make clean
117 make $(PROGRAM)
118 groff -P-c -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' >$(PROGRAM).doc
119 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe LICENSE.TXT $(PROGRAM).doc
120 gzip -f $(DISTNAME)-cygwin.tar
121
122 debug.djgpp:
123 make clean
124 make CFGLAGS="-g3 -DWIZARD" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM)
125
126 dist.djgpp:
127 make clean
128 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" $(PROGRAM)
129 groff -t -mm -Tascii rogue.nr | sed -e 's/.\x08//g' > $(PROGRAM).doc
130 rm -f $(DISTNAME)-djgpp.zip
131 zip $(DISTNAME)-djgpp.zip $(PROGRAM).exe LICENSE.TXT $(PROGRAM).doc