umka/apps/makefile
Ivan Baravy 12442c72a7 Get rid of getopt, use Optparse
Well, I thought I had done this before. P for portability.
2023-02-02 16:25:20 +00:00

24 lines
531 B
Makefile

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
all: board_hello board_cycle readdir loader justawindow
%: %.asm
$(FASM) $< $@
.PHONY: all clean
clean:
rm -f board_hello board_cycle readdir loader justawindow