Mercurial > mplayer.hg
annotate libvo/Makefile @ 21271:02da705f907d
Do not use many different variables for SRCS.
author | diego |
---|---|
date | Sun, 26 Nov 2006 22:02:52 +0000 |
parents | 92b122592776 |
children | a396402b091b |
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 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
21 SRCS2 = aclib.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
22 osd.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
23 sub.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
24 |
16331
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
25 ifeq ($(CONFIG_LIBAVUTIL),yes) |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
26 LIBAV_INC += -I../libavutil |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
27 endif |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
28 |
15291 | 29 OBJS_TEMP=$(basename $(SRCS)) |
30 OBJS=$(OBJS_TEMP:%=%.o) | |
1 | 31 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
32 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
|
33 |
19485
d04ee0eb6a11
support for disabling/enabling bitmap font support from configure
diego
parents:
19420
diff
changeset
|
34 ifeq ($(BITMAP_FONT),yes) |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
35 SRCS2 += font_load.c |
19485
d04ee0eb6a11
support for disabling/enabling bitmap font support from configure
diego
parents:
19420
diff
changeset
|
36 endif |
18864
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
37 ifeq ($(FREETYPE),yes) |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
38 SRCS2 += font_load_ft.c |
18864
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
39 endif |
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
40 |
4089 | 41 ifeq ($(VIDIX),yes) |
4168 | 42 SRCS += vosub_vidix.c |
4089 | 43 endif |
44 | |
17988 | 45 ifeq ($(EXTERNAL_VIDIX),yes) |
46 SRCS += vosub_vidix.c | |
47 endif | |
48 | |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21229
diff
changeset
|
49 CFLAGS = -I.. -I../osdep $(LIBAV_INC) |
1 | 50 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21229
diff
changeset
|
51 include ../mpcommon.mak |
1 | 52 |
15291 | 53 .m.o: |
54 $(CC) -c $(CFLAGS) -o $@ $< | |
55 | |
21229 | 56 all: $(LIBS) |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
57 |
21222 | 58 $(LIBNAME2): $(OBJS2) |
59 $(AR) r $@ $^ | |
60 $(RANLIB) $@ |