Make sure all .c->.o builds depend on all .h files

This commit is contained in:
Paul LeoNerd Evans 2008-11-03 21:22:47 +00:00
parent a2f3d807f8
commit c0f839c40d

View File

@ -21,8 +21,8 @@ demo: libtermkey.so demo.c
libtermkey.so: termkey.o driver-csi.o driver-ti.o
$(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses
%.o: %.c
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -fPIC -o $@ -c $^
%.o: %.c termkey.h termkey-internal.h
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -fPIC -o $@ -c $<
.PHONY: clean
clean: