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:
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 # The first number represents libmajor, the second libminor.
27 # So version 0.17.1 will look like 17:1:0
28 LIB_BARRY_VERSION = @BARRY_MAJOR@:@BARRY_MINOR@:0
30 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, but $(top_builddir) is
32 DEFAULT_INCLUDES = -I$(top_builddir)
33 #INCLUDES = $(USB_LIBRARY_CFLAGS) $(OPENSSL_CFLAGS)
34 INCLUDES = $(USB_LIBRARY_CFLAGS)
35 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
36 AM_CFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
37 AM_CXXFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
40 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
41 #AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
42 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
43 #AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
44 AM_LDFLAGS += -fvisibility=hidden
46 include_barrydir = ${includedir}/barry@BARRY_MAJOR@/barry
49 ## Boost library usage - required for serialization support, but optional
51 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
52 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
56 # Heavy duty C++ warnings
57 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
58 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
60 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) $(LDDEBUG)
64 localedir = $(datadir)/locale
65 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
68 # libbarry - main USB protocol interface library
69 # libbarryalx - ALX library
70 # libbarrydp - '.debug' parser library
71 # libbarryjdwp - java debug server library
72 # libbarrysync - utility functions and classes for syncing and vformats
73 # libbarrybackup - utility classes for reading/writing Barry backup files
75 lib_LTLIBRARIES = libbarry.la libbarrydp.la libbarryjdwp.la
77 lib_LTLIBRARIES += libbarrysync.la
80 lib_LTLIBRARIES += libbarrybackup.la
83 lib_LTLIBRARIES += libbarryalx.la
86 include_barry_HEADERS = barry.h barrysync.h barrybackup.h barryalx.h \
169 noinst_HEADERS = cbarry.h \
188 usbwrap_libusb_1_0.h \
192 # Include the windows-only and android-only code files here too
193 EXTRA_DIST = convo.awk \
198 libbarry_la_SOURCES = dll.h \
199 builder.h builder.cc \
202 fifoargs.h fifoargs.cc \
204 bmp.h bmp-internal.h bmp.cc \
205 cod.h cod-internal.h cod.cc \
210 configfile.h configfile.cc \
219 protocol.h protostructs.h protocol.cc \
220 record.h recordtmpl.h record-internal.h record.cc \
221 r_recur_base.h r_recur_base-int.h r_recur_base.cc \
222 r_calendar.h r_calendar.cc \
223 r_calllog.h r_calllog.cc \
224 r_bookmark.h r_bookmark.cc \
226 r_contact.h r_contact.cc \
227 r_cstore.h r_cstore.cc \
228 r_hhagent.h r_hhagent.cc \
230 r_folder.h r_folder.cc \
232 r_message_base.h r_message_base.cc \
234 r_servicebook.h r_servicebook.cc \
237 r_timezone.h r_timezone.cc \
239 controller.h controller.cc \
241 m_mode_base.h m_mode_base.cc \
242 m_desktop.h m_desktop.cc \
243 m_raw_channel.h m_raw_channel.cc \
244 m_ipmodem.h m_ipmodem.cc \
245 m_serial.h m_serial.cc \
246 m_javaloader.h m_javaloader.cc \
247 m_jvmdebug.h m_jvmdebug.cc \
248 connector.h connector.cc \
249 version.h version.cc \
250 pppfilter.h pppfilter.cc \
254 # Now sort out USB files
256 include_barry_HEADERS += usbwrap.h
258 libbarry_la_SOURCES += usbwrap.cc
261 libbarry_la_SOURCES += usbwrap_libusb.cc
265 libbarry_la_SOURCES += usbwrap_libusb_1_0.cc
268 endif # USE_BARRY_SOCKETS
270 #libbarry_la_LIBADD = $(LTLIBOBJS) $(USB_LIBRARY_LIBS) $(OPENSSL_LIBS)
271 libbarry_la_LIBADD = $(LTLIBOBJS) $(USB_LIBRARY_LIBS) $(ZLIB_LIBS) @LTLIBICONV@ \
272 $(NETWORK_LIBRARY_LIBS)
273 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
275 libbarrydp_la_SOURCES = \
276 dp_parser.h dp_parser.cc \
277 dp_codinfo.h dp_codinfo.cc
278 libbarrydp_la_LIBADD = libbarry.la
279 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
281 libbarryjdwp_la_SOURCES = \
284 j_message.h j_message.cc \
285 j_server.h j_server.cc \
286 j_manager.h j_manager.cc
287 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(USB_LIBRARY_LIBS) $(NETWORK_LIBRARY_LIBS)
288 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
291 libbarrysync_la_SOURCES = \
292 vformat.h vformat.c \
296 vjournal.h vjournal.cc \
299 tzwrapper.h tzwrapper.cc
300 # if we set CFLAGS and CXXFLAGS ourselves, we need to include
301 # AM_*FLAGS as well... this only seems to matter for compile flags,
303 libbarrysync_la_CFLAGS = $(AM_CFLAGS) $(GLIB2_CFLAGS)
304 libbarrysync_la_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
305 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
306 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
310 libbarrybackup_la_SOURCES = \
311 tarfile.cc tarfile-ops-nt.cc \
314 libbarrybackup_la_CFLAGS = $(AM_CFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
315 libbarrybackup_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
316 libbarrybackup_la_LIBADD = libbarry.la $(LIBTAR_LIBS) $(LIBZ_LIBS)
317 libbarrybackup_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
321 libbarryalx_la_SOURCES = \
322 xmlparser.h xmlparser.cc \
324 a_codsection.h a_codsection.cc \
325 a_library.h a_library.cc \
326 a_application.h a_application.cc \
327 a_osloader.h a_osloader.cc \
328 a_alxparser.h a_alxparser.cc
329 libbarryalx_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
330 libbarryalx_la_LIBADD = libbarry.la $(LIBXMLXX_LIBS)
331 libbarryalx_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
335 ## bin_PROGRAMS += test-base64 test-data test-time
337 ## test_base64_SOURCES = base64.h base64.cc
338 ## test_data_SOURCES = data.h data.cc
339 ## test_time_SOURCES = time.h time.cc