Clean up Makefile includes
This commit is contained in:
parent
dcca42d597
commit
d0e9806d2b
@ -30,7 +30,8 @@ CSTANDARD = -std=gnu99
|
|||||||
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
|
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
|
||||||
|
|
||||||
# Place -I options here
|
# 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
|
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||||
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
||||||
@ -53,7 +54,7 @@ ifeq ($(BUILD),debug)
|
|||||||
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
||||||
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
||||||
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
||||||
CINCS += -I/usr/include/simavr
|
CINCS += -I /usr/include/simavr
|
||||||
#
|
#
|
||||||
else
|
else
|
||||||
CFLAGS += -DNDEBUG -s -Os
|
CFLAGS += -DNDEBUG -s -Os
|
||||||
|
@ -44,7 +44,7 @@ ifeq ($(BUILD),debug)
|
|||||||
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
||||||
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
||||||
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
||||||
CINCS += -I/usr/include/simavr
|
CINCS += -I /usr/include/simavr
|
||||||
#
|
#
|
||||||
else
|
else
|
||||||
CFLAGS += -DNDEBUG -s -Os
|
CFLAGS += -DNDEBUG -s -Os
|
||||||
|
@ -30,7 +30,8 @@ CSTANDARD = -std=gnu99
|
|||||||
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
|
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
|
||||||
|
|
||||||
# Place -I options here
|
# 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
|
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||||
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
||||||
@ -53,7 +54,7 @@ ifeq ($(BUILD),debug)
|
|||||||
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
||||||
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
||||||
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
||||||
CINCS += -I/usr/include/simavr
|
CINCS += -I /usr/include/simavr
|
||||||
#
|
#
|
||||||
else
|
else
|
||||||
CFLAGS += -DNDEBUG -s -Os
|
CFLAGS += -DNDEBUG -s -Os
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <util/delay.h>
|
#include <util/delay.h>
|
||||||
#include "sonar.h"
|
#include "sonar.h"
|
||||||
|
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
volatile uint32_t trig_counter;
|
volatile uint32_t trig_counter;
|
||||||
|
Loading…
Reference in New Issue
Block a user