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-20 12:31:36 +02:00

28 lines
673 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.
all: kas
kpc:
@cd vm && make --no-print-directory verbose=no
kas: kpc as/regs.lst as/k-as.py
@cp vm/in/instrs.lst as
DOSK = $(shell find ka -name '*.k')
vm/a.out: $(DOSK) kas
@cd ka && ../as/k-as.py dos.k 0x100000 ../vm/a.out ../vm/a.sym
.PHONY: clean
clean:
@cd vm && make clean --no-print-directory
@rm -f vm/a.out vm/a.out.sym vm/k.exe vm/stdout.txt as/instrs.lst
test: vm/a.out
@vm/k.exe vm/a.out vm/a.sym > vm/stdout.txt
@rm -f vm/a.out vm/a.sym
wc: clean
@cat $(shell find -name *.[kch]) $(shell find -name *.py) | wc -l