diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-22 23:41:30 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-22 23:41:30 -0400 |
commit | 7a19179b0f0e22a372eacb791d2ac86155da9e11 (patch) | |
tree | 4edc25ca6ca37b4a68e6d5c53fcf447777141699 /Makefile | |
parent | msim stub (diff) | |
download | mips-7a19179b0f0e22a372eacb791d2ac86155da9e11.tar.gz mips-7a19179b0f0e22a372eacb791d2ac86155da9e11.tar.bz2 mips-7a19179b0f0e22a372eacb791d2ac86155da9e11.zip |
add global makefile, update tests
Diffstat (limited to '')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5ed94e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +include config.mk + +.PHONY: build clean install uninstall masm mld msim + +build: masm mld msim + ./bin/masm/masm -o ./bin/runtime.o ./lib/runtime.asm + +clean: + rm -fr ./bin + +install: + install -m 755 -D -t $(PREFIX)/bin ./bin/masm/masm + install -m 755 -D -t $(PREFIX)/bin ./bin/mld/mld + install -m 755 -D -t $(PREFIX)/bin ./bin/msim/msim + install -m 444 -D -t $(PREFIX)/lib/mips ./bin/runtime.o + +uninstall: + rm $(PREFIX)/bin/masm + rm $(PREFIX)/bin/mld + rm $(PREFIX)/bin/msim + rm $(PREFIX)/lib/mips/runtime.o + rmdir $(PREFIX)/lib/mips + +masm: + make -C ./masm build + +mld: + make -C ./mld build + +msim: + make -C ./msim build |