blob: 41e72ebe9040b7ce290a4c787f3ceced833a9d7f [file] [log] [blame]
lib_LTLIBRARIES=libmtp.la
# Removed: ptp-pack.h mtp-pack.c mtp-pack.h mtp.h mtp.c ptp-pack.c
# Renamed: libptp-endian.h -> gphoto2-endian.h
libmtp_la_SOURCES=libmtp.c unicode.c unicode.h util.c util.h \
libusb-glue.c libusb-glue.h \
gphoto2-endian.h libptp-stdint.h ptp.c ptp.h
include_HEADERS=libmtp.h
EXTRA_DIST=libmtp.h.in libmtp.sym ptp-pack.c
# ---------------------------------------------------------------------------
# Advanced information about versioning:
# * "Writing shared libraries" by Mike Hearn
# http://navi.cx/~mike/writing-shared-libraries.html
# * libtool.info chapter "Versioning"
# * libtool.info chapter "Updating library version information"
# ---------------------------------------------------------------------------
# Versioning:
# - CURRENT (Major): Increment if the interface has changes. AGE is always
# *changed* at the same time.
# - AGE (Micro): Increment if any interfaces have been added; set to 0
# if any interfaces have been removed. Removal has
# precedence over adding, so set to 0 if both happened.
# It denotes upward compatibility.
# - REVISION (Minor): Increment any time the source changes; set to
# 0 if you incremented CURRENT.
#
# To summarize. Any interface *change* increment CURRENT. If that interface
# change does not break upward compatibility (ie it is an addition),
# increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed,
# REVISION is set to 0, otherwise REVISION is incremented.
# ---------------------------------------------------------------------------
CURRENT=6
AGE=1
REVISION=1
SOVERSION=$(CURRENT):$(REVISION):$(AGE)
if COMPILE_MINGW32
noinst_DATA=libmtp.lib
W32LF=-export-dynamic -no-undefined -export-symbols libmtp.sym
libmtp.def: libmtp.sym
echo "LIBRARY \"@PACKAGE@\"" > libmtp.def
echo "DESCRIPTION \"Media Transfer Protocol (MTP) library\"" >> libmtp.def
echo "VERSION @VERSION@" >> libmtp.def
echo >> libmtp.def
echo "EXPORTS" >> libmtp.def
cat libmtp.sym >> libmtp.def
libmtp.lib: libmtp.la libmtp.def
lib -name:libmtp-$(LT_CURRENT_MINUS_AGE).dll -def:libmtp.def -out:$@
install-data-local: libmtp.lib libmtp.def
$(INSTALL) libmtp.def $(DESTDIR)$(libdir)
$(INSTALL) libmtp.lib $(DESTDIR)$(libdir)
endif
libmtp_la_LDFLAGS=@LDFLAGS@ -version-info $(SOVERSION) $(W32LF)