Mercurial > mplayer.hg
annotate libvo/Makefile @ 21285:a396402b091b
FFmpeg-style conditional dependency declaration
author | diego |
---|---|
date | Mon, 27 Nov 2006 01:17:22 +0000 |
parents | 92b122592776 |
children | f423ce0a1c36 |
rev | line source |
---|---|
1 | 1 |
19034 | 2 include ../config.mak |
1 | 3 |
4 LIBNAME = libvo.a | |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
5 LIBNAME2 = libosd.a |
1 | 6 |
21229 | 7 LIBS =$(LIBNAME2) |
8 ifeq ($(MPLAYER),yes) | |
9 LIBS+=$(LIBNAME) | |
10 endif | |
11 | |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
12 SRCS=aspect.c \ |
15772 | 13 geometry.c \ |
14 spuenc.c \ | |
15 video_out.c \ | |
16 vo_mpegpes.c \ | |
17 vo_null.c \ | |
18 vo_yuv4mpeg.c \ | |
19034 | 19 $(VO_SRCS) \ |
15772 | 20 |
21285 | 21 SRCS-$(EXTERNAL_VIDIX) += vosub_vidix.c |
22 SRCS-$(VIDIX) += vosub_vidix.c | |
23 | |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
24 SRCS2 = aclib.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
25 osd.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
26 sub.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
27 |
21285 | 28 SRCS2-$(BITMAP_FONT) += font_load.c |
29 SRCS2-$(FREETYPE) += font_load_ft.c | |
16331
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
30 |
15291 | 31 OBJS_TEMP=$(basename $(SRCS)) |
32 OBJS=$(OBJS_TEMP:%=%.o) | |
1 | 33 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
34 OBJS2=$(SRCS2:.c=.o) |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
35 |
21285 | 36 LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil |
18864
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
37 |
21285 | 38 SRCS += $(SRCS-yes) |
39 SRCS2 += $(SRCS2-yes) | |
40 LIBAV_INC += $(LIBAV_INC-yes) | |
17988 | 41 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21229
diff
changeset
|
42 CFLAGS = -I.. -I../osdep $(LIBAV_INC) |
1 | 43 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21229
diff
changeset
|
44 include ../mpcommon.mak |
1 | 45 |
15291 | 46 .m.o: |
47 $(CC) -c $(CFLAGS) -o $@ $< | |
48 | |
21229 | 49 all: $(LIBS) |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
50 |
21222 | 51 $(LIBNAME2): $(OBJS2) |
52 $(AR) r $@ $^ | |
53 $(RANLIB) $@ |