Mercurial > mplayer.hg
annotate loader/dshow/Makefile @ 866:91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
author | arpi_esp |
---|---|
date | Thu, 24 May 2001 21:09:13 +0000 |
parents | 45778577e6aa |
children | 162a78d3cc08 |
rev | line source |
---|---|
168 | 1 |
2 LIBNAME = libDS_Filter.a | |
3 | |
4 include ../../config.mak | |
5 | |
189 | 6 SRCS = DS_AudioDec.cpp DS_VideoDec.cpp DS_Filter.cpp allocator.cpp cmediasample.cpp guids.cpp inputpin.cpp outputpin.cpp |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
189
diff
changeset
|
7 OBJS = $(SRCS:.cpp=.o) |
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
189
diff
changeset
|
8 |
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
189
diff
changeset
|
9 # OBJS = DS_AudioDec.o DS_VideoDec.o DS_Filter.o allocator.o cmediasample.o guids.o inputpin.o outputpin.o |
168 | 10 |
11 INCLUDE = -I. -I.. -I../wine | |
12 CFLAGS = $(OPTFLAGS) $(INCLUDE) | |
13 | |
14 .SUFFIXES: .cpp .o | |
15 | |
16 # .PHONY: all clean | |
17 | |
18 .cpp.o: | |
19 $(CC) -c $(CFLAGS) -o $@ $< | |
20 | |
21 $(LIBNAME): .depend $(OBJS) | |
22 $(AR) r $(LIBNAME) $(OBJS) | |
23 | |
169 | 24 test: test.c $(LIBNAME) |
170 | 25 $(CC) test.c -Wall $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader -ldl -lpthread -lstdc++ |
168 | 26 |
27 all: $(LIBNAME) | |
28 | |
29 clean: | |
30 rm -f *.o *.a *~ | |
31 | |
32 distclean: | |
33 rm -f Makefile.bak *.o *.a *~ .depend test test.raw | |
34 | |
35 dep: depend | |
36 depend: .depend | |
37 | |
38 .depend: Makefile ../../config.mak | |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
189
diff
changeset
|
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
168 | 40 |
41 # | |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |