Set fileformat to unix
This commit is contained in:
parent
59f63e6c43
commit
c9f21805ad
@ -14,10 +14,13 @@ CPP = avr-g++
|
||||
COMMON = -mmcu=$(MCU)
|
||||
|
||||
## Compile options common for all C compilation units.
|
||||
CFLAGS = $(COMMON)
|
||||
CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
CFLAGS += -mmcu=atmega328p -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__ \
|
||||
-std=gnu99 -Os -DDEBUG -gdwarf-2 \
|
||||
-Wall -Wextra -Wformat=2 -pedantic
|
||||
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
|
||||
|
||||
INC := -I /usr/avr/include
|
||||
|
||||
## Assembly specific flags
|
||||
ASMFLAGS = $(COMMON)
|
||||
ASMFLAGS += $(CFLAGS)
|
||||
@ -47,7 +50,7 @@ all: $(TARGET) $(PROJECT).hex $(PROJECT).eep $(PROJECT).lss size
|
||||
|
||||
## Compile
|
||||
$(PROJECT).o: ../$(PROJECT).c
|
||||
$(CC) $(INCLUDES) $(CFLAGS) -c $<
|
||||
$(CC) $(INC) $(CFLAGS) -c $<
|
||||
|
||||
##Link
|
||||
$(TARGET): $(OBJECTS)
|
||||
|
Loading…
Reference in New Issue
Block a user