comparison 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
comparison
equal deleted inserted replaced
108:2f41b9635c34 109:ec9db3bb6b0b
49 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.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 50 mach_dep.c xcrypt.c mdport.c
51 MISC= Makefile LICENSE.TXT rogue.6 rogue.me 51 MISC= Makefile LICENSE.TXT rogue.6 rogue.me
52 52
53 CFLAGS= -O3 53 CFLAGS= -O3
54 CPPFLAGS=@DEFS@
54 CRLIB = -lcurses 55 CRLIB = -lcurses
55 RM = rm -f 56 RM = rm -f
56 TAR = tar 57 TAR = tar
57 TOUCH=touch 58 TOUCH=touch
58 MKDIR=mkdir 59 MKDIR=mkdir
65 NL= 66 NL=
66 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 67 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4
67 MACHDEP= 68 MACHDEP=
68 69
69 .c.o: 70 .c.o:
70 @echo $(CC) -c $(CFLAGS) $*.c 71 @echo $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
71 @$(CC) -c $(CFLAGS) $*.c -o $*.o 72 @$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o
72 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - 73 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c -
73 # @cc -c $(CFLAGS) x.c 74 # @cc -c $(CFLAGS) x.c
74 # @mv x.o $*.o 75 # @mv x.o $*.o
75 76
76 @PROGRAM@: $(HDRS) $(OBJS) # xs.o 77 @PROGRAM@: $(HDRS) $(OBJS) # xs.o
77 # @rm -f x.c 78 # @rm -f x.c
78 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) 79 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB)
79 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ 80 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
80 81
81 main.o: main.c $(HDRS) 82 main.o: main.c $(HDRS)
82 $(CC) -c $(CFLAGS) -o $@ main.c 83 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ main.c
83 84
84 vers.o: 85 vers.o:
85 $(CC) -c $(CFLAGS) vers.c 86 $(CC) -c $(CPPFLAGS) $(CFLAGS) vers.c
86 87
87 mach_dep.o: mach_dep.c 88 mach_dep.o: mach_dep.c
88 $(CC) -c $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c 89 $(CC) -c $(CPPFLAGS) $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c
89 90
90 xs.o: strings 91 xs.o: strings
91 ./xstr 92 ./xstr
92 $(CC) -c $(CFLAGS) xs.c 93 $(CC) -c $(CFLAGS) xs.c
93 94