8 |
# Requires GNU Make because of shell expansion performed at a bad time with |
# Requires GNU Make because of shell expansion performed at a bad time with |
9 |
# other make programs (even using := variable assignments) |
# other make programs (even using := variable assignments) |
10 |
# |
# |
11 |
# $Id: Makefile,v 1.2 2004-07-18 04:10:22 suxen_drol Exp $ |
# $Id: Makefile,v 1.6 2005-12-18 02:55:54 syskin Exp $ |
12 |
############################################################################## |
############################################################################## |
13 |
|
|
14 |
include sources.inc |
include sources.inc |
15 |
|
|
16 |
############################################################################## |
############################################################################## |
17 |
# DXTREE must point to the DirectShow SDK root directory. |
# DXTREE must point to the directx sdk root directory. |
18 |
|
# |
19 |
|
# if a release prior to "directx v9.0 sdk update (summer 2003)" is installed, |
20 |
|
# uncomment the DXBASECLASSES=$(DXTREE)/Samples/MultiMedia/DirectShow/BaseClasses |
21 |
############################################################################## |
############################################################################## |
22 |
DXTREE=/c/DXVCSDK |
DXTREE=/c/DX90SDK |
23 |
|
# DXTREE=/c/DXVCSDK |
24 |
|
DXBASECLASSES=$(DXTREE)/Samples/C++/DirectShow/BaseClasses |
25 |
|
# DXBASECLASSES=$(DXTREE)/Samples/MultiMedia/DirectShow/BaseClasses |
26 |
|
|
27 |
MAKEFILE_PWD:=$(shell pwd) |
MAKEFILE_PWD:=$(shell pwd) |
28 |
LOCAL_XVID_SRCTREE:=$(MAKEFILE_PWD)/../src |
LOCAL_XVID_SRCTREE:=$(MAKEFILE_PWD)/../src |
42 |
CXXFLAGS += -DRELEASE \ |
CXXFLAGS += -DRELEASE \ |
43 |
-I$(LOCAL_XVID_SRCTREE) \ |
-I$(LOCAL_XVID_SRCTREE) \ |
44 |
-I$(DXTREE)/Include \ |
-I$(DXTREE)/Include \ |
45 |
-I$(DXTREE)/samples/MultiMedia/DirectShow/BaseClasses \ |
-I$(DXBASECLASSES) \ |
46 |
-include $(DXTREE)/mingw_dshow_port.h |
-include $(DXTREE)/mingw_dshow_port.h |
47 |
CXXFLAGS += -mno-cygwin |
CXXFLAGS += -mno-cygwin |
48 |
|
|
55 |
CFLAGS += -fstrength-reduce |
CFLAGS += -fstrength-reduce |
56 |
CFLAGS += -finline-functions |
CFLAGS += -finline-functions |
57 |
CFLAGS += -fgcse |
CFLAGS += -fgcse |
|
CFLAGS += -freduce-all-givs |
|
58 |
CFLAGS += -ffast-math |
CFLAGS += -ffast-math |
59 |
|
|
60 |
CXXFLAGS += -O2 |
CXXFLAGS += -O2 |
112 |
-o $@ \ |
-o $@ \ |
113 |
$(OBJECTS) xvid.ax.def \ |
$(OBJECTS) xvid.ax.def \ |
114 |
-L$(DXTREE)/Lib -lstrmiids \ |
-L$(DXTREE)/Lib -lstrmiids \ |
115 |
$(DXTREE)/samples/Multimedia/DirectShow/BaseClasses/strmbase.lib \ |
$(DXBASECLASSES)/strmbase.lib \ |
116 |
-luuid -lwinmm -lole32 -loleaut32 -lcomctl32 -lstdc++ |
-luuid -lwinmm -lole32 -loleaut32 -lcomctl32 -lstdc++ |
117 |
|
|
|
|
|
118 |
clean: |
clean: |
119 |
@echo " Cl: Object files and target lib" |
@echo " Cl: Object files and target lib" |
120 |
@$(RM) $(BUILD_DIR) |
@$(RM) $(BUILD_DIR) |