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