# 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