mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
43 lines
864 B
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)/*'
|