X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=dc4e07da9a9f881d2661761149ec598acf2d73f0;hb=1493092e158f162a1bcd3bb9928f3dfb48593431;hp=89788e66d63c0972dfe2e66d44e35fdcadaa270d;hpb=f40e483e356bb10c6094c3a4edadd636c3ca9f13;p=pcsx_rearmed.git diff --git a/Makefile b/Makefile index 89788e66..dc4e07da 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)