Fix tools Makefile for GNU make

It seems that my little "@.c" trick only worked in BSD make...
This commit is contained in:
Virgil Dupras 2020-02-12 10:12:46 -05:00
parent bab18216aa
commit c5116b39ae

View File

@ -14,7 +14,13 @@ all: $(TARGETS)
.c.o: .c.o:
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(TARGETS): $@.c $(OBJS) $(MEMDUMP_TGT): $(MEMDUMP_TGT).c
$(BLKDUMP_TGT): $(BLKDUMP_TGT).c
$(UPLOAD_TGT): $(UPLOAD_TGT).c
$(FONTCOMPILE_TGT): $(FONTCOMPILE_TGT).c
$(TTYSAFE_TGT): $(TTYSAFE_TGT).c
$(PINGPONG_TGT): $(PINGPONG_TGT).c
$(TARGETS): $(OBJS)
$(CC) $(CFLAGS) $@.c $(OBJS) -o $@ $(CC) $(CFLAGS) $@.c $(OBJS) -o $@
.PHONY: clean .PHONY: clean