Makefile fixes

This commit is contained in:
François Autin 2023-04-05 15:09:10 +02:00
parent cb25b09cff
commit 7179931224
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C
7 changed files with 6 additions and 9 deletions

View File

@ -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/ \;

View File

@ -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/

View File

@ -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

Binary file not shown.

BIN
test/syscall_tests/prints Executable file

Binary file not shown.