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