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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
19034
9b3a8b48e5b3 Use only one global config.mak file.
diego
parents: 18864
diff changeset
2 include ../config.mak
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6
21229
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
7 LIBS =$(LIBNAME2)
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
8 ifeq ($(MPLAYER),yes)
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
9 LIBS+=$(LIBNAME)
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
10 endif
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
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
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
13 geometry.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
14 spuenc.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
15 video_out.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
16 vo_mpegpes.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
17 vo_null.c \
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
18 vo_yuv4mpeg.c \
19034
9b3a8b48e5b3 Use only one global config.mak file.
diego
parents: 18864
diff changeset
19 $(VO_SRCS) \
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
20
21285
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
21 SRCS-$(EXTERNAL_VIDIX) += vosub_vidix.c
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
22 SRCS-$(VIDIX) += vosub_vidix.c
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
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
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
28 SRCS2-$(BITMAP_FONT) += font_load.c
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
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
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
31 OBJS_TEMP=$(basename $(SRCS))
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
32 OBJS=$(OBJS_TEMP:%=%.o)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
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
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
38 SRCS += $(SRCS-yes)
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
39 SRCS2 += $(SRCS2-yes)
a396402b091b FFmpeg-style conditional dependency declaration
diego
parents: 21259
diff changeset
40 LIBAV_INC += $(LIBAV_INC-yes)
17988
4f7892794a7f added support for external VIDIX
nicodvb
parents: 17488
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45
15291
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
46 .m.o:
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
47 $(CC) -c $(CFLAGS) -o $@ $<
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
48
21229
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
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
05783b74ef64 simplify
diego
parents: 21206
diff changeset
51 $(LIBNAME2): $(OBJS2)
05783b74ef64 simplify
diego
parents: 21206
diff changeset
52 $(AR) r $@ $^
05783b74ef64 simplify
diego
parents: 21206
diff changeset
53 $(RANLIB) $@