cpp.c and scanner.c also depend on common.h

This commit is contained in:
Pierre Pronchery 2009-07-27 23:08:22 +00:00
parent b75baf4903
commit de05811a6f
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ CC = cc
CPPFLAGSF=
CPPFLAGS= -I ../include
CFLAGSF = -W
CFLAGS = -Wall -g
CFLAGS = -Wall -g -O2
AR = ar -rc
RANLIB = ranlib
LD = $(CC) -shared
@ -37,10 +37,10 @@ cpp_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -L . -L $(LIBDIR) -Wl,-rpath,$(LIBDIR) -l c
cpp: $(cpp_OBJS) libcpp.so
$(CC) -o cpp $(cpp_OBJS) $(cpp_LDFLAGS)
cpp.o: cpp.c ../include/cpp.h
cpp.o: cpp.c common.h ../include/cpp.h
$(CC) $(libcpp_CFLAGS) -c cpp.c
scanner.o: scanner.c ../include/cpp.h
scanner.o: scanner.c common.h ../include/cpp.h
$(CC) $(libcpp_CFLAGS) -c scanner.c
main.o: main.c ../include/cpp.h

View File

@ -1,7 +1,7 @@
targets=libcpp,cpp
cppflags=-I ../include
cflags_force=-W
cflags=-Wall -g
cflags=-Wall -g -O2
dist=Makefile,common.h
[libcpp]
@ -12,10 +12,10 @@ ldflags=-L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l System
install=$(LIBDIR)
[cpp.c]
depends=../include/cpp.h
depends=common.h,../include/cpp.h
[scanner.c]
depends=../include/cpp.h
depends=common.h,../include/cpp.h
[cpp]
type=binary