annotate libvo/Makefile @ 21229:36046375aacd

Don't compile libvo.a unless MPlayer is enabled.
author diego
date Sat, 25 Nov 2006 18:56:00 +0000
parents 05783b74ef64
children 92b122592776
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
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
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
29 OBJS_TEMP=$(basename $(SRCS))
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
30 OBJS=$(OBJS_TEMP:%=%.o)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
41 ifeq ($(VIDIX),yes)
4168
2d8403f1c54e Fix xvidix for non-x11 systems, 10l Alex :)
atmos4
parents: 4124
diff changeset
42 SRCS += vosub_vidix.c
4089
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
43 endif
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
44
17988
4f7892794a7f added support for external VIDIX
nicodvb
parents: 17488
diff changeset
45 ifeq ($(EXTERNAL_VIDIX),yes)
4f7892794a7f added support for external VIDIX
nicodvb
parents: 17488
diff changeset
46 SRCS += vosub_vidix.c
4f7892794a7f added support for external VIDIX
nicodvb
parents: 17488
diff changeset
47 endif
4f7892794a7f added support for external VIDIX
nicodvb
parents: 17488
diff changeset
48
19412
747453e12f3b consistency cosmetics: Handle includes just like in other Makefiles.
diego
parents: 19190
diff changeset
49 INCLUDE = -I. -I.. -I../osdep $(LIBAV_INC)
21105
1853a7b379e3 Remove unused -D from CFLAGS.
diego
parents: 21104
diff changeset
50 CFLAGS = $(INCLUDE) $(OPTFLAGS)
15772
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
51
d3d30585a9d2 Be more patch-friendly
ranma
parents: 15473
diff changeset
52 #CFLAGS += -Wall
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53
15473
c1a6002fb140 If we use .m suffix we really should include it in .SUFFIXES
wight
parents: 15291
diff changeset
54 .SUFFIXES: .c .o .m
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 .c.o:
24
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
59 $(CC) -c $(CFLAGS) -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
15291
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
61 .m.o:
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
62 $(CC) -c $(CFLAGS) -o $@ $<
21e7332ea44e macosx core video module
nplourde
parents: 13744
diff changeset
63
21229
36046375aacd Don't compile libvo.a unless MPlayer is enabled.
diego
parents: 21222
diff changeset
64 all: $(LIBS)
21107
790256469dd7 Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents: 21105
diff changeset
65
21222
05783b74ef64 simplify
diego
parents: 21206
diff changeset
66 $(LIBNAME): $(OBJS)
05783b74ef64 simplify
diego
parents: 21206
diff changeset
67 $(AR) r $@ $^
05783b74ef64 simplify
diego
parents: 21206
diff changeset
68 $(RANLIB) $@
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
21222
05783b74ef64 simplify
diego
parents: 21206
diff changeset
70 $(LIBNAME2): $(OBJS2)
05783b74ef64 simplify
diego
parents: 21206
diff changeset
71 $(AR) r $@ $^
05783b74ef64 simplify
diego
parents: 21206
diff changeset
72 $(RANLIB) $@
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 rm -f *.o *.a *~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 16331
diff changeset
77 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 16331
diff changeset
78 rm -f .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79
21080
618d1857f4c4 Unify dep/depend targets.
diego
parents: 19485
diff changeset
80 dep depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 698
diff changeset
81 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82
24
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
83 ifneq ($(wildcard .depend),)
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
84 include .depend
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
85 endif