13,7 → 13,7 |
|
## Compile options common for all C compilation units. |
CFLAGS = $(COMMON) |
CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=16000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=16000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d |
|
## Assembly specific flags |
49,10 → 49,10 |
|
usart1.o: ../usart1.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
|
max7456_software_spi.o: ../max7456_software_spi.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
|
##Link |
$(TARGET): $(OBJECTS) |
$(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET) |
77,4 → 77,4 |
|
|
## Other dependencies |
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*) |
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*) |