Update makefile to better reflect header dependencies

This commit is contained in:
Bruce Hill 2021-01-13 18:50:00 -08:00
parent 45d7aff475
commit 9a6c0ee9cc

View File

@ -12,7 +12,7 @@ OBJFILES=$(CFILES:.c=.o)
all: $(NAME)
.c.o:
%.o: %.c %.h types.h
$(CC) -c $(CFLAGS) $(CWARN) $(G) $(O) -o $@ $<
$(NAME): $(OBJFILES) $(NAME).c