Mercurial > mplayer.hg
annotate libvo/Makefile @ 21178:c9ac2772aa2e
Clean up CFLAGS handling.
author | diego |
---|---|
date | Fri, 24 Nov 2006 20:19:29 +0000 |
parents | 790256469dd7 |
children | 68df3b19a160 |
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 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
7 SRCS=aspect.c \ |
15772 | 8 geometry.c \ |
9 spuenc.c \ | |
10 video_out.c \ | |
11 vo_mpegpes.c \ | |
12 vo_null.c \ | |
13 vo_yuv4mpeg.c \ | |
19034 | 14 $(VO_SRCS) \ |
15772 | 15 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
16 SRCS2 = aclib.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
17 osd.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
18 sub.c \ |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
19 |
16331
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
20 ifeq ($(CONFIG_LIBAVUTIL),yes) |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
21 LIBAV_INC += -I../libavutil |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
22 endif |
96be528902fd
Add -I../libavutil to the includes to fix building vo_zr[2].
diego
parents:
16264
diff
changeset
|
23 |
15291 | 24 OBJS_TEMP=$(basename $(SRCS)) |
25 OBJS=$(OBJS_TEMP:%=%.o) | |
1 | 26 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
27 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
|
28 |
19485
d04ee0eb6a11
support for disabling/enabling bitmap font support from configure
diego
parents:
19420
diff
changeset
|
29 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
|
30 SRCS2 += font_load.c |
19485
d04ee0eb6a11
support for disabling/enabling bitmap font support from configure
diego
parents:
19420
diff
changeset
|
31 endif |
18864
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
32 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
|
33 SRCS2 += font_load_ft.c |
18864
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
34 endif |
1629108cd5b0
Move conditional FreeType support compilation to the build system.
diego
parents:
17988
diff
changeset
|
35 |
4089 | 36 ifeq ($(VIDIX),yes) |
4168 | 37 SRCS += vosub_vidix.c |
4089 | 38 endif |
39 | |
17988 | 40 ifeq ($(EXTERNAL_VIDIX),yes) |
41 SRCS += vosub_vidix.c | |
42 endif | |
43 | |
19412
747453e12f3b
consistency cosmetics: Handle includes just like in other Makefiles.
diego
parents:
19190
diff
changeset
|
44 INCLUDE = -I. -I.. -I../osdep $(LIBAV_INC) |
21105 | 45 CFLAGS = $(INCLUDE) $(OPTFLAGS) |
15772 | 46 |
47 #CFLAGS += -Wall | |
1 | 48 |
15473
c1a6002fb140
If we use .m suffix we really should include it in .SUFFIXES
wight
parents:
15291
diff
changeset
|
49 .SUFFIXES: .c .o .m |
1 | 50 |
51 # .PHONY: all clean | |
52 | |
53 .c.o: | |
24 | 54 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 55 |
15291 | 56 .m.o: |
57 $(CC) -c $(CFLAGS) -o $@ $< | |
58 | |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
59 all: $(LIBNAME) $(LIBNAME2) |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
60 |
1010 | 61 $(LIBNAME): $(OBJS) |
1 | 62 $(AR) r $(LIBNAME) $(OBJS) |
12634 | 63 $(RANLIB) $(LIBNAME) |
1 | 64 |
21107
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
65 $(LIBNAME2): $(OBJS2) |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
66 $(AR) r $(LIBNAME2) $(OBJS2) |
790256469dd7
Split libvo.a into two libs so that libosd.a can be used by MEncoder.
diego
parents:
21105
diff
changeset
|
67 $(RANLIB) $(LIBNAME2) |
1 | 68 |
69 clean: | |
70 rm -f *.o *.a *~ | |
71 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
16331
diff
changeset
|
72 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
16331
diff
changeset
|
73 rm -f .depend |
1 | 74 |
21080 | 75 dep depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
698
diff
changeset
|
76 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 77 |
24 | 78 # |
79 # include dependency files if they exist | |
80 # | |
81 ifneq ($(wildcard .depend),) | |
82 include .depend | |
83 endif |