kvisc/Makefile

43 lines
864 B
Makefile

# The OS/K Team licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
KODIR=fs
KSDIR=vm/ob
KVVM=$(KODIR)/kvisc.exe
all: kas
kpc: vm/Makefile
@cd vm && make --no-print-directory -s verbose=yes
kas: kpc as/k-as.py
@cp vm/ob/instrs.lst as
dos: kas dosclean
@cd ka && make --no-print-directory -s
.PHONY: clean dosclean
stats:
@cd ka && ./mkstats.py
dosclean:
@rm -f $(KODIR)/*.com $(KSDIR)/*.sym
inclean:
@rm -f vm/ob/arch_i.h vm/ob/instrs.lst vm/ob/in/*.o
clean: dosclean
@cd vm && make clean --no-print-directory -s verbose=no
@rm -f $(KVVM) as/instrs.lst
test: dos
@$(KVVM) $(KODIR)/doskrnl.com $(KSDIR)/doskrnl.sym
wc: clean
@cat $(shell find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*') | wc -l
find:
@find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*'