annotate rogue4/Makefile.in @ 234:c10fe421b8fb

Fix various overlooked causes of warnings. GCC5 now produces under 300 lines of warnings, but the remaining ones will require more complex solutions.
author John "Elwin" Edwards
date Sun, 06 Mar 2016 21:02:59 -0500
parents 4d0f53998e8a
children bac2c81fec78
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
1 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
2 # Makefile for rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
3 # @(#)Makefile 4.13 (Berkeley) 1/23/82
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
4 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
5 # Rogue: Exploring the Dungeons of Doom
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
6 # Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
7 # All rights reserved.
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
8 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
9 # See the file LICENSE.TXT for full copyright and licensing information.
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
10 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
11
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
12 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
13 PACKAGE_TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
14 PROGRAM=@PROGRAM@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
15
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
16 CC = @CC@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
17 LIBS = @LIBS@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
18
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
19 SCOREFILE=@SCOREFILE@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
20 LOGFILE=@LOGFILE@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
21 SAVEDIR=@SAVEDIR@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
22 LOCKFILE=@LOCKFILE@
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 109
diff changeset
23
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
24 GROUPOWNER=@GROUPOWNER@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
25
93
8f7c082fde46 Don't set DESTDIR via configure.
John "Elwin" Edwards
parents: 51
diff changeset
26 DESTDIR=
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
27 prefix=@prefix@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
28 exec_prefix=@exec_prefix@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
29 datarootdir=@datarootdir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
30 bindir=@bindir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
31 mandir=@mandir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
32 man6dir=$(mandir)/man6
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
33 docdir=@docdir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
34
104
fbc75509f4cd Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents: 96
diff changeset
35 HDRS= rogue.h extern.h config.h
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
36 DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
37 fight.o init.o io.o list.o main.o misc.o monsters.o move.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
38 new_level.o options.o pack.o passages.o potions.o rings.o rip.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
39 rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
40 xcrypt.o mdport.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
41 OBJS= $(DOBJS) mach_dep.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
42 CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
43 fight.c init.c io.c list.c main.c misc.c monsters.c move.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
44 new_level.c options.c pack.c passages.c potions.c rings.c rip.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
45 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
46 mach_dep.c xcrypt.c mdport.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
47 MISC= Makefile LICENSE.TXT rogue.6 rogue.me
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
48 DOCS= $(PROGRAM).cat $(PROGRAM).doc
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
49
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 109
diff changeset
50 CFLAGS=
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
51 CPPFLAGS=@DEFS@
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
52 CRLIB = -lcurses
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
53 RM = rm -f
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
54 TAR = tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
55 TOUCH=touch
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
56 MKDIR=mkdir
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
57 CHGRP=chgrp
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
58 CHMOD=chmod
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
59 INSTALL=@INSTALL@
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
60 GROFF=@GROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
61 NROFF=@NROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
62 COLCRT=@COLCRT@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
63 TBL=@TBL@
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
64
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
65 SF=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
66 NAMELIST=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
67 NL=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
68 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
69 MACHDEP=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
70
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
71 .c.o:
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
72 @echo $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
73 @$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
74 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c -
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
75 # @cc -c $(CFLAGS) x.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
76 # @mv x.o $*.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
77
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
78 all: $(PROGRAM) docs
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
79
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
80 $(PROGRAM): $(HDRS) $(OBJS) # xs.o
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
81 # @rm -f x.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
82 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB)
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
83 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
84
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
85 main.o: main.c $(HDRS)
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
86 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ main.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
87
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
88 vers.o:
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
89 $(CC) -c $(CPPFLAGS) $(CFLAGS) vers.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
90
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
91 mach_dep.o: mach_dep.c
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
92 $(CC) -c $(CPPFLAGS) $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
93
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
94 xs.o: strings
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
95 ./xstr
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
96 $(CC) -c $(CFLAGS) xs.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
97
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
98 xstr: xstr.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
99 $(CC) -s -O -o xstr xstr.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
100
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
101 findpw: findpw.c xcrypt.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
102 $(CC) -s -o findpw findpw.c xcrypt.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
103
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset