Add Makefile to dependencies

This commit is contained in:
Laurent Fasnacht 2014-04-15 15:47:17 +02:00
parent 29c93d8f3f
commit 86c1cf339f

View file

@ -65,10 +65,10 @@ $(PROG): $(OBJS) $(ASMOBJS)
cpu.o: x86/cpu.asm cpu.o: x86/cpu.asm
$(YASM) $(ASMFLAGS) x86/cpu.asm -o cpu.o $(YASM) $(ASMFLAGS) x86/cpu.asm -o cpu.o
%.o: %.c %.o: %.c Makefile
$(CC) $(CCFLAGS) -c $< -o $@ $(CC) $(CCFLAGS) -c $< -o $@
%.d: %.c %.d: %.c Makefile
$(CC) $(CCFLAGS) -MF"$@" -MG -MM -MP -MT"$@" -MT"$(<:.c=.o)" "$<" $(CC) $(CCFLAGS) -MF"$@" -MG -MM -MP -MT"$@" -MT"$(<:.c=.o)" "$<"
clean: clean: