168
|
1
|
|
2 LIBNAME = libDS_Filter.a
|
|
3
|
|
4 include ../../config.mak
|
|
5
|
169
|
6 SRCS = DS_VideoDec.cpp DS_Filter.cpp allocator.cpp cmediasample.cpp guids.cpp inputpin.cpp outputpin.cpp
|
|
7 OBJS = DS_VideoDec.o DS_Filter.o allocator.o cmediasample.o guids.o inputpin.o outputpin.o
|
168
|
8
|
|
9 INCLUDE = -I. -I.. -I../wine
|
|
10 CFLAGS = $(OPTFLAGS) $(INCLUDE)
|
|
11
|
|
12 .SUFFIXES: .cpp .o
|
|
13
|
|
14 # .PHONY: all clean
|
|
15
|
|
16 .cpp.o:
|
|
17 $(CC) -c $(CFLAGS) -o $@ $<
|
|
18
|
|
19 $(LIBNAME): .depend $(OBJS)
|
|
20 $(AR) r $(LIBNAME) $(OBJS)
|
|
21
|
169
|
22 test: test.c $(LIBNAME)
|
170
|
23 $(CC) test.c -Wall $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader -ldl -lpthread -lstdc++
|
168
|
24
|
|
25 all: $(LIBNAME)
|
|
26
|
|
27 clean:
|
|
28 rm -f *.o *.a *~
|
|
29
|
|
30 distclean:
|
|
31 rm -f Makefile.bak *.o *.a *~ .depend test test.raw
|
|
32
|
|
33 dep: depend
|
|
34 depend: .depend
|
|
35
|
|
36 .depend: Makefile ../../config.mak
|
|
37 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null
|
|
38
|
|
39 #
|
|
40 # include dependency files if they exist
|
|
41 #
|
|
42 ifneq ($(wildcard .depend),)
|
|
43 include .depend
|
|
44 endif
|