Mercurial > repos > icfp2012
view Makefile @ 37:2dc785f67327
Use new tpc shell script so that errors are displayed on the console
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 15 Jul 2012 13:06:58 -0700 |
parents | a90992bc7331 |
children | cd3ec7d99330 |
line wrap: on
line source
OUTDIR := bin OBJDIR := build SRCDIR := src BINS := $(addprefix $(OUTDIR)/,sim lifter) OBJS := $(addprefix $(OBJDIR)/,sim.tp.c lifter.tp.c) TPDIR := ../tabletprog TPC := $(TPDIR)/tpc TPFLAGS := ifdef compilerdebug TPFLAGS += -compilerdebug endif all : $(BINS) $(OBJS) $(OUTDIR)/% : $(OBJDIR)/%.tp.c gcc -ggdb -I$(TPDIR) -o $@ $< $(TPDIR)/runtime/object.c $(OBJDIR)/%.tp.c : $(SRCDIR)/%.tp $(TPC) -basedir $(TPDIR)/ -i src $(TPFLAGS) $< -o $@ clean : rm -f $(OBJS) $(BINS) cleansim : rm -f bin/sim build/sim.tp.c cleanlift : rm -f bin/lifter build/lifter.tp.c