Mercurial > repos > icfp2012
annotate Makefile @ 7:1bd46f854dbb
progress on sim, celltypes as objects
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sat, 14 Jul 2012 00:43:06 -0700 |
parents | d4ba6138c99e |
children | c92633098f1d |
rev | line source |
---|---|
3
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 OUTDIR := bin |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 OBJDIR := build |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 SRCDIR := src |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 BINS := $(addprefix $(OUTDIR)/,sim lifter) |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 OBJS := $(addprefix $(OBJDIR)/,sim.tp.c lifter.tp.c) |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 TPDIR := ../tabletprog |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 TPC := $(TPDIR)/tpc.js |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 |
4
d4ba6138c99e
Add intermediate files to target so make doesn't delete them
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
9 all : $(BINS) $(OBJS) |
d4ba6138c99e
Add intermediate files to target so make doesn't delete them
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
10 |
3
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 $(OUTDIR)/% : $(OBJDIR)/%.tp.c |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
12 gcc -I$(TPDIR) -o $@ $< $(TPDIR)/runtime/object.c |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
13 |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
14 $(OBJDIR)/%.tp.c : $(SRCDIR)/%.tp |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
15 d8 $(TPC) -- -basedir $(TPDIR)/ $< > $@ |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
16 |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
17 clean : |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
18 rm -f $(OBJS) |
bb29dcd46cbf
Put dummy code in placeholder source files. Create makefile.
Mike Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
19 rm -f $(BINS) |