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

28 lines
673 B
Makefile
Raw Normal View History

2019-05-15 20:06:45 +02:00
# The OS/K Team licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
2019-05-15 19:26:40 +02:00
2019-05-19 19:54:29 +02:00
all: kas
2019-05-15 21:47:08 +02:00
2019-05-16 20:09:20 +02:00
kpc:
@cd vm && make --no-print-directory verbose=no
2019-05-16 19:49:51 +02:00
2019-06-16 21:17:56 +02:00
kas: kpc as/regs.lst as/k-as.py
2019-06-05 12:53:09 +02:00
@cp vm/in/instrs.lst as
2019-05-15 19:26:40 +02:00
2019-06-05 12:53:09 +02:00
DOSK = $(shell find ka -name '*.k')
2019-05-15 19:26:40 +02:00
2019-06-19 13:47:10 +02:00
vm/a.out: $(DOSK) kas
@cd ka && ../as/k-as.py dos.k 0x100000 ../vm/a.out ../vm/a.sym
2019-05-30 18:31:50 +02:00
2019-06-13 22:20:35 +02:00
.PHONY: clean
clean:
2019-06-13 23:12:11 +02:00
@cd vm && make clean --no-print-directory
2019-06-19 13:47:10 +02:00
@rm -f vm/a.out vm/a.out.sym vm/k.exe vm/stdout.txt as/instrs.lst
2019-06-13 22:20:35 +02:00
2019-06-19 13:47:10 +02:00
test: vm/a.out
@vm/k.exe vm/a.out vm/a.sym > vm/stdout.txt
2019-06-20 12:31:36 +02:00
@rm -f vm/a.out vm/a.sym
2019-06-19 13:47:10 +02:00
wc: clean
2019-06-15 13:42:30 +02:00
@cat $(shell find -name *.[kch]) $(shell find -name *.py) | wc -l