From 690bce628fbc4ce3ce572a9d31fb824acfbe4f06 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 12 Sep 2011 20:18:18 +0200 Subject: [PATCH] b43-asm: Fix some dependency issues Signed-off-by: Michael Buesch --- assembler/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.31.1