Merge branch 'visibility'
[barry.git] / src / Makefile.am
blob1874f42b8f2c9ed325eb7c8fad75577c6a49e65e
2 # The following version numbers are:  current:revision:age
4 # See also: http://sources.redhat.com/autobook/autobook/autobook_91.html
6 # Current - number of the current interface of the library
7 # Revision - implementation number of most recent interface
8 # Age - number of previous additional interfaces supported by this library
10 # Libtool uses the following calculation for Linux:
12 #    major = current - age
13 #    suffix = major.age.revision
15 # Therefore a libtool version of 1.4.0 will translate to a filename of:
16 #    libbarry.so.1.0.4
18 # Other operating systems just use current.revision, most of the time,
19 # and age is only used to subtract from current.
21 # Therefore, if you are careful never to increment the major version
22 # unless there is an incompatible break, you can get away with a
23 # two digit version number, and leave age as 0, always.
25 # Only ever increment the first 2 numbers in this version:
26 LIB_BARRY_VERSION = 0:13:0
28 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, but $(top_builddir) is
29 # needed for config.h
30 DEFAULT_INCLUDES = -I$(top_builddir)
31 #INCLUDES = @PACKAGE_CXXFLAGS@ -I@LIBUSB_INC_PATH@
32 INCLUDES = $(LIBUSB_CFLAGS) $(OPENSSL_CFLAGS)
33 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
34 AM_CFLAGS = -Wall -fno-strict-aliasing -g
35 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
36 AM_LDFLAGS =
37 if WITH_GCCVISIBILITY
38 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
39 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
40 AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
41 endif
42 include_barrydir = ${includedir}/barry
45 ## Boost library usage - required for serialization support, but optional
47 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
48 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
49 ##BOOSTFLAG =
50 ##LDBOOST =
52 # Heavy duty C++ warnings
53 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
54 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
56 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
58 lib_LTLIBRARIES = libbarry.la
60 include_barry_HEADERS = barry.h \
61         dll.h \
62         builder.h \
63         common.h \
64         controller.h \
65         controllertmpl.h \
66         data.h \
67         error.h \
68         ldif.h \
69         parser.h \
70         probe.h \
71         protocol.h \
72         record.h \
73         r_calendar.h \
74         r_contact.h \
75         r_folder.h \
76         r_memo.h \
77         r_message.h \
78         r_pin_message.h \
79         r_saved_message.h \
80         r_servicebook.h \
81         r_task.h \
82         r_timezone.h \
83         socket.h \
84         time.h \
85         usbwrap.h \
86         version.h \
87         s11n-boost.h
90 libbarry_la_SOURCES = time.cc \
91         base64.cc base64.h \
92         parser.cc \
93         data.cc \
94         usbwrap.cc \
95         probe.cc \
96         common.cc \
97         error.cc \
98         ldif.cc \
99         socket.cc \
100         protocol.cc \
101         record.cc \
102         r_calendar.cc \
103         r_contact.cc \
104         r_folder.cc \
105         r_memo.cc \
106         r_message.cc \
107         r_pin_message.cc \
108         r_saved_message.cc \
109         r_servicebook.cc \
110         r_task.cc \
111         r_timezone.cc \
112         packet.cc packet.h \
113         controller.cc \
114         version.cc \
115         protostructs.h \
116         debug.h \
117         endian.h
118 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
119 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
121 noinst_HEADERS = cbarry.h \
122         record-internal.h \
123         strnlen.h
125 EXTRA_DIST = convo.awk \
126         Doxyfile \
127         legal.txt \
128         Makefile.orig
130 ##if DO_TEST
131 ##      bin_PROGRAMS += test-base64 test-data test-time
133 ##      test_base64_SOURCES = base64.h base64.cc
134 ##      test_data_SOURCES = data.h data.cc
135 ##      test_time_SOURCES = time.h time.cc
136 ##endif