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 pc && make --no-print-directory
|
2019-05-30 12:19:38 +02:00
|
|
|
@mv pc/k.exe out/k.exe
|
2019-05-16 19:49:51 +02:00
|
|
|
|
2019-05-29 22:59:17 +02:00
|
|
|
kas: kpc as/k-as.py as/regs.lst
|
2019-05-29 16:57:22 +02:00
|
|
|
@cp pc/instrs/instrs.lst as
|
|
|
|
@rm -f pc/instrs/instrs.lst
|
2019-05-15 19:26:40 +02:00
|
|
|
|
2019-05-30 18:31:50 +02:00
|
|
|
DOSK = $(shell find dos -name '*.k')
|
2019-05-15 19:26:40 +02:00
|
|
|
|
2019-05-30 18:31:50 +02:00
|
|
|
out/a.out: $(DOSK)
|
|
|
|
@cd dos && ../as/k-as.py dos.k 0x100000 ../out/a.out
|
|
|
|
|
|
|
|
test: kas out/a.out
|
2019-05-30 12:19:38 +02:00
|
|
|
@out/k.exe out/a.out > out/stdout.txt
|
2019-05-30 18:31:50 +02:00
|
|
|
@echo "output:"
|
|
|
|
@echo ">>>>>>>>"
|
2019-05-30 21:46:00 +02:00
|
|
|
@cat -v out/stdout.txt
|
2019-05-30 18:31:50 +02:00
|
|
|
@echo
|
|
|
|
@echo "<<<<<<<<"
|
|
|
|
@echo
|
|
|
|
@rm -f out/a.out
|
2019-05-29 22:59:17 +02:00
|
|
|
|
2019-05-30 18:31:50 +02:00
|
|
|
disasm: kas out/a.out
|
2019-05-30 12:19:38 +02:00
|
|
|
@out/k.exe os/a.out -d
|
|
|
|
@mv fwprog.dis out
|