I've a lot of C files, some have a header (.h), some files not.
Here's my makefile :
.SUFFIXES:
SRC := $(wildard ./src/*.c)
OBJ := $(SRC:%.c=%.o)
all: $(OBJ)
%.o: %.c
$(MyNotGCCCompiler) "@../$(*F).cmd"
It works fine except that if I change a header file, the target isn't recompiled because not included in the dependencies.
How can I manage this case?
Thanks