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

43 lines
864 B
Makefile
Raw Permalink 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-06-26 21:25:59 +02:00
KODIR=fs
2019-08-05 15:55:46 +02:00
KSDIR=vm/ob
2019-06-26 21:25:59 +02:00
KVVM=$(KODIR)/kvisc.exe
2019-06-21 12:13:09 +02:00
2019-05-19 19:54:29 +02:00
all: kas
2019-05-15 21:47:08 +02:00
2019-06-21 22:19:55 +02:00
kpc: vm/Makefile
2019-06-21 19:38:31 +02:00
@cd vm && make --no-print-directory -s verbose=yes
2019-05-16 19:49:51 +02:00
2019-08-16 13:29:38 +02:00
kas: kpc as/k-as.py
2019-07-18 22:49:31 +02:00
@cp vm/ob/instrs.lst as
2019-05-15 19:26:40 +02:00
2019-07-01 13:16:17 +02:00
dos: kas dosclean
@cd ka && make --no-print-directory -s
2019-05-15 19:26:40 +02:00
2019-07-01 13:16:17 +02:00
.PHONY: clean dosclean
2019-08-05 16:31:23 +02:00
stats:
@cd ka && ./mkstats.py
2019-07-01 13:16:17 +02:00
dosclean:
2019-08-05 15:55:46 +02:00
@rm -f $(KODIR)/*.com $(KSDIR)/*.sym
2019-07-01 13:16:17 +02:00
2019-07-04 20:33:49 +02:00
inclean:
2019-07-18 22:49:31 +02:00
@rm -f vm/ob/arch_i.h vm/ob/instrs.lst vm/ob/in/*.o
2019-07-04 20:33:49 +02:00
2019-07-01 13:16:17 +02:00
clean: dosclean
2019-06-23 13:15:22 +02:00
@cd vm && make clean --no-print-directory -s verbose=no
2019-07-01 13:16:17 +02:00
@rm -f $(KVVM) as/instrs.lst
2019-06-13 22:20:35 +02:00
2019-07-01 13:16:17 +02:00
test: dos
2019-08-05 15:55:46 +02:00
@$(KVVM) $(KODIR)/doskrnl.com $(KSDIR)/doskrnl.sym
2019-06-21 22:19:55 +02:00
2019-06-19 13:47:10 +02:00
wc: clean
2019-06-23 13:15:22 +02:00
@cat $(shell find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*') | wc -l
2019-06-15 13:42:30 +02:00
2019-06-23 13:15:22 +02:00
find:
@find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*'