]> git.vomp.tv Git - vompclient.git/blob - Makefile.nmake
OSDOpenVG: Render on demand: Fix backing out of a view render race
[vompclient.git] / Makefile.nmake
1 CXXFLAGS_DEV = -g -O0 -Wall -Woverloaded-virtual -Wshadow -Werror -DDEV -D_GNU_SOURCE $(INCLUDES)
2 CXXFLAGS_REL = /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "NEW_DEMUXER" /nologo /EHsc /MD /GS /W3 /c /TP
3 LDFLAGS =  /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LIBPATH:"$(DXSDK_DIR)\Lib\x86"
4
5 LIBS = Msvcrt.lib Ws2_32.lib shlwapi.lib d3d9.lib Iphlpapi.lib Strmiids.lib Mfuuid.lib winmm.lib MSVCPRT.lib kernel32.lib user32.lib gdi32.lib ole32.lib uuid.lib oleaut32.lib
6
7 LIBSLEGACY = gdiplus.lib
8
9 LIBSCURRENT =  d3d10_1.lib d2d1.lib dwrite.lib windowscodecs.lib
10
11 CROSSLIBS =
12
13 !include "objects.mk"
14
15 OBJECTS = $(OBJ_COMMON) $(OBJ_WINDOWS)
16
17 #.PHONY: clean fresh all install strip
18
19 default: release  #dev
20
21 !ifdef LEGACY
22 release:: 
23 CXXFLAGS= /D "WINDOWS_LEGACY" $(CXXFLAGS_REL)
24 OBJECTS = $(OBJECTS) $(OBJ_WINLEGACY)
25 LIBS = $(LIBS) $(LIBSLEGACY)
26 release:: vompclient-legacy.exe
27
28
29 vompclient-legacy.exe: $(OBJECTS) vompwin.res
30         link $(LDFLAGS) /OUT:"vompclient-legacy.exe" $(LIBS) $(OBJECTS) vompwin.res
31 !else
32
33
34 release::
35 CXXFLAGS= $(CXXFLAGS_REL)
36 OBJECTS = $(OBJECTS) $(OBJ_WINCURRENT)
37 LIBS = $(LIBS) $(LIBSCURRENT)
38 release:: vompclient.exe
39
40 vompclient.exe: $(OBJECTS) vompwin.res
41         link $(LDFLAGS) /OUT:"vompclient.exe" $(LIBS) $(OBJECTS) vompwin.res
42
43 !endif
44
45
46
47 $(OBJECTS): $*.cc
48         $(CXX) $(CXXFLAGS) /Fo$*.o $*.cc
49
50 !ifdef LEGACY
51 vompwin.res:vompwin.rc
52         $(RC) /d WINDOWS_LEGACY /fo"vompwin.res" "vompwin.rc"
53 !else
54 vompwin.res:vompwin.rc
55         $(RC) /fo"vompwin.res" "vompwin.rc"
56 !endif
57
58 clean:
59   del  *.o
60 !ifdef LEGACY
61   del vompclient-legacy.exe
62 !else
63   del vompclient.exe
64 !endif
65   del fonts\*.o
66