summaryrefslogtreecommitdiff
path: root/libgphoto2/Makefile.am
blob: 705413f88e80147b188dc83147973c98442329de (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
lib_LTLIBRARIES = libgphoto2.la

# 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
#    gpi_* are for libgphoto2/camlib internal use only
#          NEVER USE gpi_* in frontends!
#    gp_* gphoto2 API, used in 
#         - frontends
#           BE AWARE that NOT ALL gp_* FUNCTIONS ARE CONSIDERED PUBLIC.
#
# Yes, this is messy, but we are going to clean this up.

libgphoto2_la_CPPFLAGS =				\
	-I$(top_srcdir) -I$(top_builddir)		\
	-I$(top_srcdir)/libgphoto2_port -I$(top_builddir)/libgphoto2_port		\
	$(AM_CPPFLAGS) $(CPPFLAGS)			\
	$(LTDLINCL)					\
	$(LIBEXIF_CFLAGS)

libgphoto2_la_LDFLAGS =	\
	-no-undefined	\
	-export-symbols $(srcdir)/libgphoto2.sym \
	-version-info @LIBGPHOTO2_VERSION_INFO@

libgphoto2_la_SOURCES = 	\
	gphoto2-abilities-list.c\
	ahd_bayer.c 		\
	bayer.c bayer.h		\
	gphoto2-camera.c	\
	gphoto2-context.c	\
	exif.c exif.h		\
	gphoto2-file.c		\
	gphoto2-filesys.c	\
	gamma.c gamma.h		\
	jpeg.c jpeg.h		\
	gphoto2-list.c		\
	gphoto2-result.c	\
	gphoto2-version.c	\
	gphoto2-setting.c	\
	gphoto2-widget.c

libgphoto2_la_LIBADD =					\
	$(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \
	$(LIBLTDL)					\
	$(LIBEXIF_LIBS)					\
	-lm $(INTLLIBS)
# The libtool docs describe these params, but they don't build.
#	"-dlopen" self \
#	"-dlopen" $(top_builddir)/camlibs/canon/....la \
#	"-dlopen" $(top_builddir)/camlibs/ptp2/....la

libgphoto2_la_DEPENDENCIES = \
	$(top_srcdir)/gphoto2/gphoto2-version.h \
	$(srcdir)/libgphoto2.sym

EXTRA_DIST = gphoto2-library.c libgphoto2.sym

DISTCLEANFILES = _stdint.h