[cvs] / xvidcore / dshow / Makefile Repository:
ViewVC logotype

Annotation of /xvidcore/dshow/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (view) (download)

1 : suxen_drol 1.1 ##############################################################################
2 :     #
3 :     # Makefile for XviD DirectShow driver
4 :     #
5 :     # Adapted from XviD VFW driver makefile.
6 :     # Modified by : Peter Ross <pross@xvid.org>
7 :     #
8 :     # Requires GNU Make because of shell expansion performed at a bad time with
9 :     # other make programs (even using := variable assignments)
10 :     #
11 : syskin 1.6 # $Id: Makefile,v 1.5 2005/04/04 23:49:37 edgomez Exp $
12 : suxen_drol 1.1 ##############################################################################
13 :    
14 :     include sources.inc
15 :    
16 :     ##############################################################################
17 : suxen_drol 1.3 # 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 : suxen_drol 1.4 DXTREE=/c/DX90SDK
23 :     # DXTREE=/c/DXVCSDK
24 : suxen_drol 1.3 DXBASECLASSES=$(DXTREE)/Samples/C++/DirectShow/BaseClasses
25 :     # DXBASECLASSES=$(DXTREE)/Samples/MultiMedia/DirectShow/BaseClasses
26 : suxen_drol 1.1
27 :     MAKEFILE_PWD:=$(shell pwd)
28 :     LOCAL_XVID_SRCTREE:=$(MAKEFILE_PWD)/../src
29 :     LOCAL_XVID_BUILDTREE:=$(MAKEFILE_PWD)/../build/generic/=build
30 :    
31 :     RM = rm -rf
32 :     WINDRES=windres
33 :    
34 :     # Constants which should not be modified
35 :     # The `mingw-runtime` package is required when building with -mno-cygwin
36 :     CFLAGS += -mthreads
37 :     CFLAGS += -I$(SRC_DIR)/w32api -I$(LOCAL_XVID_SRCTREE)
38 :     CFLAGS += -D_WIN32_IE=0x0500
39 :     CFLAGS += -mno-cygwin
40 :    
41 : suxen_drol 1.2 CXXFLAGS +=-mthreads
42 : suxen_drol 1.1 CXXFLAGS += -DRELEASE \
43 :     -I$(LOCAL_XVID_SRCTREE) \
44 :     -I$(DXTREE)/Include \
45 : suxen_drol 1.3 -I$(DXBASECLASSES) \
46 : suxen_drol 1.1 -include $(DXTREE)/mingw_dshow_port.h
47 :     CXXFLAGS += -mno-cygwin
48 :    
49 :     ##############################################################################
50 :     # Optional Compiler options
51 :     ##############################################################################
52 :    
53 :     CFLAGS += -Wall
54 :     CFLAGS += -O2
55 :     CFLAGS += -fstrength-reduce
56 :     CFLAGS += -finline-functions
57 :     CFLAGS += -fgcse
58 :     CFLAGS += -ffast-math
59 :    
60 :     CXXFLAGS += -O2
61 :    
62 :     ##############################################################################
63 :     # Compiler flags for linking stage
64 :     ##############################################################################
65 :    
66 :     #LDFLAGS +=
67 :    
68 :     ##############################################################################
69 :     # Rules
70 :     ##############################################################################
71 :    
72 :     OBJECTS = $(SRC_C:.c=.obj)
73 :     OBJECTS+= $(SRC_CPP:.cpp=.obj)
74 :     OBJECTS+= $(SRC_RES:.rc=.obj)
75 :    
76 :     .SUFFIXES: .obj .rc .c
77 :    
78 :     BUILD_DIR = =build
79 :     VPATH = $(SRC_DIR):$(BUILD_DIR)
80 :    
81 :     all: $(LIBSO)
82 :    
83 :     $(BUILD_DIR):
84 :     @echo " D: $(BUILD_DIR)"
85 :     @mkdir -p $(BUILD_DIR)
86 :    
87 :     .rc.obj:
88 :     @echo " W: $(@D)/$(<F)"
89 :     @mkdir -p $(BUILD_DIR)/$(@D)
90 :     @$(WINDRES) \
91 :     --include-dir=$(SRC_DIR) \
92 :     --input-format=rc \
93 :     --output-format=coff \
94 :     -o $(BUILD_DIR)/$@ $<
95 :    
96 :     .c.obj:
97 :     @echo " C: $(@D)/$(<F)"
98 :     @mkdir -p $(BUILD_DIR)/$(@D)
99 :     @$(CC) $(CFLAGS) -c -o $(BUILD_DIR)/$@ $<
100 :    
101 :     .cpp.obj:
102 :     @echo " C: $(@D)/$(<F)"
103 :     @mkdir -p $(BUILD_DIR)/$(@D)
104 :     @$(CXX) $(CXXFLAGS) -c -o $(BUILD_DIR)/$@ $<
105 :    
106 :     $(LIBSO): $(BUILD_DIR) $(OBJECTS)
107 :     @echo " L: $(@F)"
108 :     @cp $(SRC_DIR)/xvid.ax.def $(BUILD_DIR)/xvid.ax.def
109 :     @cd $(BUILD_DIR) && \
110 :     $(CC) $(LDFLAGS) \
111 :     -mno-cygwin -shared -Wl,-dll,--out-implib,$@.a,--enable-stdcall-fixup \
112 :     -o $@ \
113 :     $(OBJECTS) xvid.ax.def \
114 :     -L$(DXTREE)/Lib -lstrmiids \
115 : suxen_drol 1.3 $(DXBASECLASSES)/strmbase.lib \
116 : suxen_drol 1.1 -luuid -lwinmm -lole32 -loleaut32 -lcomctl32 -lstdc++
117 :    
118 :     clean:
119 :     @echo " Cl: Object files and target lib"
120 :     @$(RM) $(BUILD_DIR)
121 :    
122 :     install:
123 :    
124 :     uninstall:

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4