Skip to content

Commit

Permalink
Added real Makefiles to CormanLispStatic and CormanLispImage projects…
Browse files Browse the repository at this point in the history
… to avoid unnecessary rebuilds.
  • Loading branch information
arbv committed Jun 11, 2018
1 parent 6e0d644 commit 23eea35
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 8 deletions.
7 changes: 4 additions & 3 deletions CormanLispImage/CormanLispImage.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<None Include="..\Sys\working.lisp" />
<None Include="..\Sys\write.lisp" />
<None Include="..\Sys\xp.lisp" />
<None Include="Makefile" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\clconsole\clconsole.vcxproj">
Expand Down Expand Up @@ -145,12 +146,12 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Standard|Win32'">
<NMakeBuildCommandLine>$(SolutionDir)makeimg.bat</NMakeBuildCommandLine>
<NMakeBuildCommandLine>nmake</NMakeBuildCommandLine>
<NMakeOutput>$(SolutionDir)CormanLisp.img</NMakeOutput>
<NMakeReBuildCommandLine>$(SolutionDir)makeimg.bat</NMakeReBuildCommandLine>
<NMakeReBuildCommandLine>nmake rebuild</NMakeReBuildCommandLine>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
<OutDir>$(ProjectDir)$(Configuration)\</OutDir>
<NMakeCleanCommandLine>$(SolutionDir)delimg.bat</NMakeCleanCommandLine>
<NMakeCleanCommandLine>nmake clean</NMakeCleanCommandLine>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<NMakeCleanCommandLine>$(SolutionDir)delimg.bat</NMakeCleanCommandLine>
Expand Down
1 change: 1 addition & 0 deletions CormanLispImage/CormanLispImage.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@
<None Include="..\Sys\version.lisp">
<Filter>Sys</Filter>
</None>
<None Include="Makefile" />
</ItemGroup>
<ItemGroup>
<Filter Include="Sys">
Expand Down
17 changes: 17 additions & 0 deletions CormanLispImage/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# File: Makefile
# Contents: Makefile for CormanLisp.img
# History: 11.06.2018 Artem Boldarev Created.
#

default: ..\CormanLisp.img

# we depend on CormanLispServer.dll because it is good idea to rebuild image after changes in the Lisp kernel
..\CormanLisp.img: ..\CormanLispServer.dll ../Sys/*.lisp
..\makeimg.bat

clean:
if exist ..\CormanLisp.img del ..\CormanLisp.img

rebuild: clean default

11 changes: 6 additions & 5 deletions CormanLispServer/CormanLispStatic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</ItemGroup>
<ItemGroup>
<None Include="delstaticlib.bat" />
<None Include="MakefileStatic.mk" />
<None Include="makestaticlib.bat" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -39,17 +40,17 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Standard|Win32'">
<NMakeBuildCommandLine>$(SolutionDir)CormanLispServer\makestaticlib.bat</NMakeBuildCommandLine>
<NMakeOutput>$(SolutionDir)\CormanLispServer\bin\CormanLispServer.lib</NMakeOutput>
<NMakeReBuildCommandLine>$(SolutionDir)CormanLispServer\makestaticlib.bat</NMakeReBuildCommandLine>
<NMakeBuildCommandLine>nmake /f MakefileStatic.mk</NMakeBuildCommandLine>
<NMakeOutput>$(SolutionDir)CormanLispServer\bin\CormanLispStatic.lib</NMakeOutput>
<NMakeReBuildCommandLine>nmake /f MakefileStatic.mk rebuild</NMakeReBuildCommandLine>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
<OutDir>$(SolutionDir)CormanLispServer\bin\</OutDir>
<IntDir>$(SolutionDir)CormanLispServer\bin\</IntDir>
<NMakeCleanCommandLine>$(SolutionDir)CormanLispServer\delstaticlib.bat</NMakeCleanCommandLine>
<NMakeCleanCommandLine>nmake /f MakefileStatic.mk clean</NMakeCleanCommandLine>
</PropertyGroup>
<ItemDefinitionGroup>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions CormanLispServer/CormanLispStatic.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
<ItemGroup>
<None Include="makestaticlib.bat" />
<None Include="delstaticlib.bat" />
<None Include="MakefileStatic.mk" />
</ItemGroup>
</Project>
16 changes: 16 additions & 0 deletions CormanLispServer/MakefileStatic.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# File: Makefile
# Contents: Makefile for CormanLispStatic.lib
# History: 11.06.2018 Artem Boldarev Created.
#

default: ./bin/CormanLispStatic.lib

./bin/CormanLispStatic.lib: ../CormanLispServer.dll
makestaticlib.bat

clean:
delstaticlib.bat

rebuild: clean default

0 comments on commit 23eea35

Please sign in to comment.