# 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.exe src = instr/instrs.c karch/decd.c karch/main.c karch/regs.c karch/dump.c obj = $(patsubst %.c,%.o,$(src)) %.o: %.c instrs/i_arch.h */*.h $(src) @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