Trying to make bin tests files

This commit is contained in:
Quentin Legot 2023-03-28 17:54:05 +02:00
parent c9792d1a1a
commit 7a32aa503c
4 changed files with 27 additions and 3 deletions

View File

@ -1,9 +1,15 @@
TOPDIR=.
include $(TOPDIR)/Makefile.config
all: dumps user_lib tests
#
# Main targets
#
build: user_lib
$(MAKE) build -C riscv_instructions/
dumps:
$(MAKE) dumps -C riscv_instructions/
mkdir -p ${TOPDIR}/target/dumps/
@ -18,4 +24,7 @@ tests: user_lib
find . -name '*.guac' -exec mv {} ${TOPDIR}/target/guac/ \;
clean:
rm -rf $(TOPDIR)/target
$(MAKE) clean -C userlib/
$(MAKE) clean -C riscv_instructions/
$(RM) -rf $(TOPDIR)/target

View File

@ -1,3 +1,8 @@
build:
make build -C boolean_logic/
# make build -C jump_instructions/
# make build -C simple_arithmetics/
dumps:
make dumps -C boolean_logic/
make dumps -C jump_instructions/
@ -7,3 +12,8 @@ tests:
make tests -C boolean_logic/
make tests -C jump_instructions/
make tests -C simple_arithmetics/
clean:
$(MAKE) clean -C boolean_logic/
$(MAKE) clean -C jump_instructions/
$(MAKE) clean -C simple_arithmetics/

View File

@ -1,6 +1,8 @@
TOPDIR = ../..
include $(TOPDIR)/Makefile.tests
build: comparisons if switch
dumps: comparisons.dump if.dump switch.dump
tests: comparisons.guac if.guac switch.guac

View File

@ -2,3 +2,6 @@ TOPDIR = ../
include $(TOPDIR)/Makefile.tests
default: sys.o libnachos.o
clean:
$(RM) libnachos.o sys.o