X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2FMakefile;fp=tests%2FMakefile;h=607ebe37da1307064f0eec235834acd27e814222;hb=19b07b62484f19ec2d59e7489e96f4ec877d3fbd;hp=0000000000000000000000000000000000000000;hpb=b2bd20c04cbabc101db5bfdf35bb9f5fd5aebe33;p=ia32rtools.git diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..607ebe3 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,20 @@ + +TESTS = reg_call1 reg_call2 reg_call3 reg_call_tail reg_save + +all: $(addsuffix .ok,$(TESTS)) + +%.ok: %.expect.c %.out.c + diff -u $^ + touch $@ + +%.out.h: %.asm %.seed.h ../stdc.list + ../tools/translate -hdr $@ $^ + +%.out.c: %.asm %.out.h ../stdc.list + ../tools/translate $@ $^ + +clean: + $(RM) *.ok *.out.c *.out.h + +.PHONY: all clean +.PRECIOUS: %.out.c