1 lib_LTLIBRARIES=libmtp.la 2 libmtp_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 6 include_HEADERS=libmtp.h 7 EXTRA_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 # --------------------------------------------------------------------------- 31 CURRENT=11 32 AGE=3 33 REVISION=1 34 SOVERSION=$(CURRENT):$(REVISION):$(AGE) 35 LT_CURRENT_MINUS_AGE=`expr $(CURRENT) - $(AGE)` 36 37 if COMPILE_MINGW32 38 W32_LIBS=-lws2_32 39 W32_LDFLAGS=-export-dynamic 40 if MS_LIB_EXE 41 noinst_DATA=libmtp.lib 42 libmtp.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 49 libmtp.lib: libmtp.la libmtp.def 50 lib -name:libmtp-$(LT_CURRENT_MINUS_AGE).dll -def:libmtp.def -out:$@ 51 install-data-local: libmtp.lib libmtp.def 52 $(INSTALL) libmtp.def $(DESTDIR)$(libdir) 53 $(INSTALL) libmtp.lib $(DESTDIR)$(libdir) 54 endif 55 endif 56 57 libmtp_la_LDFLAGS=@LDFLAGS@ -no-undefined -export-symbols $(srcdir)/libmtp.sym -version-info $(SOVERSION) $(W32_LDFLAGS) 58 libmtp_la_LIBADD=$(W32_LIBS) $(LTLIBICONV) 59 libmtp_la_DEPENDENCIES=$(srcdir)/libmtp.sym 60 61 DISTCLEANFILES = _stdint.h 62