header file modification now takes into account in makefile
This commit is contained in:
parent
2d2c25a6fe
commit
d4def49a30
|
@ -16,6 +16,8 @@ PROGRAMMER=usbtiny
|
||||||
FLASHER=avrdude -p $(DEVICE) -c $(PROGRAMMER)
|
FLASHER=avrdude -p $(DEVICE) -c $(PROGRAMMER)
|
||||||
# source files to compile
|
# source files to compile
|
||||||
SRC = main.c uart.c ir_nec.c settings.c
|
SRC = main.c uart.c ir_nec.c settings.c
|
||||||
|
# header files.
|
||||||
|
HEADER = $(SRC:.c=.h)
|
||||||
# object files.
|
# object files.
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
# listing files.
|
# listing files.
|
||||||
|
@ -73,7 +75,7 @@ flash:
|
||||||
program: $(TARGET).hex
|
program: $(TARGET).hex
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
%.o: %.c
|
%.o: %.c %.h
|
||||||
$(CC) $(CFLAGS) -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -c -o $@ $<
|
$(CC) $(CFLAGS) -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -c -o $@ $<
|
||||||
|
|
||||||
# link
|
# link
|
||||||
|
|
Loading…
Reference in New Issue