1lib_LTLIBRARIES=libmtp.la 2libmtp_la_SOURCES=libmtp.c unicode.c unicode.h util.c util.h playlist-spl.c \ 3 libusb-glue.c libusb-glue.h \ 4 gphoto2-endian.h libptp-stdint.h ptp.c ptp.h \ 5 music-players.h device-flags.h playlist-spl.h 6include_HEADERS=libmtp.h 7EXTRA_DIST=libmtp.h.in libmtp.sym ptp-pack.c 8 9# --------------------------------------------------------------------------- 10# Advanced information about versioning: 11# * "Writing shared libraries" by Mike Hearn 12# http://navi.cx/~mike/writing-shared-libraries.html 13# * libtool.info chapter "Versioning" 14# * libtool.info chapter "Updating library version information" 15# --------------------------------------------------------------------------- 16# Versioning: 17# - CURRENT (Major): Increment if the interface has changes. AGE is always 18# *changed* at the same time. 19# - AGE (Micro): Increment if any interfaces have been added; set to 0 20# if any interfaces have been removed. Removal has 21# precedence over adding, so set to 0 if both happened. 22# It denotes upward compatibility. 23# - REVISION (Minor): Increment any time the source changes; set to 24# 0 if you incremented CURRENT. 25# 26# To summarize. Any interface *change* increment CURRENT. If that interface 27# change does not break upward compatibility (ie it is an addition), 28# increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, 29# REVISION is set to 0, otherwise REVISION is incremented. 30# --------------------------------------------------------------------------- 31CURRENT=11 32AGE=3 33REVISION=1 34SOVERSION=$(CURRENT):$(REVISION):$(AGE) 35LT_CURRENT_MINUS_AGE=`expr $(CURRENT) - $(AGE)` 36 37if COMPILE_MINGW32 38W32_LIBS=-lws2_32 39W32_LDFLAGS=-export-dynamic 40if MS_LIB_EXE 41noinst_DATA=libmtp.lib 42libmtp.def: $(srcdir)/libmtp.sym 43 echo "LIBRARY \"@PACKAGE@\"" > libmtp.def 44 echo "DESCRIPTION \"Media Transfer Protocol (MTP) library\"" >> libmtp.def 45 echo "VERSION @VERSION@" >> libmtp.def 46 echo >> libmtp.def 47 echo "EXPORTS" >> libmtp.def 48 cat $< >> libmtp.def 49libmtp.lib: libmtp.la libmtp.def 50 lib -name:libmtp-$(LT_CURRENT_MINUS_AGE).dll -def:libmtp.def -out:$@ 51install-data-local: libmtp.lib libmtp.def 52 $(INSTALL) libmtp.def $(DESTDIR)$(libdir) 53 $(INSTALL) libmtp.lib $(DESTDIR)$(libdir) 54endif 55endif 56 57libmtp_la_LDFLAGS=@LDFLAGS@ -no-undefined -export-symbols $(srcdir)/libmtp.sym -version-info $(SOVERSION) $(W32_LDFLAGS) 58libmtp_la_LIBADD=$(W32_LIBS) $(LTLIBICONV) 59libmtp_la_DEPENDENCIES=$(srcdir)/libmtp.sym 60 61DISTCLEANFILES = _stdint.h 62