1 include ../../config.mak
5 TARGET = $(NAME).$(version)
7 ifeq ($(targetos), Darwin)
9 TARGET = libmlt.$(version)$(LIBSUF)
10 SONAME = libmlt.$(soversion)$(LIBSUF)
11 SHFLAGS += -install_name $(libdir)/$(SONAME) -current_version $(version) -compatibility_version $(soversion)
12 else ifeq ($(targetos), MinGW)
13 NAME = libmlt$(LIBSUF)
14 TARGET = libmlt-$(soversion)$(LIBSUF)
15 SHFLAGS += -Wl,--output-def,libmlt.def
17 NAME = libmlt$(LIBSUF)
18 TARGET = $(NAME).$(version)
19 SONAME = $(NAME).$(soversion)
20 SHFLAGS += -Wl,-soname,$(SONAME)
23 ifeq ($(targetos), Linux)
24 SHFLAGS += -Wl,--version-script=mlt.vers
53 INCS = mlt_consumer.h \
83 ifeq ($(targetos), MinGW)
84 OBJS += ../win32/win32.o
85 SRCS += ../win32/win32.c
88 CFLAGS += $(RDYNAMIC) -DPREFIX_DATA="\"$(mltdatadir)\"" -DPREFIX_LIB="\"$(moduledir)\""
90 LDFLAGS += $(LIBDL) -lpthread -lm
95 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
96 ln -sf $(TARGET) $(NAME)
97 if [ "$(targetos)" != "MinGW" ]; then \
98 ln -sf $(TARGET) $(SONAME) ; \
102 $(CC) -MM $(CFLAGS) $^ 1>.depend
108 rm -f $(OBJS) $(TARGET) $(NAME) $(SONAME)
111 install -d $(DESTDIR)$(libdir)
112 if [ "$(targetos)" = "MinGW" ]; then \
113 install -m 755 $(TARGET) $(DESTDIR)$(prefix) ; \
114 install -m 755 $(TARGET) $(DESTDIR)$(libdir)/libmlt.dll ; \
115 install -m 644 libmlt.def $(DESTDIR)$(libdir) ; \
117 install -m 755 $(TARGET) $(DESTDIR)$(libdir) ; \
118 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME) ; \
119 ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME) ; \
121 install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
122 install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
123 install -d "$(DESTDIR)$(mltdatadir)"
124 install -m 644 metaschema.yaml "$(DESTDIR)$(mltdatadir)"
127 rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
128 if [ "$(targetos)" != "MinGW" ]; then \
129 rm -f "$(DESTDIR)$(libdir)/$(SONAME)" ; \
130 rm -f "$(DESTDIR)$(libdir)/$(NAME)" ; \
132 rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
133 rm -f "$(DESTDIR)$(mltdatadir)/metaschema.yaml"
135 ifneq ($(wildcard .depend),)