X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=c7fbe9ed68c2ce3858b56e93735fafdb1050448c;hb=8289697e8da6f76975028d2a8e713d3924ab0f4e;hp=7a4e1301c7529b44f9d798006d59d565c8017469;hpb=5cd97263ce3d2fe446fa2d5856c4401326094714;p=picodrive.git diff --git a/Makefile b/Makefile index 7a4e1301..c7fbe9ed 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ TARGET ?= PicoDrive -CFLAGS += -Wall -ggdb -falign-functions=2 +CFLAGS += -Wall CFLAGS += -I. -DINLINE=inline ifndef DEBUG CFLAGS += -O2 -DNDEBUG -ffunction-sections @@ -13,6 +13,10 @@ endif #drc_debug = 7 #profile = 1 +ifeq ($(WANT_GDB),1) +CFLAGS += ggdb -falign-functions=2 +endif + all: config.mak target_