77 lines
5.7 KiB
Makefile
77 lines
5.7 KiB
Makefile
#
|
||
# Copyright 1991-2020 Amebis
|
||
# Copyright 2016 GÉANT
|
||
#
|
||
# This file is part of GÉANTLink.
|
||
#
|
||
# GÉANTLink is free software: you can redistribute it and/or modify
|
||
# it under the terms of the GNU General Public License as published by
|
||
# the Free Software Foundation, either version 3 of the License, or
|
||
# (at your option) any later version.
|
||
#
|
||
# GÉANTLink is distributed in the hope that it will be useful,
|
||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
# GNU General Public License for more details.
|
||
#
|
||
# You should have received a copy of the GNU General Public License
|
||
# along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||
#
|
||
|
||
CleanSetup ::
|
||
-if exist "$(OUTPUT_DIR)\Setup\WLANManager$(PLAT_SUFFIX).exe" del /f /q "$(OUTPUT_DIR)\Setup\WLANManager$(PLAT_SUFFIX).exe"
|
||
msbuild.exe $(MSBUILDFLAGS) "$(MSIBUILD_PRODUCT_NAME_ID).sln" /t:Clean /p:Platform=$(PLAT) /p:Configuration=Release
|
||
msbuild.exe $(MSBUILDFLAGS) "$(MSIBUILD_PRODUCT_NAME_ID).sln" /t:Clean /p:Platform=$(PLAT) /p:Configuration=Debug
|
||
|
||
|
||
######################################################################
|
||
# Setup
|
||
######################################################################
|
||
|
||
Setup :: \
|
||
"$(OUTPUT_DIR)\Setup\$(MSIBUILD_PRODUCT_NAME_ID)$(PLAT_SUFFIX).msi" \
|
||
"$(OUTPUT_DIR)\Setup\WLANManager$(PLAT_SUFFIX).exe"
|
||
|
||
SetupDebug :: \
|
||
"$(OUTPUT_DIR)\Setup\$(MSIBUILD_PRODUCT_NAME_ID)$(PLAT_SUFFIX)D.msi"
|
||
|
||
SetupCompile ::
|
||
msbuild.exe $(MSBUILDFLAGS) "$(MSIBUILD_PRODUCT_NAME_ID).sln" /t:Build /p:Platform=$(PLAT) /p:Configuration=Release
|
||
|
||
SetupDebugCompile ::
|
||
msbuild.exe $(MSBUILDFLAGS) "$(MSIBUILD_PRODUCT_NAME_ID).sln" /t:Build /p:Platform=$(PLAT) /p:Configuration=Debug
|
||
|
||
|
||
######################################################################
|
||
# Publishing
|
||
######################################################################
|
||
|
||
Publish :: \
|
||
"$(PUBLISH_PACKAGE_DIR)\$(MSIBUILD_PRODUCT_NAME_ID)$(PLAT_SUFFIX).msi" \
|
||
"$(PUBLISH_PACKAGE_DIR)\WLANManager$(PLAT_SUFFIX).exe"
|
||
|
||
|
||
######################################################################
|
||
# File copy
|
||
######################################################################
|
||
|
||
"$(PUBLISH_PACKAGE_DIR)\$(MSIBUILD_PRODUCT_NAME_ID)$(PLAT_SUFFIX).msi" : "$(OUTPUT_DIR)\Setup\$(MSIBUILD_PRODUCT_NAME_ID)$(PLAT_SUFFIX).msi"
|
||
copy /y $** $@ > NUL
|
||
|
||
"$(OUTPUT_DIR)\Setup\WLANManager$(PLAT_SUFFIX).exe" \
|
||
"$(PUBLISH_PACKAGE_DIR)\WLANManager$(PLAT_SUFFIX).exe" : "$(OUTPUT_DIR)\$(PLAT).Release\WLANManager.exe"
|
||
copy /y $** $@ > NUL
|
||
|
||
|
||
######################################################################
|
||
# Configuration Specific
|
||
######################################################################
|
||
|
||
CFG=Release
|
||
CFG_SUFFIX=
|
||
!INCLUDE "MakefilePlatCfg.mak"
|
||
|
||
CFG=Debug
|
||
CFG_SUFFIX=D
|
||
!INCLUDE "MakefilePlatCfg.mak"
|