1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/Makefile
julianb0 3559d69b61
ka
2019-08-05 15:55:46 +02:00

40 lines
844 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/regs.lst as/k-as.py
@cp vm/ob/instrs.lst as
dos: kas dosclean
@cd ka && make --no-print-directory -s
.PHONY: clean dosclean
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)/*'