X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FApplications%2FMakefile.cfg;h=af5a5e4572a47f2a9753fc8bba063fa592317bf9;hp=920526d29b9df85a0ae72f8c3ecc7e7c592b48f2;hb=9a9053e91df6e08761e2ce72be350c5c2233153b;hpb=57ffa414b54cb6b90a1154c30e8f2328fed8e670 diff --git a/Usermode/Applications/Makefile.cfg b/Usermode/Applications/Makefile.cfg index 920526d2..af5a5e45 100644 --- a/Usermode/Applications/Makefile.cfg +++ b/Usermode/Applications/Makefile.cfg @@ -1,18 +1,32 @@ # Acess 2 Applications # General Makefile -#-include ../../../Makefile.cfg -# satisfying 2 deep applications -#ifeq ($(ACESSDIR),) -# -include ../../../../Makefile.cfg -#endif - # 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 + LDFLAGS := + LIBS := -lacess-native -lc_acess +#LIBGCC_PATH = $(ACESSDIR)/AcessNative/symbol_renames.ld +else + ASFLAGS = -felf +# LDFLAGS = -T $(OUTPUTDIR)Libs/acess.ld + LDFLAGS := + LIBS = -lld-acess +endif + +#LDFLAGS += -rpath-link $(OUTPUTDIR)Libs +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 -ASFLAGS = -felf -CPPFLAGS = -I$(ACESSUSERDIR)/include/ -CFLAGS = -fno-stack-protector $(CPPFLAGS) -Wall -LDFLAGS = -T $(OUTPUTDIR)Libs/acess.ld -rpath-link $(OUTPUTDIR)Libs -L $(OUTPUTDIR)Libs -I /Acess/Libs/ld-acess.so -lld-acess -lc DIR = Bin + +# vim: ft=make