X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile;h=f0f85df184649d09b3c1910aedb74049588cd0cc;hb=bf0187772ecfb475eedf5e0e9b8460b4f1a3f445;hp=c2ef59ff193d3be37295c99983ce0a70393b98f1;hpb=40d03ffa445137c3e6c5b864ac1e96dba382af63;p=tpg%2Facess2.git diff --git a/Makefile b/Makefile index c2ef59ff..f0f85df1 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ AI_USRAPPS := $(addprefix allinstall-,$(USRAPPS)) .PHONY: all clean install \ kmode all-kmode clean-kmode \ all-user clean-user \ + utest mtest \ $(ALL_MODULES) all-Kernel $(ALL_USRLIBS) $(ALL_USRAPPS) \ $(AI_MODULES) allinstall-Kernel $(AI_USRLIBS) $(AI_USRAPPS) \ $(CLEAN_MODULES) clean-Kernel $(CLEAN_USRLIBS) $(CLEAN_USRAPPS) \ @@ -56,13 +57,23 @@ all-install: install-Filesystem SyscallList $(AI_USRLIBS) $(AI_USRAPPS) $(AI_MOD clean: $(CLEAN_DYNMODS) $(CLEAN_MODULES) clean-Kernel $(CLEAN_USRLIBS) $(CLEAN_USRAPPS) install: install-Filesystem SyscallList $(INSTALL_USRLIBS) $(INSTALL_USRAPPS) $(INSTALL_DYNMODS) $(INSTALL_MODULES) install-Kernel +utest: $(USRLIBS:%=utest-%) + +$(USRLIBS:%=utest-%): utest-%: + @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src generate_exp + @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src utest -k + +# TODO: Module tests using DiskTool and NetTest +mtest: + @echo > /dev/null + SyscallList: include/syscalls.h include/syscalls.h: KernelLand/Kernel/Makefile KernelLand/Kernel/syscalls.lst @make -C KernelLand/Kernel/ include/syscalls.h _build_dynmod := BUILDTYPE=dynamic $(SUBMAKE) -C KernelLand/Modules/ _build_stmod := BUILDTYPE=static $(SUBMAKE) -C KernelLand/Modules/ -_build_kernel := $(SUBMAKE) $1 -C KernelLand/Kernel +_build_kernel := $(SUBMAKE) -C KernelLand/Kernel # Compile Only $(ALL_DYNMODS): all-%: