Update Makefiles
This commit is contained in:
+2
-15
@@ -1,12 +1,9 @@
|
||||
#
|
||||
# Makefile.conf
|
||||
# Makefile.conf.armv8
|
||||
#
|
||||
|
||||
ARCH := armv8
|
||||
CFLAGS := -g3 -O3 -fPIC -marm -march=armv8-a -std=c++11
|
||||
CFLAGS += -Wall -Wextra -Wstrict-aliasing -fmax-errors=5 -Werror -Wunreachable-code -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -Wswitch-default -Wno-unused -Wno-variadic-macros -Wno-parentheses -Wno-unused-parameter -Wno-missing-field-initializers -fdiagnostics-show-option
|
||||
# CFLAGS += -Wold-style-cast -Wundef -Wshadow -Wctor-dtor-privacy -Wredundant-decls -Wstrict-overflow=5 -Wcast-align
|
||||
LFLAGS := -lpthread -lm -lboost_system -lboost_thread -lboost_program_options -lboost_date_time -lssl -lcrypto -lcurl -lz -ldl -lbluetooth
|
||||
CFLAGS := -marm -march=armv8-a
|
||||
|
||||
AR := /opt/build/rpi-armv8/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar
|
||||
CC := /opt/build/rpi-armv8/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
|
||||
@@ -15,13 +12,3 @@ OBJCOPY := /opt/build/rpi-armv8/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-li
|
||||
|
||||
CFLAGS += -I/opt/build/rpi-armv8/include
|
||||
LFLAGS += -L/opt/build/rpi-armv8/lib --sysroot /opt/build/rpi-armv8/tools/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot -Wl,-rpath,/opt/build/rpi-armv8/lib
|
||||
|
||||
CFLAGS += -fpermissive
|
||||
CFLAGS += -I/opt/build/PresenceDetection
|
||||
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
LFLAGS += -Wl,--gc-sections
|
||||
SFLAGS := -s -R .comment -R .gnu.version --strip-unneeded
|
||||
|
||||
DEBUGDIR := .debug
|
||||
DATETIME := `date +'%y%m%d-%H%M'`
|
||||
|
||||
Reference in New Issue
Block a user