2023-02-08 16:01:41 +01:00
|
|
|
TOPDIR=.
|
|
|
|
include $(TOPDIR)/Makefile.config
|
|
|
|
|
2023-03-28 17:54:05 +02:00
|
|
|
|
|
|
|
all: dumps user_lib tests
|
2023-02-08 16:01:41 +01:00
|
|
|
#
|
|
|
|
# Main targets
|
|
|
|
#
|
2023-03-28 17:54:05 +02:00
|
|
|
|
|
|
|
build: user_lib
|
|
|
|
$(MAKE) build -C riscv_instructions/
|
|
|
|
|
2023-03-01 13:44:48 +01:00
|
|
|
dumps:
|
|
|
|
$(MAKE) dumps -C riscv_instructions/
|
2023-03-08 13:02:03 +01:00
|
|
|
mkdir -p ${TOPDIR}/target/dumps/
|
|
|
|
find . -name '*.dump' -exec mv {} ${TOPDIR}/target/dumps/ \;
|
|
|
|
|
|
|
|
user_lib:
|
|
|
|
$(MAKE) -C userlib/
|
|
|
|
|
|
|
|
tests: user_lib
|
|
|
|
$(MAKE) tests -C riscv_instructions/
|
|
|
|
mkdir -p ${TOPDIR}/target/guac/
|
|
|
|
find . -name '*.guac' -exec mv {} ${TOPDIR}/target/guac/ \;
|
2023-02-08 16:01:41 +01:00
|
|
|
|
|
|
|
clean:
|
2023-03-28 17:54:05 +02:00
|
|
|
$(MAKE) clean -C userlib/
|
|
|
|
$(MAKE) clean -C riscv_instructions/
|
|
|
|
$(RM) -rf $(TOPDIR)/target
|
|
|
|
|