annotate mpcommon.mak @ 22717:435648b07244

Move libav* include CFLAGS to mpcommon.mak instead of duplicating them.
author diego
date Sun, 18 Mar 2007 22:49:37 +0000
parents 97ad9cecc6d9
children 6ddfa5da1286
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
1 SRCS_COMMON += $(SRCS_COMMON-yes)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
2 SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
3 SRCS_MENCODER += $(SRCS_MENCODER-yes)
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
4
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
5 OBJS_COMMON = $(addsuffix .o, $(basename $(SRCS_COMMON)) )
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
6 OBJS_MPLAYER = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) )
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
7 OBJS_MENCODER = $(addsuffix .o, $(basename $(SRCS_MENCODER)) )
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
8
22717
435648b07244 Move libav* include CFLAGS to mpcommon.mak instead of duplicating them.
diego
parents: 22714
diff changeset
9 CFLAGS-$(CONFIG_LIBAVUTIL) += -I../libavutil
435648b07244 Move libav* include CFLAGS to mpcommon.mak instead of duplicating them.
diego
parents: 22714
diff changeset
10 CFLAGS-$(CONFIG_LIBAVCODEC) += -I../libavcodec
435648b07244 Move libav* include CFLAGS to mpcommon.mak instead of duplicating them.
diego
parents: 22714
diff changeset
11 CFLAGS-$(CONFIG_LIBAVFORMAT) += -I../libavformat
22714
97ad9cecc6d9 Merge CFLAGS lines.
diego
parents: 22542
diff changeset
12 CFLAGS += $(CFLAGS-yes) -I. -I.. $(OPTFLAGS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
13
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
14 LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
15 LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
16 LIBS = $(LIBNAME_COMMON) $(LIBS-yes)
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
17
22526
cbf425ba6a96 Give the library generation target a more sensible name.
diego
parents: 22522
diff changeset
18 libs: $(LIBS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
19
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
20 $(LIBNAME_COMMON): $(OBJS_COMMON)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
21 $(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
22 $(LIBNAME_MENCODER): $(OBJS_MENCODER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
23 $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
24 $(AR) r $@ $^
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
25 $(RANLIB) $@
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
26
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
27 clean::
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
28 rm -f *.o *.a *~
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
29
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
30 distclean:: clean
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
31 rm -f .depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
32
22542
974f5ffb5097 dep/depend should be a double colon target as well.
diego
parents: 22528
diff changeset
33 dep depend::
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
34 $(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
35
22317
068c5141bff6 Simplify .depend file inclusion.
diego
parents: 22115
diff changeset
36 -include .depend
22522
12b3d4c8b263 Mark phony targets as such.
diego
parents: 22317
diff changeset
37
22526
cbf425ba6a96 Give the library generation target a more sensible name.
diego
parents: 22522
diff changeset
38 .PHONY: libs clean distclean dep depend