-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwin.mk
26 lines (22 loc) · 826 Bytes
/
win.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Note this assumes you have MSBuild.exe in your %PATH%, e.g.
# /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
SEABREEZE_SLN=SeaBreeze.sln
SEABREEZE_DLL=SeaBreeze.dll
SEABREEZE_LIB=SeaBreeze.lib
LIB_DIR=../../../lib
MSBUILD_BIN = MSBuild.exe
MSBUILD_OPTS = /p:Configuration=Debug /p:Platform=Win32
MSBUILD_OUTPUT_DIR = Debug
all:
@if which MSBuild.exe 1>/dev/null 2>&1 ; then \
( $(MSBUILD_BIN) $(MSBUILD_OPTS) $(SEABREEZE_SLN) && \
cp -v $(MSBUILD_OUTPUT_DIR)/$(SEABREEZE_DLL) $(MSBUILD_OUTPUT_DIR)/$(SEABREEZE_LIB) $(LIB_DIR) \
) ; \
fi
clean:
@if which MSBuild.exe 1>/dev/null 2>&1 ; then \
$(MSBUILD_BIN) $(SEABREEZE_SLN) /t:Clean ; \
fi
@rm -rf Debug VSProj/Debug VSProj/x64
@rm -f $(LIB_DIR)/$(SEABREEZE_DLL) \
$(LIB_DIR)/$(SEABREEZE_LIB)