From ec56b8e2d926e8782044126347a3e47153a4f936 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 13 Jun 2012 23:13:23 +0000 Subject: [PATCH] build/Makefile: Always compile a-c.o with -O2 and without -fcatch-undefined-behavior This is to not slow down the core drawing functions too much in debugging builds and mimics the way things are on x86. git-svn-id: https://svn.eduke32.com/eduke32@2755 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polymer/eduke32/build/Makefile b/polymer/eduke32/build/Makefile index 987e45bba..a89f2d100 100644 --- a/polymer/eduke32/build/Makefile +++ b/polymer/eduke32/build/Makefile @@ -303,6 +303,11 @@ $(OBJ)/%.$o: $(SRC)/%.nasm $(COMPILE_STATUS) if $(AS) $(OURASFLAGS) $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi +# uncomment to debug a-c.o +$(OBJ)/a-c.$o: $(SRC)/a-c.c + $(COMPILE_STATUS) + if $(CC) $(OURCONLYFLAGS) $(subst -O0,-O2,$(subst -fcatch-undefined-behavior,,$(OURCFLAGS))) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi + $(OBJ)/%.$o: $(SRC)/%.c $(COMPILE_STATUS) if $(CC) $(OURCONLYFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi