summaryrefslogtreecommitdiff
path: root/libgphoto2_port/libgphoto2_port/Makefile.am
blob: 1e211ba344de406b9716130c6396ec27b7bae495 (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
EXTRA_DIST =


# included by all *.c files containing translated string literals as
# libgphoto2_port/i18n.h
EXTRA_DIST += i18n.h


EXTRA_DIST += compiletime-assert.h


lib_LTLIBRARIES                  = libgphoto2_port.la
libgphoto2_port_la_CFLAGS        =
libgphoto2_port_la_CPPFLAGS      =
libgphoto2_port_la_DEPENDENCIES  =
libgphoto2_port_la_LDFLAGS       =
libgphoto2_port_la_LIBADD        =
libgphoto2_port_la_SOURCES       =

libgphoto2_port_la_CPPFLAGS     += -I$(top_srcdir)
libgphoto2_port_la_CPPFLAGS     += -I$(top_srcdir)/libgphoto2_port
libgphoto2_port_la_CPPFLAGS     += $(AM_CPPFLAGS)

libgphoto2_port_la_LDFLAGS      += -no-undefined

# Notes about the list of exported symbols:
#    gp_* also contains internal symbols which are intended for
#         INTERNAL USE ONLY and should be converted into gpi_* symbols
#    gp_log_* is the gphoto2 logging API for use by
#             - libgphoto2_port and iolibs
#             - libgphoto2      and camlibs
#             - frontends (optional)
#    gp_system_* is a portable interface to a few filesystem functions
#             Used by
#             - libgphoto2_port and iolibs
#             - libgphoto2      and camlibs
#             - the gphoto2 frontend (NOT for other frontends)
#             Other frontends use their respective toolkit (glib, Qt, ...)
#    gp_port_* is the "real" gphoto2_port API for use by
#             - libgphoto2      and camlibs
#             - frontends
#
# Yes, this is messy, but we are going to clean this up.

# EXTRA_DIST                      += libgphoto2_port.sym
EXTRA_DIST                      += libgphoto2_port.ver
if HAVE_ASM_SYMVER
libgphoto2_port_la_DEPENDENCIES += $(srcdir)/libgphoto2_port.ver
libgphoto2_port_la_LDFLAGS      += -Wl,--version-script=$(srcdir)/libgphoto2_port.ver
# else
# libgphoto2_port_la_DEPENDENCIES += $(srcdir)/libgphoto2_port.sym
# libgphoto2_port_la_LDFLAGS      += -export-symbols $(srcdir)/libgphoto2_port.sym
endif

libgphoto2_port_la_LDFLAGS      += -version-info @LIBGPHOTO2_PORT_VERSION_INFO@

# The libtool docs describe these params, but they don't build.
#	"-dlopen" self \
#	"-dlopen" $(top_builddir)/serial/....la \
#	"-dlopen" $(top_builddir)/usb/....la

libgphoto2_port_la_CPPFLAGS     += $(LTDLINCL)
libgphoto2_port_la_LIBADD       += $(LIBLTDL)

libgphoto2_port_la_LIBADD       += $(INTLLIBS)

libgphoto2_port_la_SOURCES      += gphoto2-port-info-list.c
libgphoto2_port_la_SOURCES      += gphoto2-port-info.h
libgphoto2_port_la_SOURCES      += gphoto2-port-locking.c
libgphoto2_port_la_SOURCES      += gphoto2-port-log.c
libgphoto2_port_la_SOURCES      += gphoto2-port-version.c
libgphoto2_port_la_SOURCES      += gphoto2-port.c
libgphoto2_port_la_SOURCES      += gphoto2-port-portability.c
libgphoto2_port_la_SOURCES      += gphoto2-port-result.c

libgphoto2_port_la_DEPENDENCIES += $(top_srcdir)/gphoto2/gphoto2-port-locking.h
libgphoto2_port_la_DEPENDENCIES += $(top_srcdir)/gphoto2/gphoto2-port-version.h
libgphoto2_port_la_DEPENDENCIES += $(top_srcdir)/gphoto2/gphoto2-port-library.h