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 a42786831f
vm
2019-07-04 20:33:49 +02:00

42 lines
905 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
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/in/instrs.lst as
dos: kas dosclean
@cd ka && make --no-print-directory -s
#@as/k-as.py ka/dos.k 0x100000 $(AOUT) $(ASYM)
.PHONY: clean dosclean
dosclean:
@rm -f $(KODIR)/*.com $(KODIR)/*.sym
inclean:
@rm -f vm/in/arch_i.h vm/in/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 $(KODIR)/doskrnl.sym
@rm -f $(AOUT) $(ASYM)
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)/*'