Mercurial > hg > early-roguelike
annotate srogue/Makefile.in @ 155:1af259ac4ed2
arogue7, xrogue: fix save/restore of alchemy jugs.
state.c now saves the fuse that refills alchemy jugs, using the method
of numbering objects previously applied to Advanced Rogue 5. Alchemy
jugs that are empty when the game is saved will continue to function
after it is restored.
Savefile compatibility should not be affected.
author | John "Elwin" Edwards |
---|---|
date | Fri, 29 May 2015 17:34:04 -0400 |
parents | 97f8fdf9595c |
children | a666e4a034ed |
rev | line source |
---|---|
101 | 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 | |
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 | 16 PROGRAM=@PROGRAM@ |
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 | 31 OBJS= vers.o armor.o chase.o command.o daemon.o daemons.o disply.o encumb.o \ |
32 fight.o global.o init.o io.o list.o main.o mdport.o misc.o monsters.o \ | |
33 move.o new_leve.o options.o pack.o passages.o potions.o pstats.o \ | |
34 rings.o rip.o rooms.o save.o scrolls.o state.o sticks.o things.o \ | |
35 trader.o weapons.o wizard.o xcrypt.o | |
36 CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c disply.c encumb.c \ | |
37 fight.c global.c init.c io.c list.c main.c mdport.c misc.c monsters.c \ | |
38 move.c new_leve.c options.c pack.c passages.c potions.c pstats.c \ | |
39 rings.c rip.c rooms.c save.c scrolls.c state.c sticks.c things.c \ | |
40 trader.c weapons.c wizard.c xcrypt.c | |
41 | |
42 MISC= Makefile LICENSE.TXT rogue.nr | |
43 | |
44 CC = gcc | |
116
97f8fdf9595c
Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents:
104
diff
changeset
|
45 CFLAGS= |
101 | 46 CPPFLAGS=@DEFS@ |
47 CRLIB = -lcurses | |
48 RM = rm -f | |
49 TAR = tar | |
102
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
50 INSTALL=@INSTALL@ |
101 | 51 |
52 $(PROGRAM): $(HDRS) $(OBJS) | |
53 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ | |
54 | |
55 tags: $(HDRS) $(CFILES) | |
56 ctags -u $? | |
57 ed - tags < :ctfix | |
58 sort tags -o tags | |
59 | |
60 lint: | |
61 lint -hxbc $(CFILES) $(CRLIB) > linterrs | |
62 | |
63 clean: | |
64 rm -f $(OBJS) core | |
65 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).doc | |
66 | |
102
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
67 install: $(PROGRAM) |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
68 -touch test |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
69 -if test ! -f $(DESTDIR)$(SCOREFILE) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
70 then $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
71 -if test "x$(LOGFILE)" != "x" && test ! -f $(DESTDIR)$(LOGFILE) ; then \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
72 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
73 -if test "x$(SAVEDIR)" != "x" && test ! -d $(DESTDIR)$(SAVEDIR) ; then \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
74 mkdir -p $(DESTDIR)$(SAVEDIR) ; fi |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
75 -$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
76 -if test "x$(GROUPOWNER)" != "x" ; then \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
77 chgrp $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
78 chgrp $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
79 chgrp $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
80 chgrp $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
81 chmod 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
82 chmod 0464 $(DESTDIR)$(SCOREFILE) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
83 chmod 0464 $(DESTDIR)$(LOGFILE) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
84 chmod 0775 $(DESTDIR)$(SAVEDIR) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
85 fi |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
86 -if test ! -d $(DESTDIR)$(docdir) ; \ |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
87 then mkdir -p $(DESTDIR)$(docdir) ; fi |
1906d183f1f5
srogue: add install and uninstall targets to Makefile
John "Elwin" Edwards
parents:
101
diff
changeset
|
88 -$(INSTALL) -m 0644 LICENSE.TXT $(DESTDIR)$(docdir)/LICENSE.TXT |