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)
42 INCS = mlt_consumer.h \
70 CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
72 LDFLAGS += $(LIBDL) -lpthread
77 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
78 ln -sf $(TARGET) $(NAME)
79 ln -sf $(TARGET) $(SONAME)
82 $(CC) -MM $(CFLAGS) $^ 1>.depend
88 rm -f $(OBJS) $(TARGET) $(NAME) $(SONAME)
91 install -d $(DESTDIR)$(libdir)
92 install -m 755 $(TARGET) $(DESTDIR)$(libdir)
93 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME)
94 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
95 install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
96 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
97 install -d "$(DESTDIR)$(datadir)/mlt"
98 install -m 644 metaschema.yaml "$(DESTDIR)$(datadir)/mlt/"
101 rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
102 rm -f "$(DESTDIR)$(libdir)/$(SONAME)"
103 rm -f "$(DESTDIR)$(libdir)/$(NAME)"
104 rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
105 rm -f "$(DESTDIR)$(datadir)/mlt/metaschema.yaml"
107 ifneq ($(wildcard .depend),)