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