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
#drc_debug = 7
#profile = 1
+ifeq ($(WANT_GDB),1)
+CFLAGS += ggdb -falign-functions=2
+endif
+
all: config.mak target_