Mercurial > hg > early-roguelike
annotate rogue4/Makefile.in @ 109:ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
author | John "Elwin" Edwards |
---|---|
date | Mon, 09 Sep 2013 07:58:47 -0400 |
parents | fbc75509f4cd |
children | 97f8fdf9595c |
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 | |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
54 CPPFLAGS=@DEFS@ |
51 | 55 CRLIB = -lcurses |
56 RM = rm -f | |
57 TAR = tar | |
58 TOUCH=touch | |
59 MKDIR=mkdir | |
60 CHGRP=chgrp | |
61 CHMOD=chmod | |
62 INSTALL=@INSTALL@ | |
63 | |
64 SF= | |
65 NAMELIST= | |
66 NL= | |
67 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 | |
68 MACHDEP= | |
69 | |
70 .c.o: | |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
71 @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
|
72 @$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o |
51 | 73 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - |
74 # @cc -c $(CFLAGS) x.c | |
75 # @mv x.o $*.o | |
76 | |
77 @PROGRAM@: $(HDRS) $(OBJS) # xs.o | |
78 # @rm -f x.c | |
79 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) | |
80 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ | |
81 | |
82 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
|
83 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ main.c |
51 | 84 |
85 vers.o: | |
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) vers.c |
51 | 87 |
88 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
|
89 $(CC) -c $(CPPFLAGS) $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c |
51 | 90 |
91 xs.o: strings | |
92 ./xstr | |
93 $(CC) -c $(CFLAGS) xs.c | |
94 | |
95 xstr: xstr.c | |
96 $(CC) -s -O -o xstr xstr.c | |
97 | |
98 findpw: findpw.c xcrypt.c | |
99 $(CC) -s -o findpw findpw.c xcrypt.c | |
100 | |
101 prob: prob.o extern.o xs.o | |
102 $(CC) -O -o prob prob.o extern.o xs.o | |
103 | |
104 prob.o: prob.c rogue.h | |
105 $(CC) -O -c prob.c | |
106 | |
107 clean: | |
108 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 | |