2022-05-24 21:22:12 +02:00
|
|
|
FASM_EXE ?= fasm
|
|
|
|
FASM_FLAGS=-dUMKA=1
|
|
|
|
|
|
|
|
ifeq ($(HOST),linux)
|
|
|
|
FASM_INCLUDE=$(KOLIBRIOS)/programs
|
|
|
|
FASM=INCLUDE="$(FASM_INCLUDE)" $(FASM_EXE) $(FASM_FLAGS)
|
|
|
|
else ifeq ($(HOST),windows)
|
|
|
|
FASM_INCLUDE=$(KOLIBRIOS)\programs
|
|
|
|
FASM=set "INCLUDE=$(FASM_INCLUDE)" && $(FASM_EXE) $(FASM_FLAGS)
|
|
|
|
else
|
|
|
|
$(error your OS is not supported)
|
|
|
|
endif
|
|
|
|
|
2023-01-16 03:50:19 +01:00
|
|
|
all: board_hello board_cycle readdir
|
2022-05-24 21:22:12 +02:00
|
|
|
|
|
|
|
%: %.asm
|
|
|
|
$(FASM) $< $@
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
clean:
|
2023-01-16 03:50:19 +01:00
|
|
|
rm -f board_hello board_cycle readdir
|