1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-05-16 20:09:20 +02:00
parent 0d2f94314a
commit 0a29f911a2
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
6 changed files with 20 additions and 14 deletions

View File

@ -1,13 +1,13 @@
# 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: pc as
all: kpc kas
pc:
cd pc && make
kpc:
@cd pc && make --no-print-directory
as:
cd as && make
kas:
@cd as && make --no-print-directory
test: all

View File

@ -0,0 +1,4 @@
# 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: k-as.py

View File

@ -1,4 +1,7 @@
#!/usr/bin/python3
# The OS/K Team licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.

View File

@ -3,15 +3,14 @@
all: k.exe
src = instrs.c decd.c main.c regs.c \
dump.c jumps.c
src = instrs.c decd.c main.c regs.c dump.c jumps.c
obj = $(patsubst %.c,%.o,$(src))
%.o: %.c instrs/i_arch.h */*.h $(src)
@gcc -O2 -Wall -I./karch -c $< -o $@
%.o: %.c i_arch.h *.h $(src)
@gcc -O2 -Wall -c $< -o $@
instrs/i_arch.h: INSTRS instrs.py
i_arch.h: INSTRS instrs.py
@python3 instrs.py
.PHONY: clean
@ -20,6 +19,6 @@ clean:
@rm *.o
k.exe: $(obj) i_arch.h INSTRS instrs.py
@gcc -O2 -Wall $(obj) -o ../k.exe
@gcc -O2 -Wall $(obj) -o k.exe
@rm *.o

View File

@ -198,5 +198,5 @@ static inline void writemem64(ctx_t *ctx, ulong val, ulong addr)
ctx->mp[real++] = val & 0xFFFF;
}
#include "../instr/arch_i.h"
#include "arch_i.h"

View File

@ -3,8 +3,8 @@
# The OS/K Team licences this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
fi = open("instr/INSTRS")
hd = open("instr/arch_i.h", "w")
fi = open("INSTRS")
hd = open("arch_i.h", "w")
count = 0