]> git.vomp.tv Git - vompclient.git/blob - Makefile.nmake
Fix text corruption on channel list when returning from live TV
[vompclient.git] / Makefile.nmake
1
2 ###############################
3
4 #       ! Chris - WRONG FILE !
5
6 ###############################
7
8
9 CXXFLAGS_DEV = -g -O0 -Wall -Woverloaded-virtual -Wshadow -Werror -DDEV -D_GNU_SOURCE $(INCLUDES)
10 CXXFLAGS_REL = /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "NEW_DEMUXER"  /nologo /EHsc /MD /GS   /W3  /c   /TP
11 LDFLAGS =  /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB  /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LIBPATH:"$(DXSDK_DIR)\Lib\x86"
12
13 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
14
15 LIBSLEGACY = gdiplus.lib
16
17 LIBSCURRENT =  d3d10_1.lib d2d1.lib dwrite.lib windowscodecs.lib
18
19 CROSSLIBS =
20
21 !include "objects.mk"
22
23
24 OBJECTSWIN = winmain.o threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o windowsosd.o  dsallocator.o dssourcefilter.o dssourcepin.o wwinvideofilter.o wwinvideoh264filter.o wwinaudiofilter.o wwinmp3audiofilter.o wjpegsimple.o 
25
26
27 OBJECTSWINLEGACY =  osdvector.o surfacevector.o osdwinpixel.o surfacewin.o fonts/helvB24.o fonts/helvB18.o 
28
29 OBJECTSWINCURRENT = osdvector.o surfacevector.o osdwinvector.o
30
31
32
33 OBJECTS = $(OBJECTS1) $(OBJECTSWIN)
34
35 #.PHONY: clean fresh all install strip
36
37 default: release  #dev
38
39 !ifdef LEGACY
40 release:: 
41 CXXFLAGS= /D "WINDOWS_LEGACY" $(CXXFLAGS_REL)
42 OBJECTS = $(OBJECTS) $(OBJECTSWINLEGACY)
43 LIBS = $(LIBS) $(LIBSLEGACY)
44 release:: vompclient-legacy.exe
45
46
47 vompclient-legacy.exe: $(OBJECTS) vompwin.res
48         link $(LDFLAGS) /OUT:"vompclient-legacy.exe" $(LIBS) $(OBJECTS) vompwin.res
49 !else
50
51
52 release::
53 CXXFLAGS= $(CXXFLAGS_REL)
54 OBJECTS = $(OBJECTS) $(OBJECTSWINCURRENT)
55 LIBS = $(LIBS) $(LIBSCURRENT)
56 release:: vompclient.exe
57
58 vompclient.exe: $(OBJECTS) vompwin.res
59         link $(LDFLAGS) /OUT:"vompclient.exe" $(LIBS) $(OBJECTS) vompwin.res
60
61 !endif
62
63
64
65 $(OBJECTS): $*.cc
66         $(CXX) $(CXXFLAGS) /Fo$*.o $*.cc
67
68 !ifdef LEGACY
69 vompwin.res:vompwin.rc
70         $(RC) /d WINDOWS_LEGACY /fo"vompwin.res" "vompwin.rc"
71 !else
72 vompwin.res:vompwin.rc
73         $(RC) /fo"vompwin.res" "vompwin.rc"
74 !endif
75
76 clean:
77   del  *.o
78 !ifdef LEGACY
79   del vompclient-legacy.exe
80 !else
81   del vompclient.exe
82 !endif
83   del fonts\*.o
84