]> git.vomp.tv Git - vompclient.git/blob - Makefile.nmake
New Windows stuff
[vompclient.git] / Makefile.nmake
1 CXXFLAGS_DEV = -g -O0 -Wall -Woverloaded-virtual -Wshadow -Werror -DDEV -D_GNU_SOURCE $(INCLUDES)\r
2 CXXFLAGS_REL = /I"$(DXSDK_DIR)\Include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "NEW_DEMUXER"  /nologo /EHsc /MD /GS   /W3  /c   /TP\r
3 LDFLAGS =  /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB  /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LIBPATH:"$(DXSDK_DIR)\Lib\x86"\r
4 \r
5 LIBS = Msvcrt.lib Ws2_32.lib shlwapi.lib d3d9.lib d3dx9.lib Iphlpapi.lib Strmiids.lib winmm.lib MSVCPRT.lib kernel32.lib user32.lib gdi32.lib ole32.lib uuid.lib\r
6 \r
7 CROSSLIBS =\r
8 \r
9 !include "objects.mk"\r
10 \r
11 \r
12 OBJECTSWIN = winmain.o threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o dsallocator.o dssourcefilter.o dssourcepin.o\r
13 \r
14 OBJECTS = $(OBJECTS1) $(OBJECTSWIN)\r
15 \r
16 #.PHONY: clean fresh all install strip\r
17 \r
18 default: release  #dev\r
19 \r
20 release::\r
21 CXXFLAGS= $(CXXFLAGS_REL)\r
22 release:: vompclient.exe\r
23 \r
24 \r
25 \r
26 vompclient.exe: $(OBJECTS) vompwin.res\r
27         link $(LDFLAGS) /OUT:"vompclient.exe" $(LIBS) $(OBJECTS) vompwin.res\r
28 \r
29 \r
30 \r
31 $(OBJECTS): $*.cc\r
32         $(CXX) $(CXXFLAGS) /Fo$*.o $*.cc\r
33 \r
34 vompwin.res:vompwin.rc\r
35         $(RC) /fo"vompwin.res" "vompwin.rc"\r
36 \r
37 clean:\r
38   del  *.o\r
39   del vompclient.exe\r
40   del fonts\*.o\r
41 \r