Mercurial > mplayer.hg
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 |
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 | |
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 | 50 CFLAGS = $(INCLUDE) $(OPTFLAGS) |
15772 | 51 |
52 #CFLAGS += -Wall | |
1 | 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 | 55 |
56 # .PHONY: all clean | |
57 | |
58 .c.o: | |
24 | 59 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 60 |
15291 | 61 .m.o: |
62 $(CC) -c $(CFLAGS) -o $@ $< | |
63 | |
21229 | 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 | 66 $(LIBNAME): $(OBJS) |
67 $(AR) r $@ $^ | |
68 $(RANLIB) $@ | |
1 | 69 |
21222 | 70 $(LIBNAME2): $(OBJS2) |
71 $(AR) r $@ $^ | |
72 $(RANLIB) $@ | |
1 | 73 |
74 clean: | |
75 rm -f *.o *.a *~ | |
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 | 79 |
21080 | 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 | 82 |
24 | 83 ifneq ($(wildcard .depend),) |
84 include .depend | |
85 endif |