1 include ../../config.mak
4 TARGET = $(NAME).$(version)
6 ifneq ($(targetos), Darwin)
8 TARGET = $(NAME).$(version)
9 SONAME = $(NAME).$(soversion)
10 SHFLAGS += -Wl,-soname,$(SONAME)
12 NAME = libmlt$(LIBSUF)
13 TARGET = libmlt.$(version)$(LIBSUF)
14 SONAME = libmlt.$(soversion)$(LIBSUF)
15 SHFLAGS += -install_name $(libdir)/$(SONAME) -current_version $(version) -compatibility_version $(soversion)
43 INCS = mlt_consumer.h \
72 CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
74 LDFLAGS += $(LIBDL) -lpthread
79 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
80 ln -sf $(TARGET) $(NAME)
81 ln -sf $(TARGET) $(SONAME)
84 $(CC) -MM $(CFLAGS) $^ 1>.depend
90 rm -f $(OBJS) $(TARGET) $(NAME) $(SONAME)
93 install -d $(DESTDIR)$(libdir)
94 install -m 755 $(TARGET) $(DESTDIR)$(libdir)
95 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME)
96 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
97 install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
98 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
99 install -d "$(DESTDIR)$(datadir)/mlt"
100 install -m 644 metaschema.yaml "$(DESTDIR)$(datadir)/mlt/"
103 rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
104 rm -f "$(DESTDIR)$(libdir)/$(SONAME)"
105 rm -f "$(DESTDIR)$(libdir)/$(NAME)"
106 rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
107 rm -f "$(DESTDIR)$(datadir)/mlt/metaschema.yaml"
109 ifneq ($(wildcard .depend),)