anpassungen für nutzung von Makefile
This commit is contained in:
parent
a495c47591
commit
33bce81a42
2 changed files with 42 additions and 28 deletions
26
Makefile
26
Makefile
|
@ -1,22 +1,26 @@
|
|||
SRC:=$(shell find src -regex '.*\.c')
|
||||
SRC:=$(shell find status -regex '.*\.cpp')
|
||||
OBJ:=$(patsubst %,%.o,$(SRC))
|
||||
DEP:=$(patsubst %,%.d,$(SRC))
|
||||
|
||||
CC?=avr-gcc
|
||||
|
||||
CFLAGS?= -O2 -ggdb -std=gnu11 -fomit-frame-pointer -fmerge-all-constants\
|
||||
CFLAGS?= -O2 -ggdb -std=gnu++11 -fomit-frame-pointer -fmerge-all-constants\
|
||||
-faggressive-loop-optimizations -finline-functions -funsafe-loop-optimizations\
|
||||
-ffreestanding -Wlogical-op -Wdouble-promotion -Wformat -Winit-self -Wnormalized\
|
||||
-ffreestanding -Wlogical-op -Wdouble-promotion -Wformat -Winit-self\
|
||||
-Wmissing-include-dirs -Wswitch-default -Wpadded -Wswitch-enum -Wall\
|
||||
-Wunused -Winline -Wuninitialized -Wstrict-overflow -Wpointer-sign\
|
||||
-Wfloat-equal -Wstack-protector -Wtraditional-conversion -Wundef -Wvla\
|
||||
-Wdeclaration-after-statement -Wshadow -Wcast-align -Wpedantic -Wextra\
|
||||
-Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wtrampolines -Wpacked\
|
||||
-Wconversion -Wdate-time -Waggregate-return -Wstrict-prototypes\
|
||||
-Wold-style-definition -Wmissing-prototypes -Wvector-operation-performance\
|
||||
-Wredundant-decls -Wnested-externs -Wlong-long -Wvariadic-macros\
|
||||
-Wunused -Winline -Wuninitialized -Wstrict-overflow\
|
||||
-Wfloat-equal -Wstack-protector -Wundef -Wvla\
|
||||
-Wshadow -Wcast-align -Wpedantic -Wextra\
|
||||
-Wpointer-arith -Wwrite-strings -Wtrampolines -Wpacked\
|
||||
-Wconversion -Wdate-time -Waggregate-return\
|
||||
-Wvector-operation-performance\
|
||||
-Wredundant-decls -Wlong-long -Wvariadic-macros\
|
||||
-Wdisabled-optimization -Wmissing-declarations -Wunsafe-loop-optimizations\
|
||||
-Wunsuffixed-float-constants -pipe -Werror
|
||||
-pipe -Werror -fno-exceptions -fno-rtti\
|
||||
-I/usr/share/arduino/hardware/arduino/cores/arduino\
|
||||
-I/usr/share/arduino/hardware/arduino/variants/micro\
|
||||
-I/usr/lib/avr/include/\
|
||||
-DF_CPU=16000000L -MMD -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -mmcu=atmega32u4
|
||||
|
||||
ARDUINO?=
|
||||
PROGRAMMER?=
|
||||
|
|
Reference in a new issue