]> git.sesse.net Git - mlt/blob - src/framework/Makefile
+ Final updates for 0.2.1 - distclean corrected, soname usage in linking, version...
[mlt] / src / framework / Makefile
1 include ../../config.mak
2
3 NAME = libmlt$(LIBSUF)
4 TARGET = $(NAME).$(version)
5
6 OBJS = mlt_frame.o \
7            mlt_geometry.o \
8            mlt_deque.o \
9            mlt_property.o \
10            mlt_properties.o \
11            mlt_events.o \
12            mlt_parser.o \
13            mlt_service.o \
14            mlt_producer.o \
15            mlt_multitrack.o \
16            mlt_playlist.o \
17            mlt_consumer.o \
18            mlt_filter.o \
19            mlt_transition.o \
20            mlt_field.o \
21            mlt_tractor.o \
22            mlt_factory.o \
23            mlt_repository.o \
24            mlt_pool.o \
25            mlt_tokeniser.o
26
27 INCS = mlt_consumer.h \
28            mlt_factory.h \
29            mlt_filter.h \
30            mlt.h \
31            mlt_multitrack.h \
32            mlt_pool.h \
33            mlt_properties.h \
34            mlt_events.h \
35            mlt_parser.h \
36            mlt_repository.h \
37            mlt_tractor.h \
38            mlt_types.h \
39            mlt_deque.h \
40            mlt_field.h \
41            mlt_frame.h \
42            mlt_geometry.h \
43            mlt_playlist.h \
44            mlt_producer.h \
45            mlt_property.h \
46            mlt_service.h  \
47            mlt_transition.h \
48            mlt_tokeniser.h
49
50 SRCS := $(OBJS:.o=.c)
51
52 CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\""
53
54 LDFLAGS += -Wl,-soname,libmlt.so.$(version) -lm $(LIBDL) -lpthread
55
56 all:    $(TARGET)
57
58 $(TARGET): $(OBJS)
59                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
60                 ln -sf $(TARGET) $(NAME)
61
62 depend: $(SRCS)
63         $(CC) -MM $(CFLAGS) $^ 1>.depend
64
65 distclean:      clean
66                 rm -f .depend
67
68 clean:  
69                 rm -f $(OBJS) $(TARGET) $(NAME)
70
71 install:
72         install -d $(DESTDIR)$(libdir)
73         install -m 755 $(TARGET) $(DESTDIR)$(libdir)
74         ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
75         install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
76         install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
77
78 ifneq ($(wildcard .depend),)
79 include .depend
80 endif