aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/Makefile
blob: 76216a97a42e277ab476a3ee1db9aba6e000f62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

include ../config.mak

LIBNAME = libvo.a

SRCS=aclib.c \
     aspect.c \
     geometry.c \
     osd.c \
     spuenc.c \
     sub.c \
     video_out.c \
     vo_mpegpes.c \
     vo_null.c \
     vo_yuv4mpeg.c \
     $(VO_SRCS) \

LIBAV_INC =
ifeq ($(CONFIG_LIBAVUTIL),yes)
LIBAV_INC += -I../libavutil
endif

OBJS_TEMP=$(basename $(SRCS))
OBJS=$(OBJS_TEMP:%=%.o)

ifeq ($(BITMAP_FONT),yes)
SRCS += font_load.c
endif

ifeq ($(FREETYPE),yes)
SRCS += font_load_ft.c
endif

ifeq ($(VIDIX),yes)
SRCS += vosub_vidix.c
endif

ifeq ($(EXTERNAL_VIDIX),yes)
SRCS += vosub_vidix.c
endif

INCLUDE = -I. -I.. -I../osdep $(LIBAV_INC)
CFLAGS  = $(INCLUDE) $(OPTFLAGS) -DMPG12PLAY

#CFLAGS += -Wall

.SUFFIXES: .c .o .m

# .PHONY: all clean

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

.m.o:
	$(CC) -c $(CFLAGS) -o $@ $<

$(LIBNAME):     $(OBJS)
	$(AR) r $(LIBNAME) $(OBJS)
	$(RANLIB) $(LIBNAME)

all:    $(LIBNAME)

clean:
	rm -f *.o *.a *~

distclean: clean
	rm -f .depend

dep:    depend

depend:
	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend

#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif