annotate Makefile @ 20:50a456168c25

Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
author Mike Pavone <pavone@retrodev.com>
date Sat, 14 Jul 2012 12:33:01 -0700
parents c92633098f1d
children a90992bc7331
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
13
c92633098f1d simulator now properly parses map and accepts input until A is sent to it over stdin
Mike Pavone <pavone@retrodev.com>
parents: 4
diff changeset
12 gcc -ggdb -I$(TPDIR) -o $@ $< $(TPDIR)/runtime/object.c
3
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
20
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
15 d8 $(TPC) -- -basedir $(TPDIR)/ -i src $< > $@
3
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 :
20
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
18 rm -f $(OBJS) $(BINS)
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
19
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
20 cleansim :
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
21 rm -f bin/sim build/sim.tp.c
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
22
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
23 cleanlift :
50a456168c25 Split readFd out of readFile for use in lifter. Add code to read map from stdin to lifter using code in sim
Mike Pavone <pavone@retrodev.com>
parents: 13
diff changeset
24 rm -f bin/lifter build/lifter.tp.c