2019-09-03 11:58:42 +02:00
|
|
|
!ifndef DESTDIR
|
|
|
|
!error Variable DESTDIR must be defined!
|
|
|
|
!endif
|
|
|
|
|
2020-02-28 09:14:12 +01:00
|
|
|
# !ifdef NASM_PREFIX
|
|
|
|
# NASM=$(NASM_PREFIX)\nasm
|
|
|
|
# !else
|
2019-09-03 11:58:42 +02:00
|
|
|
NASM=nasm
|
2020-02-28 09:14:12 +01:00
|
|
|
# !endif
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
all: boot0 boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt
|
|
|
|
|
|
|
|
boot0: boot0.s
|
|
|
|
@echo -^> "$@"
|
|
|
|
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
|
|
|
|
|
|
|
|
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 boot0 boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt *~
|