CloverBootloader/BootHFS/Makefile.win
Sergey Isakov e39c53e831 vs dont like __typeof
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-10 11:05:37 +03:00

51 lines
1.0 KiB
Makefile

!ifndef DESTDIR
!error Variable DESTDIR must be defined!
!endif
# !ifdef NASM_PREFIX
# NASM=$(NASM_PREFIX)\nasm
# !else
NASM=nasm
# !endif
all: boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt
boot0af: boot0af.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot0ss: boot0ss.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot0md: boot0md.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1h: boot1h.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1h2: boot1h2.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1f32: boot1f32.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1f32alt: boot1f32alt.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1x: boot1x.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
boot1xalt: boot1xalt.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
clean:
del /f boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt *~