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