2008-04-17 07:48:13 +02:00
|
|
|
|
2008-04-24 04:09:19 +02:00
|
|
|
BASETOOLS_DIR = $(EDK_TOOLS_PATH)\Bin\Win32
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build Macro
|
|
|
|
#
|
|
|
|
ASSEMBLY_CODE_FILE_LIST = $(MODULE_DIR)\bootsect.asm \
|
|
|
|
$(MODULE_DIR)\bs16.asm \
|
|
|
|
$(MODULE_DIR)\bs32.asm \
|
|
|
|
$(MODULE_DIR)\efi32.asm \
|
|
|
|
$(MODULE_DIR)\Gpt.asm \
|
|
|
|
$(MODULE_DIR)\Mbr.asm \
|
|
|
|
$(MODULE_DIR)\start.asm \
|
|
|
|
$(MODULE_DIR)\start16.asm \
|
|
|
|
$(MODULE_DIR)\start32.asm
|
|
|
|
|
|
|
|
TARGET_FILES = $(OUTPUT_DIR)\bootsect.com \
|
|
|
|
$(OUTPUT_DIR)\bs16.com \
|
|
|
|
$(OUTPUT_DIR)\bs32.com \
|
|
|
|
$(OUTPUT_DIR)\Gpt.com \
|
|
|
|
$(OUTPUT_DIR)\Mbr.com \
|
|
|
|
$(OUTPUT_DIR)\Start.com \
|
|
|
|
$(OUTPUT_DIR)\Start16.com \
|
|
|
|
$(OUTPUT_DIR)\Start32.com \
|
2008-05-08 08:22:31 +02:00
|
|
|
$(OUTPUT_DIR)\Start64.com \
|
|
|
|
$(OUTPUT_DIR)\St16_64.com \
|
|
|
|
$(OUTPUT_DIR)\St32_64.com \
|
|
|
|
$(OUTPUT_DIR)\efi32.com2 \
|
|
|
|
$(OUTPUT_DIR)\efi64.com2
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
INC =
|
|
|
|
|
|
|
|
|
|
|
|
#OBJECTS =
|
|
|
|
|
|
|
|
LIBS =
|
|
|
|
|
|
|
|
COMMON_DEPS =
|
|
|
|
|
2008-04-25 04:57:52 +02:00
|
|
|
all: $(TARGET_FILES)
|
2008-08-14 03:52:24 +02:00
|
|
|
|
2008-04-17 07:48:13 +02:00
|
|
|
#=============
|
|
|
|
$(OUTPUT_DIR)\bootsect.obj:$(MODULE_DIR)\bootsect.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\bootsect.obj" /FR"$(OUTPUT_DIR)\bootsect.txt" "$(MODULE_DIR)\bootsect.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\bootsect.com:$(OUTPUT_DIR)\bootsect.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\bootsect.obj,$(OUTPUT_DIR)\bootsect.com,$(OUTPUT_DIR)\bootsect.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\bs16.obj:$(MODULE_DIR)\bs16.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\bs16.obj" "$(MODULE_DIR)\bs16.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\bs16.com:$(OUTPUT_DIR)\bs16.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\bs16.obj,$(OUTPUT_DIR)\bs16.com,$(OUTPUT_DIR)\bs16.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\bs32.obj:$(MODULE_DIR)\bs32.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\bs32.obj" "$(MODULE_DIR)\bs32.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\bs32.com:$(OUTPUT_DIR)\bs32.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\bs32.obj,$(OUTPUT_DIR)\bs32.com,$(OUTPUT_DIR)\bs32.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Gpt.obj:$(MODULE_DIR)\Gpt.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Gpt.obj" "$(MODULE_DIR)\Gpt.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Gpt.com:$(OUTPUT_DIR)\Gpt.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Gpt.obj,$(OUTPUT_DIR)\Gpt.com,$(OUTPUT_DIR)\Gpt.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Mbr.obj:$(MODULE_DIR)\Mbr.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Mbr.obj" "$(MODULE_DIR)\Mbr.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Mbr.com:$(OUTPUT_DIR)\Mbr.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Mbr.obj,$(OUTPUT_DIR)\Mbr.com,$(OUTPUT_DIR)\Mbr.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start.obj:$(MODULE_DIR)\Start.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Start.obj" "$(MODULE_DIR)\Start.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start.com:$(OUTPUT_DIR)\Start.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Start.obj,$(OUTPUT_DIR)\Start.com,$(OUTPUT_DIR)\Start.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start16.obj:$(MODULE_DIR)\Start16.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Start16.obj" "$(MODULE_DIR)\Start16.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start16.com:$(OUTPUT_DIR)\Start16.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Start16.obj,$(OUTPUT_DIR)\Start16.com,$(OUTPUT_DIR)\Start16.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start32.obj:$(MODULE_DIR)\Start32.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Start32.obj" "$(MODULE_DIR)\Start32.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start32.com:$(OUTPUT_DIR)\Start32.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Start32.obj,$(OUTPUT_DIR)\Start32.com,$(OUTPUT_DIR)\Start32.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
2008-05-08 08:22:31 +02:00
|
|
|
$(OUTPUT_DIR)\Start64.obj:$(MODULE_DIR)\Start64.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\Start64.obj" "$(MODULE_DIR)\Start64.asm"
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\Start64.com:$(OUTPUT_DIR)\Start64.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\Start64.obj,$(OUTPUT_DIR)\Start64.com,$(OUTPUT_DIR)\Start64.map,,,
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\St16_64.obj:$(MODULE_DIR)\St16_64.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\St16_64.obj" "$(MODULE_DIR)\St16_64.asm"
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\St16_64.com:$(OUTPUT_DIR)\St16_64.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\St16_64.obj,$(OUTPUT_DIR)\St16_64.com,$(OUTPUT_DIR)\St16_64.map,,,
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\St32_64.obj:$(MODULE_DIR)\St32_64.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\St32_64.obj" "$(MODULE_DIR)\St32_64.asm"
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\St32_64.com:$(OUTPUT_DIR)\St32_64.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\St32_64.obj,$(OUTPUT_DIR)\St32_64.com,$(OUTPUT_DIR)\St32_64.map,,,
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
2008-04-17 07:48:13 +02:00
|
|
|
$(OUTPUT_DIR)\efi32.obj:$(MODULE_DIR)\efi32.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\efi32.obj" "$(MODULE_DIR)\efi32.asm"
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\efi32.com:$(OUTPUT_DIR)\efi32.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\efi32.obj,$(OUTPUT_DIR)\efi32.com,$(OUTPUT_DIR)\efi32.map,,,
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\efi32.com2:$(OUTPUT_DIR)\efi32.com
|
2008-08-13 07:27:10 +02:00
|
|
|
$(BASETOOLS_DIR)\Split.exe -f $(OUTPUT_DIR)\efi32.com -t $(OUTPUT_DIR)\efi32.com2 -s 135168
|
2008-04-17 07:48:13 +02:00
|
|
|
|
2008-05-08 08:22:31 +02:00
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\efi64.obj:$(MODULE_DIR)\efi64.asm
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASM16)" /c /omf /Fo"$(OUTPUT_DIR)\efi64.obj" "$(MODULE_DIR)\efi64.asm"
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
$(OUTPUT_DIR)\efi64.com:$(OUTPUT_DIR)\efi64.obj
|
2008-08-13 07:27:10 +02:00
|
|
|
"$(ASMLINK16)" /tiny $(OUTPUT_DIR)\efi64.obj,$(OUTPUT_DIR)\efi64.com,$(OUTPUT_DIR)\efi64.map,,,
|
2008-05-08 08:22:31 +02:00
|
|
|
|
|
|
|
#=============
|
|
|
|
|
|
|
|
$(OUTPUT_DIR)\efi64.com2:$(OUTPUT_DIR)\efi64.com
|
2008-08-13 07:27:10 +02:00
|
|
|
$(BASETOOLS_DIR)\Split.exe -f $(OUTPUT_DIR)\efi64.com -t $(OUTPUT_DIR)\efi64.com2 -s 135168
|
2008-04-17 07:48:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
if exist $(DEBUG_DIR) rmdir /s /q $(DEBUG_DIR)
|
|
|
|
if exist $(OUTPUT_DIR) rmdir /s /q $(OUTPUT_DIR)
|
|
|
|
|
|
|
|
|