From 77a77bc4ae4c7cfaa0673efa76fefc9c72b7904e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 4 May 2008 02:04:20 +0000 Subject: [PATCH] Synchronized dependencies with the code --- src/Makefile | 12 ++++++------ src/project.conf | 15 +++++++++++---- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6039d62..84d7146 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,22 +24,22 @@ c99_CFLAGS = $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) c99: $(c99_OBJS) $(CC) -o c99 $(c99_OBJS) $(LDFLAGSF) $(LDFLAGS) -c99.o: c99.c ../include/c99.h common.h +c99.o: c99.c common.h ../include/c99.h $(CC) $(c99_CFLAGS) -c c99.c -code.o: code.c +code.o: code.c target/target.h code.h ../config.h $(CC) $(c99_CFLAGS) -c code.c -main.o: main.c ../include/c99.h +main.o: main.c ../include/c99.h ../config.h $(CC) $(c99_CFLAGS) -c main.c -parser.o: parser.c tokenset.h common.h +parser.o: parser.c tokenset.h scanner.h common.h ../include/c99.h ../config.h $(CC) $(c99_CFLAGS) -c parser.c -scanner.o: scanner.c +scanner.o: scanner.c ../include/c99.h ../config.h $(CC) $(c99_CFLAGS) -c scanner.c -tokenset.o: tokenset.c ../include/c99.h common.h tokenset.h +tokenset.o: tokenset.c common.h ../include/c99.h tokenset.h $(CC) $(c99_CFLAGS) -c tokenset.c clean: diff --git a/src/project.conf b/src/project.conf index 293495e..988cfa2 100644 --- a/src/project.conf +++ b/src/project.conf @@ -9,15 +9,22 @@ dist=Makefile,common.h,tokenset.h [c99] type=binary sources=c99.c,code.c,main.c,parser.c,scanner.c,tokenset.c +install=$(BINDIR) [c99.c] -depends=../include/c99.h,common.h +depends=common.h,../include/c99.h + +[code.c] +depends=target/target.h,code.h,../config.h [main.c] -depends=../include/c99.h +depends=../include/c99.h,../config.h [parser.c] -depends=tokenset.h,common.h +depends=tokenset.h,scanner.h,common.h,../include/c99.h,../config.h + +[scanner.c] +depends=../include/c99.h,../config.h [tokenset.c] -depends=../include/c99.h,common.h,tokenset.h +depends=common.h,../include/c99.h,tokenset.h