From 27f6e16bae9d0f73acec07f61aea696ab5adc680 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 27 Oct 2001 23:48:39 +0000 Subject: Initial revision --- Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fb4ada4 --- /dev/null +++ b/Makefile @@ -0,0 +1,52 @@ +all: test cvt + +test: prog.bin + cmp -l prog.bin prog.bin.ref + +run: tc prog.c + ./tc prog.c + +run2: tc tc1.c prog.c + ./tc tc1.c prog.c + +run3: tc tc1.c prog.c + ./tc tc1.c tc1.c prog.c + +prog.bin: prog.c tct + ./tct prog.c $@ + ndisasm -b 32 $@ + +p2.bin: p2.c tct + ./tct $< $@ + ndisasm -b 32 $@ + +tct: tc.c + gcc -DTEST -O2 -g -o $@ $< -ldl + +tc: tc.c Makefile + gcc -O2 -Wall -g -o $@ $< -ldl + +tc1: tc1.c + gcc -O2 -Wall -g -o $@ $< + +cvt: cvt.c + gcc -O2 -Wall -g -o $@ $< + +instr.o: instr.S + gcc -O2 -Wall -g -c -o $@ $< + +tc.i: tc.c Makefile + gcc -E -P -DTINY -o $@ tc.c + +tc1.c: tc.i cvt Makefile + ./cvt $< $@ + @ls -l $@ + +test2: tct tc1.c + ./tct tc1.c tc2 + ndisasm -b 32 tc2 + +tc2: tc + ./tct < tc1.c > tc2 + ndisasm -b 32 tc2 + -- cgit v1.3.1