Mercurial > mplayer.hg
annotate loader/dmo/Makefile @ 17488:ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
author | diego |
---|---|
date | Fri, 27 Jan 2006 00:06:42 +0000 |
parents | 5d5d1b3ec737 |
children | c127ce678083 |
rev | line source |
---|---|
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 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
8325
diff
changeset
|
31 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
8325
diff
changeset
|
32 rm -f .depend test test.raw |
8294 | 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 |