update makefile to overide includes if necessary
This commit is contained in:
4
Makefile
4
Makefile
@@ -2,7 +2,7 @@
|
|||||||
F_CPU = 16000000UL
|
F_CPU = 16000000UL
|
||||||
TARGET = main
|
TARGET = main
|
||||||
CC = avr-gcc
|
CC = avr-gcc
|
||||||
INCLUDES = -I../../headers/
|
INCLUDES ?= -I../../headers/ # ?= : dont define if already defined
|
||||||
|
|
||||||
AVRGCC_MCU_TYPE = atmega328p
|
AVRGCC_MCU_TYPE = atmega328p
|
||||||
AVRDUDE_MCU_TYPE = m328p
|
AVRDUDE_MCU_TYPE = m328p
|
||||||
@@ -80,4 +80,4 @@ dump:
|
|||||||
clean:
|
clean:
|
||||||
rm -f main.hex main.bin *.o
|
rm -f main.hex main.bin *.o
|
||||||
|
|
||||||
.PHONY : all clean hex flash restore
|
.PHONY : all clean hex flash restore
|
||||||
|
|||||||
Reference in New Issue
Block a user