Makefile fixes
This commit is contained in:
parent
cb25b09cff
commit
7179931224
7
Makefile
7
Makefile
@ -2,7 +2,7 @@ TOPDIR=.
|
||||
include $(TOPDIR)/Makefile.config
|
||||
|
||||
|
||||
all: dumps user_lib tests
|
||||
all: dumps user_lib instruction_tests
|
||||
#
|
||||
# Main targets
|
||||
#
|
||||
@ -18,8 +18,9 @@ dumps:
|
||||
user_lib:
|
||||
$(MAKE) -C userlib/
|
||||
|
||||
tests: user_lib
|
||||
$(MAKE) tests -C test/riscv_instructions/
|
||||
syscall: user_lib
|
||||
$(MAKE) build -C test/syscall_tests/
|
||||
$(RM) test/syscall_tests/*.o
|
||||
mkdir -p ${TOPDIR}/target/guac/
|
||||
find . -name '*.guac' -exec mv {} ${TOPDIR}/target/guac/ \;
|
||||
|
||||
|
@ -2,22 +2,18 @@ build:
|
||||
make build -C boolean_logic/
|
||||
make build -C jump_instructions/
|
||||
make build -C simple_arithmetics/
|
||||
make build -C syscall_tests/
|
||||
|
||||
dumps:
|
||||
make dumps -C boolean_logic/
|
||||
make dumps -C jump_instructions/
|
||||
make dumps -C simple_arithmetics/
|
||||
make dumps -C syscall_tests/
|
||||
|
||||
tests:
|
||||
make tests -C boolean_logic/
|
||||
make tests -C jump_instructions/
|
||||
make tests -C simple_arithmetics/
|
||||
make tests -C syscall_tests/
|
||||
|
||||
clean:
|
||||
$(MAKE) clean -C boolean_logic/
|
||||
$(MAKE) clean -C jump_instructions/
|
||||
$(MAKE) clean -C simple_arithmetics/
|
||||
$(MAKE) clean -C syscall_tests/
|
||||
$(MAKE) clean -C simple_arithmetics/
|
@ -10,7 +10,7 @@ tests: halt.guac prints.guac
|
||||
clean:
|
||||
$(RM) halt.o halt prints prints.o
|
||||
|
||||
TOPDIR = ../../..
|
||||
TOPDIR = ../..
|
||||
include $(TOPDIR)/Makefile.rules
|
||||
|
||||
$(PROGRAMS): % : $(USERLIB)/sys.o $(USERLIB)/libnachos.o %.o
|
BIN
test/syscall_tests/halt
Executable file
BIN
test/syscall_tests/halt
Executable file
Binary file not shown.
BIN
test/syscall_tests/prints
Executable file
BIN
test/syscall_tests/prints
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user