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
2019-06-26 21:25:59 +02:00

37 lines
810 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
AOUT=$(KODIR)/dos.com
ASYM=$(KODIR)/dos.sym
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
DOSK = $(shell find ka -name '*.k')
$(AOUT): $(DOSK) kas
@as/k-as.py ka/dos.k 0x100000 $(AOUT) $(ASYM)
.PHONY: clean
clean:
@cd vm && make clean --no-print-directory -s verbose=no
@rm -f $(AOUT) $(ASYM) $(KVVM) as/instrs.lst
test: $(AOUT)
@$(KVVM) $(AOUT) $(ASYM)
@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)/*'