2019-07-01 13:16:17 +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.
|
|
|
|
|
|
|
|
all: dos
|
|
|
|
|
|
|
|
KODIR=../fs
|
2019-08-05 15:55:46 +02:00
|
|
|
KSDIR=../vm/ob
|
2019-08-21 18:47:03 +02:00
|
|
|
KPDIR=../vm/ob
|
2019-07-01 13:16:17 +02:00
|
|
|
|
|
|
|
KSRC = $(shell ls *.k)
|
2019-08-21 18:47:03 +02:00
|
|
|
KPPC = $(patsubst %.k,$(KODIR)/%.ppc,$(KSRC))
|
2019-07-01 13:16:17 +02:00
|
|
|
KCOM = $(patsubst %.k,$(KODIR)/%.com,$(KSRC))
|
|
|
|
|
|
|
|
$(KODIR)/%.com: %.k
|
2019-08-21 18:47:03 +02:00
|
|
|
@cpp -I. -x assembler-with-cpp $< > $(patsubst %.k,$(KODIR)/%.ppc,$<)
|
|
|
|
@../as/k-as.py $(patsubst %.k,$(KODIR)/%.ppc,$<) 0x100000 $@ $(patsubst %.k,$(KSDIR)/%.sym,$<)
|
2019-07-01 13:16:17 +02:00
|
|
|
|
|
|
|
dos: $(KCOM)
|
|
|
|
|