Makefile Fortschritt
This commit is contained in:
parent
c8aa49d762
commit
12d7441f1f
10 changed files with 79 additions and 25 deletions
|
@ -15,7 +15,7 @@ COMMON = -mmcu=$(MCU)
|
|||
|
||||
## Compile options common for all C compilation units.
|
||||
CFLAGS = $(COMMON)
|
||||
CFLAGS += -Wall -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
CFLAGS += -Wall -gdwarf-2 -DF_CPU=20000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
|
||||
|
||||
## Assembly specific flags
|
||||
|
@ -36,6 +36,15 @@ HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
|
|||
HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings
|
||||
|
||||
|
||||
## Include Directories
|
||||
INCLUDES = -I"C:\avr8-gnu-toolchain-win32_x86\avr\include"
|
||||
|
||||
## Library Directories
|
||||
LIBDIRS = -L"C:\avr8-gnu-toolchain-win32_x86\avr\lib"
|
||||
|
||||
## Libraries
|
||||
LIBS = -lc
|
||||
|
||||
## Objects that must be built in order to link
|
||||
OBJECTS = main.o spi.o
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue