CXXFLAGS_DEV = -g -O0 -Wall -Woverloaded-virtual -Wshadow -Werror -DDEV -D_GNU_SOURCE $(INCLUDES) CXXFLAGS_REL = /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "NEW_DEMUXER" /nologo /EHsc /MD /GS /W3 /c /TP LDFLAGS = /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LIBPATH:"$(DXSDK_DIR)\Lib\x86" 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 LIBSLEGACY = gdiplus.lib LIBSCURRENT = d3d10_1.lib d2d1.lib dwrite.lib windowscodecs.lib CROSSLIBS = !include "objects.mk" OBJECTS = $(OBJ_COMMON) $(OBJ_WINDOWS) #.PHONY: clean fresh all install strip default: release #dev !ifdef LEGACY release:: CXXFLAGS= /D "WINDOWS_LEGACY" $(CXXFLAGS_REL) OBJECTS = $(OBJECTS) $(OBJ_WINLEGACY) LIBS = $(LIBS) $(LIBSLEGACY) release:: vompclient-legacy.exe vompclient-legacy.exe: $(OBJECTS) vompwin.res link $(LDFLAGS) /OUT:"vompclient-legacy.exe" $(LIBS) $(OBJECTS) vompwin.res !else release:: CXXFLAGS= $(CXXFLAGS_REL) OBJECTS = $(OBJECTS) $(OBJ_WINCURRENT) LIBS = $(LIBS) $(LIBSCURRENT) release:: vompclient.exe vompclient.exe: $(OBJECTS) vompwin.res link $(LDFLAGS) /OUT:"vompclient.exe" $(LIBS) $(OBJECTS) vompwin.res !endif $(OBJECTS): $*.cc $(CXX) $(CXXFLAGS) /Fo$*.o $*.cc !ifdef LEGACY vompwin.res:vompwin.rc $(RC) /d WINDOWS_LEGACY /fo"vompwin.res" "vompwin.rc" !else vompwin.res:vompwin.rc $(RC) /fo"vompwin.res" "vompwin.rc" !endif clean: del *.o !ifdef LEGACY del vompclient-legacy.exe !else del vompclient.exe !endif del fonts\*.o