]> git.sesse.net Git - mlt/blob - src/framework/Makefile
Cloning optimisations and introduction of the service parser
[mlt] / src / framework / Makefile
1 include ../../config.mak
2
3 TARGET = libmlt.so
4
5 OBJS = mlt_frame.o \
6            mlt_deque.o \
7            mlt_property.o \
8            mlt_properties.o \
9            mlt_events.o \
10            mlt_parser.o \
11            mlt_service.o \
12            mlt_producer.o \
13            mlt_multitrack.o \
14            mlt_playlist.o \
15            mlt_consumer.o \
16            mlt_filter.o \
17            mlt_transition.o \
18            mlt_field.o \
19            mlt_tractor.o \
20            mlt_factory.o \
21            mlt_repository.o \
22            mlt_pool.o \
23            mlt_tokeniser.o
24
25 INCS = mlt_consumer.h \
26            mlt_factory.h \
27            mlt_filter.h \
28            mlt.h \
29            mlt_multitrack.h \
30            mlt_pool.h \
31            mlt_properties.h \
32            mlt_events.h \
33            mlt_parser.h \
34            mlt_repository.h \
35            mlt_tractor.h \
36            mlt_types.h \
37            mlt_deque.h \
38            mlt_field.h \
39            mlt_frame.h \
40            mlt_playlist.h \
41            mlt_producer.h \
42            mlt_property.h \
43            mlt_service.h  \
44            mlt_transition.h \
45            mlt_tokeniser.h
46
47 SRCS := $(OBJS:.o=.c)
48
49 CFLAGS += -rdynamic -DPREFIX="\"$(prefix)\""
50
51 LDFLAGS += -lm $(LIBDL) -lpthread
52
53 all:    $(TARGET)
54
55 $(TARGET): $(OBJS)
56                 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
57
58 depend: $(SRCS)
59                 $(CC) -MM $(CFLAGS) $^ 1>.depend
60
61 dist-clean:     clean
62                 rm -f .depend
63
64 clean:  
65                 rm -f $(OBJS) $(TARGET)
66
67 install:
68         install -m 755 $(TARGET) $(prefix)/lib/libmlt.so
69         install -d "$(prefix)/include/mlt/framework"
70         install -m 644 $(INCS) "$(prefix)/include/mlt/framework"
71
72 ifneq ($(wildcard .depend),)
73 include .depend
74 endif