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-05 12:53:09 +02:00

31 lines
601 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
kas: kpc as/k-as.py as/regs.lst
@cp vm/in/instrs.lst as
@rm -f vm/in/instrs.lst
DOSK = $(shell find ka -name '*.k')
vm/a.out: $(DOSK)
@cd ka && ../as/k-as.py dos.k 0x100000 ../vm/a.out
test: kas vm/a.out
@vm/k.exe vm/a.out > vm/stdout.txt
@rm -f vm/a.out
@echo "output:"
@echo ">>>>>>>>"
@cat -v vm/stdout.txt
@echo
@echo "<<<<<<<<"
@echo
disasm: kas vm/a.out
@vm/k.exe vm/a.out -d
@mv fwprog.dis vm