X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=ad90bbaa3f25d8daf78fe37adf50dac2b9b0e239;hp=f86254bb50e5e1f99b9bf4bf41553e4115bb1bd9;hb=7896cfff4745b3999850dd301a296de71f7356eb;hpb=bd83074ab37f96455a2aff35c37ef6c3f07ebaec diff --git a/Makefile b/Makefile index f86254b..ad90bba 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ # Driver sources DRIVERS ?= apc testapc +# Debug Level +DEBUG ?= 1 + # Yacc YACC := bison YFLAGS ?= -v -d -Wall @@ -74,7 +77,7 @@ cleanCMD = $(if $(wildcard $1),rm $(wildcard $(sort $1))) # Rules .SECONDEXPANSION: $(ldTRG): $$(call ldDEP,$$@) | $(hGEN) ; $(call LDCMD,$^,$@) -%-d.o: CFLAGS+= -Og -ggdb +%-d.o: CFLAGS+= -Og -ggdb -DDEBUG=$(DEBUG) %.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c) ; $(call CCMD,$<,$@) %.tab.h: %.tab.c ; %.tab.c: %.y $$(call S2S,YCMD,%.y,$$@) ;