Mercurial > mplayer.hg
annotate mpcommon.mak @ 26562:36a4064bba4f
cosmetics: Move version.h/help_mp.h generation rules to a better place.
author | diego |
---|---|
date | Tue, 29 Apr 2008 08:35:58 +0000 |
parents | 122944bc35b9 |
children |
rev | line source |
---|---|
26556 | 1 SRCS_COMMON += $(SRCS_COMMON-yes) $(SRCS_COMMON-yes-yes) $(SRCS_COMMON-yes-yes-yes) |
22528
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 | 4 |
22848
82f06c55cf97
Append objects derived from sources to OBJS_*. This way the OBJS_* variables
diego
parents:
22814
diff
changeset
|
5 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
|
6 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
|
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 |
23781
1955b4e60574
Revert include flag reordering, it does not fix the compilation problem.
diego
parents:
23773
diff
changeset
|
9 CFLAGS += $(CFLAGS-yes) $(OPTFLAGS) |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
10 |
26432
7f5696224182
per-file dependencies (for the non-recursive parts)
diego
parents:
26430
diff
changeset
|
11 %.d: %.c |
7f5696224182
per-file dependencies (for the non-recursive parts)
diego
parents:
26430
diff
changeset
|
12 $(MPDEPEND_CMD) > $@ |
7f5696224182
per-file dependencies (for the non-recursive parts)
diego
parents:
26430
diff
changeset
|
13 |
26489 | 14 %.d: %.cpp |
15 $(MPDEPEND_CMD_CXX) > $@ | |
16 | |
26509
5d424c503f22
Add rule for generating dependency files from Objective C files.
diego
parents:
26489
diff
changeset
|
17 %.d: %.m |
5d424c503f22
Add rule for generating dependency files from Objective C files.
diego
parents:
26489
diff
changeset
|
18 $(MPDEPEND_CMD) > $@ |
5d424c503f22
Add rule for generating dependency files from Objective C files.
diego
parents:
26489
diff
changeset
|
19 |
26113 | 20 %.ho: %.h |
21 $(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $< | |
22 | |
26477 | 23 %.o: %.m |
24 $(CC) $(CFLAGS) -c -o $@ $< | |
25 | |
26113 | 26 ALLHEADERS = $(wildcard *.h) |
27 checkheaders: $(ALLHEADERS:.h=.ho) | |
28 | |
26555
a16bf3eba843
Get rid of now obsolete library rules and variables.
diego
parents:
26552
diff
changeset
|
29 .PHONY: checkheaders *clean dep depend |