-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathWindows.mak
86 lines (71 loc) · 3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Makefile for Windows
#
!if "$(release)"=="1"
link_flag_debug =
debug_specific_cflags = /MT /Ox
debug_specific_csflags =
build_dir = Release
!else
link_flag_debug = /debug
debug_specific_cflags = /MTd /Zi /Od /RTC1
debug_specific_csflags = /debug
build_dir = Debug
!endif
# Macros used by Common.mak
ar = lib /nologo /out:$(objdir)
cflags = $(debug_specific_cflags) /W4 /WX /EHsc /FR$(objdir) -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -D_CRT_SECURE_NO_WARNINGS
ohnetdir = ..\ohNet\Build\Obj\Windows\$(build_dir)^\
ohnetgenerateddir = ..\ohNetGenerated\Build\Obj\Windows\$(build_dir)^\
ohtopologydir = ..\ohTopology\build^\
ohnetmondir = ..\ohNetmon\build^\
objdirbare = Build\Obj\Windows\$(build_dir)
objdir = $(objdirbare)^\
inc_build = Build\Include
includes = -I..\ohNet\Build\Include -I..\ohNetGenerated\Build\Include -I..\ohTopology\build\Include
bundle_build = Build\Bundles
osdir = Windows
objext = obj
libprefix =
libext = lib
exeext = exe
compiler = cl /nologo /Fo$(objdir)
link = link /nologo $(link_flag_debug) /SUBSYSTEM:CONSOLE /map Ws2_32.lib Iphlpapi.lib Dbghelp.lib /incremental:no
linkoutput = /out:
dllprefix =
dllext = dll
link_dll = link /nologo $(link_flag_debug) /map Ws2_32.lib Iphlpapi.lib Dbghelp.lib /dll
link_dll_service = link /nologo $(link_flag_debug) /map $(objdir)ohNet.lib Ws2_32.lib Iphlpapi.lib Dbghelp.lib /dll
csplatform = x86
csharp = csc /nologo /platform:$(csplatform) $(debug_specific_csflags)
publiccsdir = Public\Cs^\csharp
dirsep = ^\
installdir = $(PROGRAMFILES)\ohNet
installlibdir = $(installdir)\lib
installincludedir = $(installdir)\include
mkdir = Scripts\mkdir.bat
rmdir = Scripts\rmdir.bat
uset4 = no
copyfile = copy /Y
!if "$(nativeonly)"=="yes"
all_common : all_common_native
!else
all_common : all_common_native all_common_cs
!endif
all: $(objdir)$(dllprefix)ohSongcast.$(dllext) $(objdir)TestSongcast.$(exeext) all_common
# Include rules to build platform independent code
include Common.mak
$(objects_topology) : make_obj_dir
$(objects_sender) : make_obj_dir
$(objects_songcast) : make_obj_dir
make_obj_dir : $(objdirbare)
$(objdirbare) :
if not exist $(objdirbare) mkdir $(objdirbare)
clean:
del /S /Q $(objdirbare)
objects_songcast_dll = $(ohnetdir)$(libprefix)ohNetCore.lib $(objects_topology) $(objects_sender) $(objects_songcast) $(objdir)SoundcardDriver.$(objext) kernel32.lib setupapi.lib shell32.lib ole32.lib
$(objdir)$(dllprefix)ohSongcast.$(dllext) : $(objects_topology) $(objects_sender) $(objects_songcast) ohSongcast\Windows\SoundcardDriver.cpp
$(compiler)SoundcardDriver.$(objext) -c $(cflags) $(includes) ohSongcast\Windows\SoundcardDriver.cpp
$(link_dll) $(linkoutput)$(objdir)$(dllprefix)ohSongcast.$(dllext) $(objects_songcast_dll)
$(objdir)TestSongcast.$(exeext) : $(objdir)$(dllprefix)ohSongcast.$(dllext) ohSongcast\TestSongcast.cpp
$(compiler)TestSongcast.$(objext) -c $(cflags) $(includes) ohSongcast\TestSongcast.cpp
$(link) $(linkoutput)$(objdir)TestSongcast.$(exeext) $(objdir)TestSongcast.$(objext) $(objects_songcast_dll) $(ohnetdir)$(libprefix)TestFramework.$(libext)