annotate srogue/Makefile.in @ 229:50b89f165a34

Use uniform return types for functions related to options. Functions for printing options now return void. Functions for setting options now return int. Argument types still vary, though converting all the option pointers to void* would be possible.
author John "Elwin" Edwards
date Sun, 06 Mar 2016 14:45:18 -0500
parents 4d0f53998e8a
children 455464db5800
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
1 # Makefile for rogue
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
2 # %W% (Berkeley) %G%
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
3 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
4 # Super-Rogue
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
5 # Copyright (C) 1984 Robert D. Kindelberger
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
6 # All rights reserved.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
7 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
8 # Based on "Rogue: Exploring the Dungeons of Doom"
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
9 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
10 # All rights reserved.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
11 #
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
12 # See the file LICENSE.TXT for full copyright and licensing information.
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
13
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
14 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
15 PACKAGE_TARNAME=@PACKAGE_TARNAME@-@PACKAGE_VERSION@
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
16 PROGRAM=@PROGRAM@
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
17
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
18 SCOREFILE=@SCOREFILE@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
19 LOGFILE=@LOGFILE@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
20 SAVEDIR=@SAVEDIR@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
21 GROUPOWNER=@GROUPOWNER@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
22
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
23 DESTDIR=
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
24 prefix=@prefix@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
25 exec_prefix=@exec_prefix@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
26 datarootdir=@datarootdir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
27 bindir=@bindir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
28 docdir=@docdir@
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
29
104
fbc75509f4cd Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents: 102
diff changeset
30 HDRS= bob.h cx.h ncx.h rdk.h rogue.h config.h
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
31 OBJS= vers.o armor.o chase.o command.o daemon.o daemons.o disply.o encumb.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
32 fight.o global.o init.o io.o list.o main.o mdport.o misc.o monsters.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
33 move.o new_leve.o options.o pack.o passages.o potions.o pstats.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
34 rings.o rip.o rooms.o save.o scrolls.o state.o sticks.o things.o \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
35 trader.o weapons.o wizard.o xcrypt.o
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
36 CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c disply.c encumb.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
37 fight.c global.c init.c io.c list.c main.c mdport.c misc.c monsters.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
38 move.c new_leve.c options.c pack.c passages.c potions.c pstats.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
39 rings.c rip.c rooms.c save.c scrolls.c state.c sticks.c things.c \
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
40 trader.c weapons.c wizard.c xcrypt.c
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
41
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
42 DOCS= $(PROGRAM).doc
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
43 MISC= Makefile LICENSE.TXT rogue.nr
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
44
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
45 CC = gcc
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 104
diff changeset
46 CFLAGS=
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
47 CPPFLAGS=@DEFS@
222
a666e4a034ed Fix curses library detection.
John "Elwin" Edwards
parents: 116
diff changeset
48 CRLIB = @LIBS@
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
49 RM = rm -f
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
50 TAR = tar
102
1906d183f1f5 srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents: 101
diff changeset
51 INSTALL=@INSTALL@
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
52 GROFF=@GROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
53 NROFF=@NROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
54 COLCRT=@COLCRT@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
55 TBL=@TBL@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
56
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
57 all: $(PROGRAM) docs
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
58
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
59 $(PROGRAM): $(HDRS) $(OBJS)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
60 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
61
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
62 tags: $(HDRS) $(CFILES)
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
63 ctags -u $?
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
64 ed - tags < :ctfix
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
65 sort tags -o tags
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
66
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
67 lint:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
68 lint -hxbc $(CFILES) $(CRLIB) > linterrs
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
69
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
70 clean:
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
71 rm -f $(OBJS) core
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
72 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(DOCS)
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
73
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
74 docs: $(DOCS)
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
75
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
76 $(PROGRAM).doc: rogue.nr
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
77 if test "x$(GROFF)" != "x" ; then \
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
78 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii rogue.nr >$(PROGRAM).doc ;\
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
79 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
80 $(TBL) rogue.nr | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 222
diff changeset
81 fi
101
15f8229f38c1 srogue: begin porting to autoconf.
John "Elwin" Edwards
parents:
diff changeset
82
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
83 install: all
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
84 touch test
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
85 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
86 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
87 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: