1 include ../../config.mak
4 TARGET = $(NAME).$(version)
6 ifeq ($(targetos), Darwin)
8 TARGET = libmlt.$(version)$(LIBSUF)
9 SONAME = libmlt.$(soversion)$(LIBSUF)
10 SHFLAGS += -install_name $(libdir)/$(SONAME) -current_version $(version) -compatibility_version $(soversion)
11 else ifeq ($(targetos), MinGW)
12 NAME = libmlt$(LIBSUF)
13 TARGET = libmlt-$(soversion)$(LIBSUF)
16 NAME = libmlt$(LIBSUF)
17 TARGET = $(NAME).$(version)
18 SONAME = $(NAME).$(soversion)
19 SHFLAGS += -Wl,-soname,$(SONAME)
47 INCS = mlt_consumer.h \
76 CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
78 LDFLAGS += $(LIBDL) -lpthread
83 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
84 ln -sf $(TARGET) $(NAME)
85 if [ "$(targetos)" != "MinGW" ]; then \
86 ln -sf $(TARGET) $(SONAME) ; \
90 $(CC) -MM $(CFLAGS) $^ 1>.depend
96 rm -f $(OBJS) $(TARGET) $(NAME) $(SONAME)
99 install -d $(DESTDIR)$(libdir)
100 install -m 755 $(TARGET) $(DESTDIR)$(libdir)
101 if [ "$(targetos)" != "MinGW" ]; then \
102 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME) ; \
103 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME) ; \
105 install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
106 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
107 install -d "$(DESTDIR)$(datadir)/mlt"
108 install -m 644 metaschema.yaml "$(DESTDIR)$(datadir)/mlt/"
111 rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
112 if [ "$(targetos)" != "MinGW" ]; then \
113 rm -f "$(DESTDIR)$(libdir)/$(SONAME)" ; \
114 rm -f "$(DESTDIR)$(libdir)/$(NAME)" ; \
116 rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
117 rm -f "$(DESTDIR)$(datadir)/mlt/metaschema.yaml"
119 ifneq ($(wildcard .depend),)