Merge pull request #35 from lentillog/feature/vita
[picodrive.git] / Makefile
index d7a01df..c7fbe9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 TARGET ?= PicoDrive
-CFLAGS += -Wall -ggdb -falign-functions=2
+CFLAGS += -Wall 
 CFLAGS += -I. -DINLINE=inline
 ifndef DEBUG
 CFLAGS += -O2 -DNDEBUG -ffunction-sections
-ifeq ($(findstring clang,$(CC)),)
+ifneq ($(APPLE),1)
 LDFLAGS += -Wl,--gc-sections
 endif
 endif
@@ -13,6 +13,10 @@ endif
 #drc_debug = 7
 #profile = 1
 
+ifeq ($(WANT_GDB),1)
+CFLAGS += ggdb -falign-functions=2
+endif
+
 
 all: config.mak target_