Mercurial > repos > icfp2012
view Makefile @ 56:ca86c88c2336
merge
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sun, 15 Jul 2012 22:24:35 -0700 |
parents | 703488432369 |
children | 397089dccb32 |
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) build/lifter.tp.c : src/sim.tp src/lifter.tp $(OUTDIR)/% : $(OBJDIR)/%.tp.c gcc -ggdb -I$(TPDIR) -o $@ $< $(TPDIR)/runtime/object.c -lgc $(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