8294
|
1
|
|
2 LIBNAME = libDMO_Filter.a
|
|
3
|
|
4 include ../../config.mak
|
|
5
|
|
6 # DS_AudioDec.c
|
8325
|
7 SRCS = DMO_AudioDecoder.c DMO_VideoDecoder.c buffer.c dmo.c dmo_guids.c
|
8294
|
8 OBJS = $(SRCS:.c=.o)
|
|
9
|
|
10 INCLUDE = -I. -I../dshow -I.. $(EXTRA_INC)
|
|
11 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DNOAVIFILE_HEADERS
|
|
12
|
|
13 .SUFFIXES: .c .o
|
|
14
|
|
15 # .PHONY: all clean
|
|
16
|
|
17 .c.o:
|
|
18 $(CC) -c $(CFLAGS) -o $@ $<
|
|
19
|
|
20 $(LIBNAME): $(OBJS)
|
|
21 $(AR) r $(LIBNAME) $(OBJS)
|
|
22
|
|
23 test: test.c $(LIBNAME)
|
|
24 $(CC) test.c $(CFLAGS) -o test ./libDMO_Filter.a ../libloader.a $(ARCH_LIBS) -lstdc++
|
|
25
|
|
26 all: $(LIBNAME)
|
|
27
|
|
28 clean:
|
|
29 rm -f *.o *.a *~
|
|
30
|
|
31 distclean:
|
|
32 rm -f Makefile.bak *.o *.a *~ .depend test test.raw
|
|
33
|
|
34 dep: depend
|
|
35
|
|
36 depend:
|
|
37 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
38
|
|
39 #
|
|
40 # include dependency files if they exist
|
|
41 #
|
|
42 ifneq ($(wildcard .depend),)
|
|
43 include .depend
|
|
44 endif
|
|
45
|