From 23eea35607d47628b9ce9f880e95f07414d7c311 Mon Sep 17 00:00:00 2001 From: Artem Boldarev Date: Mon, 11 Jun 2018 21:57:50 +0300 Subject: [PATCH] Added real Makefiles to CormanLispStatic and CormanLispImage projects to avoid unnecessary rebuilds. --- CormanLispImage/CormanLispImage.vcxproj | 7 ++++--- CormanLispImage/CormanLispImage.vcxproj.filters | 1 + CormanLispImage/Makefile | 17 +++++++++++++++++ CormanLispServer/CormanLispStatic.vcxproj | 11 ++++++----- .../CormanLispStatic.vcxproj.filters | 1 + CormanLispServer/MakefileStatic.mk | 16 ++++++++++++++++ 6 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 CormanLispImage/Makefile create mode 100644 CormanLispServer/MakefileStatic.mk diff --git a/CormanLispImage/CormanLispImage.vcxproj b/CormanLispImage/CormanLispImage.vcxproj index 9272381..4433da7 100644 --- a/CormanLispImage/CormanLispImage.vcxproj +++ b/CormanLispImage/CormanLispImage.vcxproj @@ -115,6 +115,7 @@ + @@ -145,12 +146,12 @@ - $(SolutionDir)makeimg.bat + nmake $(SolutionDir)CormanLisp.img - $(SolutionDir)makeimg.bat + nmake rebuild WIN32;NDEBUG;$(NMakePreprocessorDefinitions) $(ProjectDir)$(Configuration)\ - $(SolutionDir)delimg.bat + nmake clean $(SolutionDir)delimg.bat diff --git a/CormanLispImage/CormanLispImage.vcxproj.filters b/CormanLispImage/CormanLispImage.vcxproj.filters index 15215b2..2659b0c 100644 --- a/CormanLispImage/CormanLispImage.vcxproj.filters +++ b/CormanLispImage/CormanLispImage.vcxproj.filters @@ -323,6 +323,7 @@ Sys + diff --git a/CormanLispImage/Makefile b/CormanLispImage/Makefile new file mode 100644 index 0000000..9b0b816 --- /dev/null +++ b/CormanLispImage/Makefile @@ -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 + diff --git a/CormanLispServer/CormanLispStatic.vcxproj b/CormanLispServer/CormanLispStatic.vcxproj index a2bac7b..4d1b3ab 100644 --- a/CormanLispServer/CormanLispStatic.vcxproj +++ b/CormanLispServer/CormanLispStatic.vcxproj @@ -8,6 +8,7 @@ + @@ -39,17 +40,17 @@ - $(SolutionDir)CormanLispServer\makestaticlib.bat - $(SolutionDir)\CormanLispServer\bin\CormanLispServer.lib - $(SolutionDir)CormanLispServer\makestaticlib.bat + nmake /f MakefileStatic.mk + $(SolutionDir)CormanLispServer\bin\CormanLispStatic.lib + nmake /f MakefileStatic.mk rebuild WIN32;_DEBUG;$(NMakePreprocessorDefinitions) $(SolutionDir)CormanLispServer\bin\ $(SolutionDir)CormanLispServer\bin\ - $(SolutionDir)CormanLispServer\delstaticlib.bat + nmake /f MakefileStatic.mk clean - + \ No newline at end of file diff --git a/CormanLispServer/CormanLispStatic.vcxproj.filters b/CormanLispServer/CormanLispStatic.vcxproj.filters index 81b08ac..b415194 100644 --- a/CormanLispServer/CormanLispStatic.vcxproj.filters +++ b/CormanLispServer/CormanLispStatic.vcxproj.filters @@ -3,5 +3,6 @@ + \ No newline at end of file diff --git a/CormanLispServer/MakefileStatic.mk b/CormanLispServer/MakefileStatic.mk new file mode 100644 index 0000000..e155120 --- /dev/null +++ b/CormanLispServer/MakefileStatic.mk @@ -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 +