From d4def49a3050593d375fd7e6c9638e926376d136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 17 Oct 2013 16:53:49 +0200 Subject: [PATCH] header file modification now takes into account in makefile --- firmware/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/Makefile b/firmware/Makefile index 95a998c..83fa50b 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -16,6 +16,8 @@ PROGRAMMER=usbtiny FLASHER=avrdude -p $(DEVICE) -c $(PROGRAMMER) # source files to compile SRC = main.c uart.c ir_nec.c settings.c +# header files. +HEADER = $(SRC:.c=.h) # object files. OBJ = $(SRC:.c=.o) # listing files. @@ -73,7 +75,7 @@ flash: program: $(TARGET).hex # compile -%.o: %.c +%.o: %.c %.h $(CC) $(CFLAGS) -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -c -o $@ $< # link