blob: 6aede70eb2334ca4899c1de7248bceba473be7d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
lib_LTLIBRARIES = libmtp.la
libmtp_la_CFLAGS = @LIBUSB_CFLAGS@ $(DLOG_CFLAGS)
libmtp_la_SOURCES = libmtp.c unicode.c unicode.h util.c util.h playlist-spl.c \
gphoto2-endian.h _stdint.h ptp.c ptp.h libusb-glue.h \
music-players.h device-flags.h playlist-spl.h mtpz.h \
chdk_live_view.h chdk_ptp.h
if MTPZ_COMPILE
libmtp_la_SOURCES += mtpz.c
endif
if LIBUSB1_COMPILE
libmtp_la_SOURCES += libusb1-glue.c
endif
if LIBUSB0_COMPILE
libmtp_la_SOURCES += libusb-glue.c
endif
if LIBOPENUSB_COMPILE
libmtp_la_SOURCES += libopenusb1-glue.c
endif
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://plan99.net/~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=12
AGE=3
REVISION=0
SOVERSION=$(CURRENT):$(REVISION):$(AGE)
LT_CURRENT_MINUS_AGE=`expr $(CURRENT) - $(AGE)`
if COMPILE_MINGW32
W32_LIBS=-lws2_32
W32_LDFLAGS=-export-dynamic
if MS_LIB_EXE
noinst_DATA=libmtp.lib
libmtp.def: $(srcdir)/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.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
endif
libmtp_la_LDFLAGS=@LDFLAGS@ -no-undefined -export-symbols $(srcdir)/libmtp.sym -version-info $(SOVERSION) $(W32_LDFLAGS)
libmtp_la_LIBADD=$(W32_LIBS) $(LTLIBICONV) @LIBUSB_LIBS@ $(DLOG_LIBS)
libmtp_la_DEPENDENCIES=$(srcdir)/libmtp.sym
DISTCLEANFILES = _stdint.h gphoto2-endian.h
|