diff --git a/Makefile b/Makefile index 19a0f7c..8c98540 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,9 @@ AS=tools/as7 ASARGS=--format=ptr SYSDIR=sys CMDDIR=bin +TESTDIR=tests -all: sys cmd others +all: sys cmd others tests runsh: all cd bin && ../tools/a7out sh @@ -12,6 +13,7 @@ runsh: all dirs: mkdir -p $(SYSDIR) mkdir -p $(CMDDIR) + mkdir -p $(TESTDIR) sys: dirs $(AS) $(ASARGS) -o $(SYSDIR)/unix src/sys/*.s @@ -56,6 +58,14 @@ others: dirs $(AS) $(ASARGS) -o $(CMDDIR)/wktopr src/other/wktopr.s $(AS) $(ASARGS) -o $(CMDDIR)/wktstat src/other/wktstat.s +tests: dirs + $(AS) $(ASARGS) -o $(TESTDIR)/decimal_out src/tests/decimal_out.s + $(AS) $(ASARGS) -o $(TESTDIR)/fork_test src/tests/fork_test.s + $(AS) $(ASARGS) -o $(TESTDIR)/octal_test src/tests/octal_test.s + $(AS) $(ASARGS) -o $(TESTDIR)/testmul src/tests/testmul.s + $(AS) $(ASARGS) -o $(TESTDIR)/write_test src/tests/write_test.s + clean: rm -rf $(SYSDIR)/* rm -rf $(CMDDIR)/* + rm -rf $(TESTDIR)/* diff --git a/src/other/decimal_out.s b/src/tests/decimal_out.s similarity index 100% rename from src/other/decimal_out.s rename to src/tests/decimal_out.s diff --git a/src/other/fork_test.s b/src/tests/fork_test.s similarity index 100% rename from src/other/fork_test.s rename to src/tests/fork_test.s diff --git a/src/other/octal_test.s b/src/tests/octal_test.s similarity index 100% rename from src/other/octal_test.s rename to src/tests/octal_test.s diff --git a/src/other/testmul.s b/src/tests/testmul.s similarity index 100% rename from src/other/testmul.s rename to src/tests/testmul.s diff --git a/src/other/write_test.s b/src/tests/write_test.s similarity index 100% rename from src/other/write_test.s rename to src/tests/write_test.s