BurritOS/Makefile
François Autin 411caac86f Assembly lib
2023-04-05 10:53:34 +00:00

31 lines
675 B
Makefile

TOPDIR=.
include $(TOPDIR)/Makefile.config
all: dumps user_lib tests
#
# Main targets
#
instruction_tests:
$(MAKE) build -C test/riscv_instructions/
dumps:
$(MAKE) dumps -C test/riscv_instructions/
mkdir -p ${TOPDIR}/target/dumps/
find . -path ${TOPDIR}/target -prune -o -name '*.dump' -exec mv {} ${TOPDIR}/target/dumps/ \;
user_lib:
$(MAKE) -C userlib/
mv ${TOPDIR}/userlib/sys.a ${TOPDIR}/src/sys.a
tests: user_lib
$(MAKE) tests -C test/riscv_instructions/
mkdir -p ${TOPDIR}/target/guac/
find . -name '*.guac' -exec mv {} ${TOPDIR}/target/guac/ \;
clean:
$(MAKE) clean -C userlib/
$(MAKE) clean -C test/riscv_instructions/
$(RM) -rf $(TOPDIR)/target