1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-05-04 15:15:48 +00:00

makefile updates

This commit is contained in:
Tom Everett
2016-03-19 18:55:32 -06:00
parent 13db06903d
commit 3456d6517e
2 changed files with 29 additions and 27 deletions

View File

@@ -1,31 +1,8 @@
# Top level makefile to build the tests and everything else
AS=tools/as7
ASARGS=--format=ptr
TESTDIR=tests
all: buildit testit
all: buildit
buildit:
cd build && make
runsh: all
cd bin && ../tools/a7out sh
testit:
mkdir -p $(TESTDIR)
$(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
runtests: tests
cd tests && ../tools/a7out decimal_out
cd tests && ../tools/a7out fork_test
cd tests && ../tools/a7out octal_test
# cd tests && ../tools/a7out testmul
# cd tests && ../tools/a7out write_test
cd build && make all
clean:
rm -rf $(TESTDIR)/*
cd build && make clean