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