18937
|
1
|
|
2 include ../config.mak
|
|
3
|
|
4 LIBNAME=libass.a
|
|
5
|
|
6 LIBS=$(LIBNAME)
|
|
7
|
|
8 SRCS=ass.c ass_cache.c ass_fontconfig.c ass_render.c ass_utils.c ass_mp.c
|
|
9
|
|
10 OBJS=$(SRCS:.c=.o)
|
|
11
|
|
12 CFLAGS = $(OPTFLAGS) \
|
|
13 -I. -I.. \
|
|
14 -I../libmpcodecs \
|
|
15 $(EXTRA_INC) \
|
|
16 -D_GNU_SOURCE \
|
|
17 $(FREETYPE_INC) \
|
|
18 $(FONTCONFIG_INC) \
|
|
19
|
|
20 .SUFFIXES: .c .o
|
|
21
|
|
22 # .PHONY: all clean
|
|
23
|
|
24 .c.o:
|
|
25 $(CC) -c $(CFLAGS) -o $@ $<
|
|
26
|
|
27 all: $(LIBS)
|
|
28
|
|
29 $(LIBNAME): $(OBJS)
|
|
30 $(AR) r $(LIBNAME) $(OBJS)
|
|
31 $(RANLIB) $(LIBNAME)
|
|
32
|
|
33 clean:
|
|
34 rm -f *.o *.a *~
|
|
35
|
|
36 distclean: clean
|
|
37 rm -f .depend
|
|
38
|
|
39 dep: depend
|
|
40
|
|
41 depend:
|
|
42 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
43
|
|
44 #
|
|
45 # include dependency files if they exist
|
|
46 #
|
|
47 ifneq ($(wildcard .depend),)
|
|
48 include .depend
|
|
49 endif
|
|
50
|