# HG changeset patch # User Mike Pavone # Date 1342301857 25200 # Node ID a90992bc7331bf6fb5c304b158055d0cce7c0cce # Parent be6d1cf7b7d796dc431f8ba80072813b6a58f881 Add compiler debug option to makefile diff -r be6d1cf7b7d7 -r a90992bc7331 Makefile --- a/Makefile Sat Jul 14 12:33:11 2012 -0700 +++ b/Makefile Sat Jul 14 14:37:37 2012 -0700 @@ -5,6 +5,11 @@ OBJS := $(addprefix $(OBJDIR)/,sim.tp.c lifter.tp.c) TPDIR := ../tabletprog TPC := $(TPDIR)/tpc.js +TPFLAGS := + +ifdef compilerdebug + TPFLAGS += -compilerdebug +endif all : $(BINS) $(OBJS) @@ -12,7 +17,7 @@ gcc -ggdb -I$(TPDIR) -o $@ $< $(TPDIR)/runtime/object.c $(OBJDIR)/%.tp.c : $(SRCDIR)/%.tp - d8 $(TPC) -- -basedir $(TPDIR)/ -i src $< > $@ + d8 $(TPC) -- -basedir $(TPDIR)/ -i src $(TPFLAGS) $< > $@ clean : rm -f $(OBJS) $(BINS)