Set fileformat to unix

This commit is contained in:
Rihards Skuja 2017-11-21 15:57:02 +02:00
parent 59f63e6c43
commit c9f21805ad

View File

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