OLD | NEW |
1 lib_LTLIBRARIES = libmtp.la | 1 lib_LTLIBRARIES = libmtp.la |
2 | 2 |
3 libmtp_la_CFLAGS = @LIBUSB_CFLAGS@ | 3 libmtp_la_CFLAGS = @LIBUSB_CFLAGS@ |
4 libmtp_la_SOURCES = libmtp.c unicode.c unicode.h util.c util.h \ | 4 libmtp_la_SOURCES = libmtp.c unicode.c unicode.h util.c util.h \ |
5 gphoto2-endian.h _stdint.h ptp.c ptp.h libusb-glue.h \ | 5 gphoto2-endian.h _stdint.h ptp.c ptp.h libusb-glue.h \ |
6 » music-players.h device-flags.h mtpz.h \ | 6 » music-players.h device-flags.h mtpz.h |
7 » chdk_live_view.h chdk_ptp.h | |
8 | 7 |
9 if MTPZ_COMPILE | 8 if MTPZ_COMPILE |
10 libmtp_la_SOURCES += mtpz.c | 9 libmtp_la_SOURCES += mtpz.c |
11 endif | 10 endif |
12 | 11 |
13 if LIBUSB1_COMPILE | 12 if LIBUSB1_COMPILE |
14 libmtp_la_SOURCES += libusb1-glue.c | 13 libmtp_la_SOURCES += libusb1-glue.c |
15 endif | 14 endif |
16 | 15 |
17 if LIBUSB0_COMPILE | 16 if LIBUSB0_COMPILE |
(...skipping 22 matching lines...) Expand all Loading... |
40 # precedence over adding, so set to 0 if both happened. | 39 # precedence over adding, so set to 0 if both happened. |
41 # It denotes upward compatibility. | 40 # It denotes upward compatibility. |
42 # - REVISION (Minor): Increment any time the source changes; set to | 41 # - REVISION (Minor): Increment any time the source changes; set to |
43 # 0 if you incremented CURRENT. | 42 # 0 if you incremented CURRENT. |
44 # | 43 # |
45 # To summarize. Any interface *change* increment CURRENT. If that interface | 44 # To summarize. Any interface *change* increment CURRENT. If that interface |
46 # change does not break upward compatibility (ie it is an addition), | 45 # change does not break upward compatibility (ie it is an addition), |
47 # increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, | 46 # increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, |
48 # REVISION is set to 0, otherwise REVISION is incremented. | 47 # REVISION is set to 0, otherwise REVISION is incremented. |
49 # --------------------------------------------------------------------------- | 48 # --------------------------------------------------------------------------- |
50 CURRENT=12 | 49 CURRENT=9 |
51 AGE=3 | 50 AGE=0 |
52 REVISION=0 | 51 REVISION=5 |
53 SOVERSION=$(CURRENT):$(REVISION):$(AGE) | 52 SOVERSION=$(CURRENT):$(REVISION):$(AGE) |
54 LT_CURRENT_MINUS_AGE=`expr $(CURRENT) - $(AGE)` | 53 LT_CURRENT_MINUS_AGE=`expr $(CURRENT) - $(AGE)` |
55 | 54 |
56 if COMPILE_MINGW32 | 55 if COMPILE_MINGW32 |
57 W32_LIBS=-lws2_32 | 56 W32_LIBS=-lws2_32 |
58 W32_LDFLAGS=-export-dynamic | 57 W32_LDFLAGS=-export-dynamic |
59 if MS_LIB_EXE | 58 if MS_LIB_EXE |
60 noinst_DATA=libmtp.lib | 59 noinst_DATA=libmtp.lib |
61 libmtp.def: $(srcdir)/libmtp.sym | 60 libmtp.def: $(srcdir)/libmtp.sym |
62 echo "LIBRARY \"@PACKAGE@\"" > libmtp.def | 61 echo "LIBRARY \"@PACKAGE@\"" > libmtp.def |
63 echo "DESCRIPTION \"Media Transfer Protocol (MTP) library\"" >> libmtp.d
ef | 62 echo "DESCRIPTION \"Media Transfer Protocol (MTP) library\"" >> libmtp.d
ef |
64 echo "VERSION @VERSION@" >> libmtp.def | 63 echo "VERSION @VERSION@" >> libmtp.def |
65 echo >> libmtp.def | 64 echo >> libmtp.def |
66 echo "EXPORTS" >> libmtp.def | 65 echo "EXPORTS" >> libmtp.def |
67 cat $< >> libmtp.def | 66 cat $< >> libmtp.def |
68 libmtp.lib: libmtp.la libmtp.def | 67 libmtp.lib: libmtp.la libmtp.def |
69 lib -name:libmtp-$(LT_CURRENT_MINUS_AGE).dll -def:libmtp.def -out:$@ | 68 lib -name:libmtp-$(LT_CURRENT_MINUS_AGE).dll -def:libmtp.def -out:$@ |
70 install-data-local: libmtp.lib libmtp.def | 69 install-data-local: libmtp.lib libmtp.def |
71 $(INSTALL) libmtp.def $(DESTDIR)$(libdir) | 70 $(INSTALL) libmtp.def $(DESTDIR)$(libdir) |
72 $(INSTALL) libmtp.lib $(DESTDIR)$(libdir) | 71 $(INSTALL) libmtp.lib $(DESTDIR)$(libdir) |
73 endif | 72 endif |
74 endif | 73 endif |
75 | 74 |
76 libmtp_la_LDFLAGS=@LDFLAGS@ -no-undefined -export-symbols $(srcdir)/libmtp.sym -
version-info $(SOVERSION) $(W32_LDFLAGS) | 75 libmtp_la_LDFLAGS=@LDFLAGS@ -no-undefined -export-symbols $(srcdir)/libmtp.sym -
version-info $(SOVERSION) $(W32_LDFLAGS) |
77 libmtp_la_LIBADD=$(W32_LIBS) $(LTLIBICONV) @LIBUSB_LIBS@ | 76 libmtp_la_LIBADD=$(W32_LIBS) $(LTLIBICONV) @LIBUSB_LIBS@ |
78 libmtp_la_DEPENDENCIES=$(srcdir)/libmtp.sym | 77 libmtp_la_DEPENDENCIES=$(srcdir)/libmtp.sym |
79 | 78 |
80 DISTCLEANFILES = _stdint.h gphoto2-endian.h | 79 DISTCLEANFILES = _stdint.h gphoto2-endian.h |
OLD | NEW |