Clean up Makefile includes

This commit is contained in:
Rihards Skuja 2018-01-21 13:54:20 +02:00
parent dcca42d597
commit d0e9806d2b
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B
4 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,8 @@ CSTANDARD = -std=gnu99
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
# Place -I options here
CINCS = -I $(INC_DIR) -I$(COMMON_INC_DIR)
CINCS = -I /usr/avr/include -I /usr/lib/gcc/avr/7.2.0/include \
-I $(INC_DIR) -I $(COMMON_INC_DIR)
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
@ -53,7 +54,7 @@ ifeq ($(BUILD),debug)
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
-Wno-unused-but-set-variable -Wmaybe-uninitialized
CINCS += -I/usr/include/simavr
CINCS += -I /usr/include/simavr
#
else
CFLAGS += -DNDEBUG -s -Os

View File

@ -44,7 +44,7 @@ ifeq ($(BUILD),debug)
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
-Wno-unused-but-set-variable -Wmaybe-uninitialized
CINCS += -I/usr/include/simavr
CINCS += -I /usr/include/simavr
#
else
CFLAGS += -DNDEBUG -s -Os

View File

@ -30,7 +30,8 @@ CSTANDARD = -std=gnu99
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
# Place -I options here
CINCS = -I $(INC_DIR) -I$(COMMON_INC_DIR)
CINCS = -I /usr/avr/include -I /usr/lib/gcc/avr/7.2.0/include \
-I $(INC_DIR) -I $(COMMON_INC_DIR)
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
@ -53,7 +54,7 @@ ifeq ($(BUILD),debug)
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
-Wno-unused-but-set-variable -Wmaybe-uninitialized
CINCS += -I/usr/include/simavr
CINCS += -I /usr/include/simavr
#
else
CFLAGS += -DNDEBUG -s -Os

View File

@ -1,7 +1,6 @@
#include <avr/interrupt.h>
#include <util/delay.h>
#include "sonar.h"
#include "led.h"
volatile uint32_t trig_counter;