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