X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=GNUmakefile;h=bad078a8859eb2b0265320d2c2b60acd0a948609;hp=a12916cf41db808af90a48d205d860f261bdcfa2;hb=7ce33839919485fa70f2ac825543a73bbb27725c;hpb=cb673b404fe5b4e979327659dff5636e3def1b6f diff --git a/GNUmakefile b/GNUmakefile index a12916cf41..bad078a885 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -19,6 +19,7 @@ ifdef CONFIG include $(CONFIG) CFLAGS += -Wall \ + -Wextra \ -pedantic \ -DFACTOR_VERSION="$(VERSION)" \ -DFACTOR_GIT_LABEL="$(GIT_LABEL)" \ @@ -26,6 +27,13 @@ ifdef CONFIG CXXFLAGS += -std=c++11 + # SANITIZER=address ./build.sh compile + # address,thread,undefined,leak + ifdef SANITIZER + CFLAGS += -fsanitize=$(SANITIZER) + CXXFLAGS += -fsanitize=$(SANITIZER) + endif + ifneq ($(DEBUG), 0) CFLAGS += -g -DFACTOR_DEBUG else @@ -188,9 +196,12 @@ macosx-x86-64: macosx-x86-fat: $(MAKE) $(ALL) macosx.app CONFIG=vm/Config.macosx.x86.fat -macosx-arm64-64: +macosx-arm64: $(MAKE) $(ALL) macosx.app CONFIG=vm/Config.macosx.arm64 +linux-arm-32: + $(MAKE) $(ALL) CONFIG=vm/Config.linux.arm.32 + linux-arm-64: $(MAKE) $(ALL) CONFIG=vm/Config.linux.arm.64 @@ -206,9 +217,6 @@ linux-ppc-32: linux-ppc-64: $(MAKE) $(ALL) CONFIG=vm/Config.linux.ppc.64 -linux-arm: - $(MAKE) $(ALL) CONFIG=vm/Config.linux.arm - windows-x86-32: $(MAKE) $(ALL) CONFIG=vm/Config.windows.x86.32 $(MAKE) factor-console CONFIG=vm/Config.windows.x86.32 @@ -223,7 +231,7 @@ macosx.app: factor mkdir -p $(BUNDLE)/Contents/MacOS mkdir -p $(BUNDLE)/Contents/Frameworks mv $(EXECUTABLE) $(BUNDLE)/Contents/MacOS/factor - ln -s Factor.app/Contents/MacOS/factor ./factor + ln -s $(BUNDLE)/Contents/MacOS/factor ./factor $(ENGINE): $(DLL_OBJS) $(TOOLCHAIN_PREFIX)$(LINKER) $(ENGINE) $(DLL_OBJS) @@ -276,3 +284,4 @@ clean: rm -f Factor.app/Contents/Frameworks/libfactor.dylib .PHONY: factor factor-lib factor-console factor-ffi-test tags clean macosx.app +.PHONY: linux-x86-32 linux-x86-64 linux-ppc-32 linux-ppc-64 linux-arm-64 freebsd-x86-32 freebsd-x86-64 macosx-x86-32 macosx-x86-64 macosx-x86-fat macosx-arm64 windows-x86-32 windows-x86-64