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
+= -lm
$(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
)
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)$(prefix)/share/mlt"
98 install -m
644 metaschema.yaml
"$(DESTDIR)$(prefix)/share/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 "$(DESTDIR)$(prefix)/share/mlt/metaschema.yaml"
107 ifneq ($(wildcard .depend
),)