X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=29f02fdc606f16a431eea95379d9eedef4278a28;hb=ed0896e7140a650debd06cac664896b43c093738;hp=89788e66d63c0972dfe2e66d44e35fdcadaa270d;hpb=f40e483e356bb10c6094c3a4edadd636c3ca9f13;p=pcsx_rearmed.git diff --git a/Makefile b/Makefile index 89788e66..29f02fdc 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,10 @@ # default stuff goes here, so that config can override TARGET ?= pcsx -CFLAGS += -Wall -ggdb -Iinclude -ffast-math -ifndef DEBUG +CFLAGS += -Wall -Iinclude -ffast-math +ifeq ($(DEBUG), 1) +CFLAGS += -O0 -ggdb +else CFLAGS += -O2 -DNDEBUG endif CXXFLAGS += $(CFLAGS) @@ -65,7 +67,6 @@ endif OBJS += libpcsxcore/new_dynarec/emu_if.o libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/assem_arm.c \ libpcsxcore/new_dynarec/pcsxmem_inline.c -libpcsxcore/new_dynarec/new_dynarec.o: CFLAGS += -Wno-all -Wno-pointer-sign ifdef DRC_DBG libpcsxcore/new_dynarec/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64 CFLAGS += -DDRC_DBG