X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068..bb5ae5c85c0812c52e8d53187f2c6b0ee9525c8c:/lunaix-os/makefile?ds=sidebyside diff --git a/lunaix-os/makefile b/lunaix-os/makefile index 12cc1f5..9895780 100644 --- a/lunaix-os/makefile +++ b/lunaix-os/makefile @@ -48,9 +48,8 @@ tool: @$(MAKE) $(MKFLAGS) -C scripts all -I $(mkinc_dir) .NOTPARALLEL: -export KCMD=$(CMDLINE) export LBUILD ARCH MODE -all: $(kbuild_dir) tool kernel usr/build +all: $(kbuild_dir) tool kernel rootfs: usr/build $(call status,TASK,$(notdir $@)) @@ -71,7 +70,12 @@ clean-user: clean: @$(MAKE) $(MKFLAGS) -C usr clean -I $(mkinc_dir) @$(MAKE) $(MKFLAGS) -C scripts clean -I $(mkinc_dir) + @$(MAKE) $(MKFLAGS) -C tests/units clean @$(MAKE) -f kernel.mk clean -I $(mkinc_dir) @rm -rf $(kbuild_dir) || exit 1 @rm -rf .builder || exit 1 + +export CFLAGS=-include $(lbuild_config_h) +unit-test: $(lbuild_config_h) + @$(MAKE) $(MKFLAGS) -C tests/units run \ No newline at end of file