From: Michael Buesch Date: Mon, 12 Sep 2011 18:18:18 +0000 (+0200) Subject: b43-asm: Fix some dependency issues X-Git-Tag: b43-fwcutter-016~3 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=690bce628fbc4ce3ce572a9d31fb824acfbe4f06;p=b43-tools.git b43-asm: Fix some dependency issues Signed-off-by: Michael Buesch --- diff --git a/assembler/Makefile b/assembler/Makefile index 76c4852..21c652d 100644 --- a/assembler/Makefile +++ b/assembler/Makefile @@ -42,7 +42,7 @@ OBJS = $(sort $(patsubst %.c,obj/%.o,$(1))) # Generate dependencies $(call DEPS,$(SRCS)): dep/%.d: %.c @mkdir -p $(dir $@) - $(QUIET_DEPEND) -o $@.tmp -MM -MT "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@ + $(QUIET_DEPEND) -o $@.tmp -MM -MG -MT "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@ -include $(call DEPS,$(SRCS)) @@ -54,15 +54,19 @@ $(call OBJS,$(SRCS)): obj/%.o: all: $(BIN) -scanner.c: scanner.l parser.c main.h +scanner.c: scanner.l parser.h main.h util.h $(QUIET_LEX) -o scanner.c --header-file=scanner.h scanner.l +scanner.h: scanner.c + scanner.o: scanner.c $(QUIET_CC) $(CFLAGS) -c -o scanner.o scanner.c parser.c: parser.y main.h util.h $(QUIET_YACC) --defines -o parser.c parser.y +parser.h: parser.c + parser.o: parser.c $(QUIET_CC) $(CFLAGS) -c -o parser.o parser.c