summaryrefslogtreecommitdiff
path: root/mips/Makefile
diff options
context:
space:
mode:
authorKathy Gray2015-12-22 13:46:11 +0000
committerKathy Gray2015-12-22 13:46:11 +0000
commit9219f8adddac4f6b6fc10e9c4965215b09829468 (patch)
tree1467bbdecb328c4162d5b51fd5e02a9aea2dfc65 /mips/Makefile
parent0ca565a91df971fac0f69b28d84def84174e1ccf (diff)
More make file goo, and fixing a typo in run_with_elf
Diffstat (limited to 'mips/Makefile')
-rw-r--r--mips/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/mips/Makefile b/mips/Makefile
index 3042d331..bd1ff306 100644
--- a/mips/Makefile
+++ b/mips/Makefile
@@ -15,7 +15,11 @@ endif
# the order of the files is important
MIPSSOURCES= mips.sail
-all: $(BUILDDIR)mips.ml $(BUILDDIR)mips_extras.ml
+all: $(BUILDDIR)mips.ml $(BUILDDIR)mips_extras.ml run_native
+
+run_native: run_with_elf.native
+
+run_byte: run_with_elf.byte
lem: $(BUILDDIR)mips.lem
@@ -59,8 +63,14 @@ $(BUILDDIR)mips_extras.ml:
$(LEM) -ocaml -only_changed_output -lib $(SAILDIR)/src/lem_interp/ $<
touch $@
-$(BUILDDIR)run_with_elf.ml:
- cp $(SAILDIR)/src/lem_interp/run_with_elf.ml $@
+run_with_elf.ml: $(SAILDIR)/src/lem_interp/run_with_elf.ml
+ cp $< $@
+
+run_with_elf.native: run_with_elf.ml
+ ocamlbuild -use-ocamlfind run_with_elf.native
+
+run_with_elf.byte: run_with_elf.ml
+ ocamlbuild -use-ocamlfind run_with_elf.byte
$(BUILDDIR)/test.lem: test.sail $(SAIL) | $(BUILDDIR)
# if bash is detected we can print nicer errors
@@ -74,4 +84,4 @@ endif
clean:
rm -rf $(BUILDDIR)
-.PHONY: all full clean test
+.PHONY: all full clean test