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 -D_GNU_SOURCE \
|
|
16 $(FREETYPE_INC) \
|
|
17 $(FONTCONFIG_INC) \
|
|
18
|
|
19 .SUFFIXES: .c .o
|
|
20
|
|
21 # .PHONY: all clean
|
|
22
|
|
23 .c.o:
|
|
24 $(CC) -c $(CFLAGS) -o $@ $<
|
|
25
|
|
26 all: $(LIBS)
|
|
27
|
|
28 $(LIBNAME): $(OBJS)
|
|
29 $(AR) r $(LIBNAME) $(OBJS)
|
|
30 $(RANLIB) $(LIBNAME)
|
|
31
|
|
32 clean:
|
|
33 rm -f *.o *.a *~
|
|
34
|
|
35 distclean: clean
|
|
36 rm -f .depend
|
|
37
|
|
38 dep: depend
|
|
39
|
|
40 depend:
|
|
41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
42
|
|
43 #
|
|
44 # include dependency files if they exist
|
|
45 #
|
|
46 ifneq ($(wildcard .depend),)
|
|
47 include .depend
|
|
48 endif
|
|
49
|