X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2FMakefile.cfg;h=be17100fffd8f08f328445844ce62490fce7f4f2;hb=e7d851ae8923947899ef3adc9980e93f4b8d7c4f;hp=d0a07d1c3543ac76d3af74160d24acf3f432fa47;hpb=b732b8e8da2bea4916286333efb34a9a5e1bf01e;p=tpg%2Facess2.git diff --git a/Usermode/Applications/Makefile.cfg b/Usermode/Applications/Makefile.cfg index d0a07d1c..be17100f 100644 --- a/Usermode/Applications/Makefile.cfg +++ b/Usermode/Applications/Makefile.cfg @@ -2,28 +2,29 @@ # General Makefile # Include Usermode Makefile.cfg -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg +_appsdir := $(dir $(lastword $(MAKEFILE_LIST))) +include $(_appsdir)../Makefile.cfg ifeq ($(ARCHDIR),native) -ASFLAGS = -felf -CPPFLAGS = -Wall -CFLAGS = $(CPPFLAGS) -LDFLAGS = -L $(OUTPUTDIR)Libs -lacess-native -lc_acess -#LIBGCC_PATH = $(ACESSDIR)/AcessNative/symbol_renames.ld + ASFLAGS = -felf + LDFLAGS := + LIBS := -lacess-native -lc_acess else -ASFLAGS = -felf -CPPFLAGS = -ffreestanding -CFLAGS = -fno-stack-protector -fno-builtin $(CPPFLAGS) -LDFLAGS = -T $(OUTPUTDIR)Libs/acess.ld -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o -lposix -LIBGCC_PATH = $(shell $(CC) -print-libgcc-file-name) - + ASFLAGS = -felf + LDFLAGS := + LIBS = -lld-acess endif -CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/)) -CPPFLAGS += -I$(ACESSUSERDIR)/include/ -DARCHDIR_is_$(ARCHDIR) -LDFLAGS += -rpath-link $(OUTPUTDIR)Libs +LDFLAGS += -rpath-link $(OUTPUTDIR)Libs # Needed so that dynamic libraries are linked correctly +CXXFLAGS += -std=gnu++11 +CPPFLAGS += +CFLAGS += -Wall + +-include $(_appsdir)../common_settings.mk # Extra-verbose errors! #CFLAGS += -Wall -Wextra -Wwrite-strings -Wshadow -Wswitch-default -Wswitch-enum -Wstrict-overflow=5 -Wfloat-equal -Wundef -Wmissing-declarations -Wlogical-op -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wsync-nand -Wunused -Wstrict-overflow=5 -Wfloat-equal -Wundef -Wno-endif-labels -Wshadow -Wunsafe-loop-optimizations -Wbad-function-cast -Wc++-compat -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-declarations -Wnormalized=nfc -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wdisabled-optimization -Woverlength-strings DIR = Bin + +# vim: ft=make