minor clean ups; added a null consumer for easier valgrind testing
[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_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 mlt_tokeniser.o
22
23 SRCS := $(OBJS:.o=.c)
24
25 CFLAGS += -rdynamic -DPREFIX="\"$(prefix)\""
26
27 LDFLAGS += -lm $(LIBDL) -lpthread
28
29 all: $(TARGET)
30
31 $(TARGET): $(OBJS)
32 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
33
34 depend: $(SRCS)
35 $(CC) -MM $(CFLAGS) $^ 1>.depend
36
37 dist-clean: clean
38 rm -f .depend
39
40 clean:
41 rm -f $(OBJS) $(TARGET)
42
43 install:
44 install -m 755 $(TARGET) $(prefix)/lib/libmlt.so
45 install -d "$(prefix)/include/mlt/framework"
46 install -m 644 mlt_consumer.h \
47 mlt_factory.h \
48 mlt_filter.h \
49 mlt.h \
50 mlt_multitrack.h \
51 mlt_pool.h \
52 mlt_properties.h \
53 mlt_repository.h \
54 mlt_tractor.h \
55 mlt_types.h \
56 mlt_deque.h \
57 mlt_field.h \
58 mlt_frame.h \
59 mlt_playlist.h \
60 mlt_producer.h \
61 mlt_property.h \
62 mlt_service.h \
63 mlt_transition.h \
64 mlt_tokeniser.h \
65 "$(prefix)/include/mlt/framework"
66
67 ifneq ($(wildcard .depend),)
68 include .depend
69 endif