windows-nt/Source/XPSP1/NT/base/boot/oschoice/makefile.inc

109 lines
2.6 KiB
PHP
Raw Normal View History

2020-09-26 03:20:57 -05:00
!IFNDEF LANGUAGE
LANGUAGE=usa
!ENDIF
$(O)\msg.mc : msg.$(LANGUAGE)
copy $** $@
!IF $(386)
OSLOADER_LIBS=\
$(O)\oscldr.lib \
$(O)\oschoice.res \
$(PROJECT_ROOT)\boot\lib\daytona\$(O)\boot.lib \
$(PROJECT_ROOT)\boot\bd\daytona\$(O)\bd.lib \
$(PROJECT_ROOT)\boot\tftplib\$(O)\tftplib.lib \
$(PROJECT_ROOT)\boot\bootssp\boot\$(O)\bootssp.lib \
$(PROJECT_ROOT)\ntos\ke\up\$(O)\ke.lib \
$(PROJECT_ROOT)\ntos\rtl\boot\$(O)\bldrrtl.lib \
$(PROJECT_ROOT)\ntos\config\boot\$(O)\bconfig.lib \
$(SDK_LIB_PATH)\libcntpr.lib \
$(DS_LIB_PATH)\rsa32.lib
$(O)\oschoice.res: msg.$(LANGUAGE)
OSLOADER_LIB_COMPONENTS = \
$(PROJECT_ROOT)\boot\lib\daytona\$(O)\boot.lib \
$(O)\oscldr.lib
$(O)\link.rsp : makefile.inc
type << > $@
-base:0x300000
-debug
-entry:NtProcessStartup@4
-fixed
-incremental:no
-map
-opt:ref
-opt:icf
-subsystem:native
$(LINK_LIB_IGNORE_FLAG)
$(OSLOADER_LIBS)
<<NOKEEP
$(O)\oschoice.lib: $(OSLOADER_LIB_COMPONENTS)
$(LIB_NAME) -machine:i386 -out:$(O)\oschoice.lib $(OSLOADER_LIB_COMPONENTS) -ignore:4001
#
# We need to make a split oschoice in the obj directory
#
$(O)\oschoice.exe: $(OSLOADER_LIBS) makefile.inc $(O)\link.rsp
-$(LINK_NAME) -out:$(O)\oschoice.exe @$(O)\link.rsp
!ELSE IF $(IA64)
OSLOADER_LIBS=\
$(O)\oscldr.lib \
$(O)\oschoice.res \
$(PROJECT_ROOT)\boot\lib\daytona\$(O)\boot.lib \
$(PROJECT_ROOT)\boot\bd\daytona\$(O)\bd.lib \
$(PROJECT_ROOT)\boot\efi\daytona\$(O)\efi.lib \
$(PROJECT_ROOT)\boot\tftplib\$(O)\tftplib.lib \
$(PROJECT_ROOT)\boot\bootssp\boot\$(O)\bootssp.lib \
$(PROJECT_ROOT)\ntos\ke\up\$(O)\ke.lib \
$(PROJECT_ROOT)\ntos\rtl\boot\$(O)\bldrrtl.lib \
$(PROJECT_ROOT)\ntos\config\boot\$(O)\bconfig.lib \
$(SDK_LIB_PATH)\libcntpr.lib \
$(DS_LIB_PATH)\rsa32.lib
$(O)\link.rsp : makefile.inc
type << > $@
-subsystem:EFI_APPLICATION
-nodefaultlib
-debug:full
-last:.rdata
-last:.pdata
-last:.comment
-machine:IA64
-base:0x1040000
-opt:ref
-opt:icf
-entry:main
-map
-ignore:4049,4001,4217
$(LINK_LIB_IGNORE_FLAG)
$(OSLOADER_LIBS)
<<NOKEEP
$(O)\oschoice.res: msg.$(LANGUAGE)
$(O)\oschoice.efi: $(OSLOADER_LIBS) makefile.inc $(O)\link.rsp
-$(LINK_NAME) -out:$@ @$(O)\link.rsp
$(O)\oschoice.dbg: $(O)\oschoice.efi
-pe2dbg $? $@
OSLOADER_LIB_COMPONENTS = \
$(PROJECT_ROOT)\boot\lib\daytona\$(O)\boot.lib \
$(PROJECT_ROOT)\boot\efi\daytona\$(O)\efi.lib \
$(O)\oscldr.lib
$(O)\oschoice.lib: $(OSLOADER_LIB_COMPONENTS)
$(LIB_NAME) -machine:ia64 -out:$(O)\oschoice.lib $(OSLOADER_LIB_COMPONENTS) -ignore:4001
!ENDIF