annotate mpcommon.mak @ 21867:b80b45f1f159

r21879: fix wrong option names that were suggested to use to produce r21861: explain how to use MEncoder to create QuickTime-compatible files slightly modified patch from Andrew Savchenko bircoph at mail dot ru
author voroshil
date Fri, 12 Jan 2007 11:27:42 +0000
parents 254e55a37c6d
children 4e79a2f4993f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
1 SRCS += $(SRCS-yes)
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
2 SRCS2 += $(SRCS2-yes)
21390
fd1495e1538d Add libav include paths to CFLAGS without indirection.
diego
parents: 21338
diff changeset
3 CFLAGS += $(CFLAGS-yes)
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
4
21338
c74dbfe68bb3 Generate OBJS from SRCS in a more elegant and less redundant way.
diego
parents: 21307
diff changeset
5 OBJS = $(addsuffix .o, $(basename $(SRCS)) )
c74dbfe68bb3 Generate OBJS from SRCS in a more elegant and less redundant way.
diego
parents: 21307
diff changeset
6 OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
7
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
8 CFLAGS += -I. -I.. $(OPTFLAGS)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
9
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
10 LIBS = $(LIBNAME) $(LIBNAME2)
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
11
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
12 all: $(LIBS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
13
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
14 $(LIBNAME): $(OBJS)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
15 $(AR) r $@ $^
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
16 $(RANLIB) $@
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
17
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
18 $(LIBNAME2): $(OBJS2)
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
19 $(AR) r $@ $^
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
20 $(RANLIB) $@
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
21
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
22 clean::
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
23 rm -f *.o *.a *~
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
24
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
25 distclean:: clean
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
26 rm -f .depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
27
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
28 dep depend:
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
29 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
30
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
31 ifneq ($(wildcard .depend),)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
32 include .depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
33 endif