mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-26 12:05:36 +01:00
7c0aa811ec
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
!ifndef DESTDIR
|
|
!error Variable DESTDIR must be defined!
|
|
!endif
|
|
|
|
!ifdef NASM_PREFIX
|
|
NASM=$(NASM_PREFIX)nasm
|
|
!else
|
|
NASM=nasm
|
|
!endif
|
|
|
|
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 *~
|