-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows.mak
50 lines (34 loc) · 1.11 KB
/
Windows.mak
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Makefile for Windows
!if "$(release)"=="1"
build = Release
linkdebug =
compdebug = /MT /Ox
!else
build = Debug
linkdebug = /debug
compdebug = /MTd /Zi /Od /RTC1
!endif
# Macros used by Common.mak
dirsep = \\
platform = Windows
objdir = Build/Obj/$(platform)/$(build)
includes = -I../ohNet/Build/Include
objext = obj
exeext = exe
libprefix = lib
libext = lib
dllprefix =
dllext = dll
compflags = /W4 /WX /EHsc /FR$(objdir) -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -D_CRT_SECURE_NO_WARNINGS $(compdebug)
comp = cl /nologo $(compflags) $(includes)
compout = /Fo$(objdir)
link = link /nologo /SUBSYSTEM:CONSOLE /map Ws2_32.lib Iphlpapi.lib Dbghelp.lib /incremental:no $(linkdebug)
linkout = /out:$(objdir)
csharp = csc /nologo /platform:x86 /nostdlib /reference:%SystemRoot%\microsoft.net\framework\v2.0.50727\mscorlib.dll /debug
default : all
$(objdir) :
if not exist Build\Obj\$(platform)\$(build) mkdir Build\Obj\$(platform)\$(build)
copy /Y dependencies\nuget\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll Build\Obj\$(platform)\$(build)
clean:
rd /S /Q Build\Obj\$(platform)\$(build)
include Common.mak