Mercurial > hg > early-roguelike
annotate rogue4/Makefile.in @ 104:fbc75509f4cd
Add config.h to the list of headers in the Makefiles.
Some .o files need to be rebuilt if config.h changes. Adding it to the
list of headers may still fail to solve the problem, because some of
the Makefiles use implicit rules or do not list dependencies properly.
author | John "Elwin" Edwards |
---|---|
date | Tue, 03 Sep 2013 14:14:48 -0700 |
parents | 9fb343307b6b |
children | ec9db3bb6b0b |
rev | line source |
---|---|
51 | 1 # |
2 # Makefile for rogue | |
3 # @(#)Makefile 4.13 (Berkeley) 1/23/82 | |
4 # | |
5 # Rogue: Exploring the Dungeons of Doom | |
6 # Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman | |
7 # All rights reserved. | |
8 # | |
9 # See the file LICENSE.TXT for full copyright and licensing information. | |
10 # | |
11 | |
12 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@ | |
13 PACKAGE_TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ | |
14 PROGRAM=@PROGRAM@ | |
15 | |
16 CC = @CC@ | |
17 LIBS = @LIBS@ | |
18 | |
19 #SCOREFILE=\"/usr/local/games/roguelike/rogue4.scr\" | |
20 SCOREFILE=@SCOREFILE@ | |
21 #LOGFILE=\"/usr/local/games/roguelike/rogue4.log\" | |
22 LOGFILE=@LOGFILE@ | |
23 #SAVEDIR=\"/usr/local/games/roguelike/rogue4save/\" | |
24 SAVEDIR=@SAVEDIR@ | |
25 #LOCKFILE=\"/usr/local/games/roguelike/rogue4save/rogue4.lck\" | |
26 LOCKFILE=@LOCKFILE@ | |
27 #GROUPOWNER=games | |
28 GROUPOWNER=@GROUPOWNER@ | |
29 | |
93 | 30 DESTDIR= |
51 | 31 prefix=@prefix@ |
32 exec_prefix=@exec_prefix@ | |
33 datarootdir=@datarootdir@ | |
34 bindir=@bindir@ | |
35 mandir=@mandir@ | |
36 man6dir=$(mandir)/man6 | |
37 docdir=@docdir@ | |
38 | |
104
fbc75509f4cd
Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents:
96
diff
changeset
|
39 HDRS= rogue.h extern.h config.h |
51 | 40 DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \ |
41 fight.o init.o io.o list.o main.o misc.o monsters.o move.o \ | |
42 new_level.o options.o pack.o passages.o potions.o rings.o rip.o \ | |
43 rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\ | |
44 xcrypt.o mdport.o | |
45 OBJS= $(DOBJS) mach_dep.o | |
46 CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \ | |
47 fight.c init.c io.c list.c main.c misc.c monsters.c move.c \ | |
48 new_level.c options.c pack.c passages.c potions.c rings.c rip.c \ | |
49 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \ | |
50 mach_dep.c xcrypt.c mdport.c | |
51 MISC= Makefile LICENSE.TXT rogue.6 rogue.me | |
52 | |
53 CFLAGS= -O3 | |
54 CRLIB = -lcurses | |
55 RM = rm -f | |
56 TAR = tar | |
57 TOUCH=touch | |
58 MKDIR=mkdir | |
59 CHGRP=chgrp | |
60 CHMOD=chmod | |
61 INSTALL=@INSTALL@ | |
62 | |
63 SF= | |
64 NAMELIST= | |
65 NL= | |
66 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 | |
67 MACHDEP= | |
68 | |
69 .c.o: | |
70 @echo $(CC) -c $(CFLAGS) $*.c | |
71 @$(CC) -c $(CFLAGS) $*.c -o $*.o | |
72 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - | |
73 # @cc -c $(CFLAGS) x.c | |
74 # @mv x.o $*.o | |
75 | |
76 @PROGRAM@: $(HDRS) $(OBJS) # xs.o | |
77 # @rm -f x.c | |
78 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) | |
79 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ | |
80 | |
81 main.o: main.c $(HDRS) | |
82 $(CC) -c $(CFLAGS) -o $@ main.c | |
83 | |
84 vers.o: | |
85 $(CC) -c $(CFLAGS) vers.c | |
86 | |
87 mach_dep.o: mach_dep.c | |
88 $(CC) -c $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c | |
89 | |
90 xs.o: strings | |
91 ./xstr | |
92 $(CC) -c $(CFLAGS) xs.c | |
93 | |
94 xstr: xstr.c | |
95 $(CC) -s -O -o xstr xstr.c | |
96 | |
97 findpw: findpw.c xcrypt.c | |
98 $(CC) -s -o findpw findpw.c xcrypt.c | |
99 | |
100 prob: prob.o extern.o xs.o | |
101 $(CC) -O -o prob prob.o extern.o xs.o | |
102 | |
103 prob.o: prob.c rogue.h | |
104 $(CC) -O -c prob.c | |
105 | |
106 clean: | |
107 rm -f $(POBJS) $(OBJS) core a.out p.out @PROGRAM@ strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz rogue.cat rogue.doc xstr.exe | |
108 | |
109 maintainer-clean: | |
110 make clean | |
111 $(RM) Makefile config.h | |