annotate mpcommon.mak @ 26550:8a26190978a6

Force to uint64_t first to avoid direct conversion from double to unsigned int.
author ulion
date Mon, 28 Apr 2008 15:57:31 +0000
parents 3cce5bfc52c0
children fe2f16a7b128
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)
26484
dc333dff8376 Expand conditional addition of elements to variables with a form that permits
diego
parents: 26477
diff changeset
2 SRCS_COMMON += $(SRCS_COMMON-yes-yes)
26523
43d28f989428 Merge mp3lib/Makefile into top-level Makefile.
diego
parents: 26509
diff changeset
3 SRCS_COMMON += $(SRCS_COMMON-yes-yes-yes)
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
4 SRCS_MPLAYER += $(SRCS_MPLAYER-yes)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
5 SRCS_MENCODER += $(SRCS_MENCODER-yes)
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
6
22848
82f06c55cf97 Append objects derived from sources to OBJS_*. This way the OBJS_* variables
diego
parents: 22814
diff changeset
7 OBJS_COMMON += $(addsuffix .o, $(basename $(SRCS_COMMON)) )
82f06c55cf97 Append objects derived from sources to OBJS_*. This way the OBJS_* variables
diego
parents: 22814
diff changeset
8 OBJS_MPLAYER += $(addsuffix .o, $(basename $(SRCS_MPLAYER)) )
82f06c55cf97 Append objects derived from sources to OBJS_*. This way the OBJS_* variables
diego
parents: 22814
diff changeset
9 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
10
23781
1955b4e60574 Revert include flag reordering, it does not fix the compilation problem.
diego
parents: 23773
diff changeset
11 CFLAGS += $(CFLAGS-yes) $(OPTFLAGS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
12
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
13 LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
14 LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
15 LIBS = $(LIBNAME_COMMON) $(LIBS-yes)
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
16
22526
cbf425ba6a96 Give the library generation target a more sensible name.
diego
parents: 22522
diff changeset
17 libs: $(LIBS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
18
22528
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
19 $(LIBNAME_COMMON): $(OBJS_COMMON)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
20 $(LIBNAME_MPLAYER): $(OBJS_MPLAYER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
21 $(LIBNAME_MENCODER): $(OBJS_MENCODER)
8bcff5c7e387 Give more descriptive names to the source and library variables and split
diego
parents: 22526
diff changeset
22 $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER):
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
23 $(AR) r $@ $^
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
24 $(RANLIB) $@
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
25
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
26 clean::
26113
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
27 rm -f *.o *.a *.ho *~
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
28
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
29 distclean:: clean
26549
3cce5bfc52c0 Remove code for .depend generation, inclusion and related hacks.
diego
parents: 26523
diff changeset
30 rm -f *.d test test2
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
31
26432
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
32 %.d: %.c
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
33 $(MPDEPEND_CMD) > $@
7f5696224182 per-file dependencies (for the non-recursive parts)
diego
parents: 26430
diff changeset
34
26489
925b2b7a1f34 dependency generation infrastructure for C++ files
diego
parents: 26484
diff changeset
35 %.d: %.cpp
925b2b7a1f34 dependency generation infrastructure for C++ files
diego
parents: 26484
diff changeset
36 $(MPDEPEND_CMD_CXX) > $@
925b2b7a1f34 dependency generation infrastructure for C++ files
diego
parents: 26484
diff changeset
37
26509
5d424c503f22 Add rule for generating dependency files from Objective C files.
diego
parents: 26489
diff changeset
38 %.d: %.m
5d424c503f22 Add rule for generating dependency files from Objective C files.
diego
parents: 26489
diff changeset
39 $(MPDEPEND_CMD) > $@
5d424c503f22 Add rule for generating dependency files from Objective C files.
diego
parents: 26489
diff changeset
40
26113
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
41 %.ho: %.h
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
42 $(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
43
26477
8c35fde6cdca Merge libvo/Makefile into top-level Makefile.
diego
parents: 26432
diff changeset
44 %.o: %.m
8c35fde6cdca Merge libvo/Makefile into top-level Makefile.
diego
parents: 26432
diff changeset
45 $(CC) $(CFLAGS) -c -o $@ $<
8c35fde6cdca Merge libvo/Makefile into top-level Makefile.
diego
parents: 26432
diff changeset
46
26113
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
47 ALLHEADERS = $(wildcard *.h)
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
48 checkheaders: $(ALLHEADERS:.h=.ho)
8ca532b5e704 Add checkheaders target, ported from FFmpeg.
diego
parents: 23781
diff changeset
49
26412
bd6f5e7c0d37 Declare all clean targets phony in mpcommon.mak.
diego
parents: 26316
diff changeset
50 .PHONY: libs *clean dep depend