2008-03-05 09:52:00 -05:00
|
|
|
<!--
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# Microsoft Research Singularity
|
|
|
|
#
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
#
|
|
|
|
# File: Boot\BootSectors\Makefile
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
-->
|
|
|
|
|
|
|
|
<Project DefaultTarget="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2008-11-17 18:29:00 -05:00
|
|
|
|
2008-03-05 09:52:00 -05:00
|
|
|
<Import Project="..\..\Paths.targets" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<!--
|
2008-11-17 18:29:00 -05:00
|
|
|
Truncate PATH for 16-bit tools because if it is
|
2008-03-05 09:52:00 -05:00
|
|
|
too long it'll give an out-of-memory error.
|
|
|
|
-->
|
2008-11-17 18:29:00 -05:00
|
|
|
<CC16>PATH ; & "$(BUILDDIR)\cl16.exe"</CC16>
|
|
|
|
<LINK16>PATH ; & for %%f in ("$(BUILDDIR)\x86_x86\link16.exe") do %%~sf</LINK16>
|
|
|
|
<AS>"$(BUILDDIR)\x86_x86\ml.exe"</AS>
|
|
|
|
<SDIZEPDB>"$(BUILDDIR)\sdizepdb.exe"</SDIZEPDB>
|
2008-03-05 09:52:00 -05:00
|
|
|
<MLINKFLAGS>/NOD /STACK:0x8000 /ONERROR:NOEXE /FAR /PACKC /NOLOGO</MLINKFLAGS>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<BootProgram Include="Fat32_BS.asm"/>
|
|
|
|
<BootProgram Include="Fat16_BS.asm"/>
|
|
|
|
<BootProgram Include="Etfs_BS.asm"/>
|
|
|
|
<BootProgram Include="UsbFat16_BS.asm"/>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Target Name="Build" DependsOnTargets="CompileBootPrograms"/>
|
|
|
|
|
|
|
|
<Target Name="CreateDirs">
|
|
|
|
<MakeDir Directories="$(BOOTDIR)"/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="CompileBootPrograms"
|
|
|
|
Inputs="@(BootProgram)"
|
|
|
|
Outputs="$(BOOTDIR)\%(BootProgram.filename).bin"
|
|
|
|
DependsOnTargets="CreateDirs">
|
2008-11-17 18:29:00 -05:00
|
|
|
<Exec Command="$(AS) /nologo /c /omf /Cp /AT /I"$(BOOTDIR)" /Fl"$(BOOTDIR)\%(BootProgram.filename).lst" /Fo"$(BOOTDIR)\%(BootProgram.filename).obj" %(BootProgram.identity)"/>
|
2008-03-05 09:52:00 -05:00
|
|
|
<Exec WorkingDirectory="$(BOOTDIR)"
|
|
|
|
Command="$(LINK16) /nologo /tiny %(BootProgram.filename).obj,%(BootProgram.filename).bin;"/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="Clean">
|
|
|
|
<Delete Files="$(BOOTDIR)\%(BootProgram.filename).bin;$(BOOTDIR)\%(BootProgram.filename).obj;$(BOOTDIR)\%(BootProgram.filename).lst"/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
</Project>
|