]> git.sesse.net Git - mlt/blob - src/framework/Makefile
Configure and build tuning
[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_service.o \
10            mlt_producer.o \
11            mlt_multitrack.o \
12            mlt_playlist.o \
13            mlt_consumer.o \
14            mlt_filter.o \
15            mlt_transition.o \
16            mlt_field.o \
17            mlt_tractor.o \
18            mlt_factory.o \
19            mlt_repository.o \
20            mlt_pool.o
21
22 SRCS := $(OBJS:.o=.c)
23
24 CFLAGS += -pthread -DPREFIX="\"$(prefix)\""
25
26 LDFLAGS = -lm -ldl -lpthread
27
28 all:    $(TARGET)
29
30 $(TARGET): $(OBJS)
31                 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
32
33 depend: $(SRCS)
34                 $(CC) -MM $(CFLAGS) $^ 1>.depend
35
36 dist-clean:     clean
37                 rm -f .depend
38
39 clean:  
40                 rm -f $(OBJS) $(TARGET)
41
42 install:
43         install -m 755 $(TARGET) $(prefix)/lib/libmlt.so
44         mkdir -p "$(prefix)/include/mlt/framework"
45         install -m 644 mlt_consumer.h \
46                         mlt_factory.h \
47                         mlt_filter.h \
48                         mlt.h \
49                         mlt_multitrack.h \
50                         mlt_pool.h \
51                         mlt_properties.h \
52                         mlt_repository.h \
53                         mlt_tractor.h \
54                         mlt_types.h \
55                         mlt_deque.h \
56                         mlt_field.h \
57                         mlt_frame.h \
58                         mlt_playlist.h \
59                         mlt_producer.h \
60                         mlt_property.h \
61                         mlt_service.h  \
62                         mlt_transition.h \
63             "$(prefix)/include/mlt/framework"
64
65 ifneq ($(wildcard .depend),)
66 include .depend
67 endif