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
julianb0 ea6ec1f01e
dos
2019-05-30 21:46:00 +02:00

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