Synchronized dependencies with the code
This commit is contained in:
parent
7d93183a67
commit
77a77bc4ae
12
src/Makefile
12
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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user