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
2019-05-15 21:47:08 +02:00

22 lines
496 B
Makefile

# The OS/K Team licences this file to you under the MIT license.
# See the LICENCE file in the project root for more information.
all: k.exe
src = instr/instrs.c karch/arch.c karch/main.c karch/regs.c
obj = $(patsubst %.c,%.o,$(src))
%.o: %.c instrs/i_arch.h
@gcc -O2 -Wall -I./karch -c $< -o $@
instrs/i_arch.h: instr/INSTRS instr/instrs.py
@python3 instr/instrs.py
clean:
@rm */*.o
k.exe: $(obj) instrs/i_arch.h instr/INSTRS instr/instrs.py
@gcc -O2 -Wall $(obj) -o k.exe
@rm */*.o