doc: added link to Nicolas Vivien's development blog
[barry.git] / src / Makefile.am
blob0135e8ecd9c1070e583e0ecb73e10bb21bf3c9be
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 # The first number represents libmajor, the second libminor.
27 # So version 0.17.1 will look like 17:1:0
28 LIB_BARRY_VERSION = 17:0:0
30 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, but $(top_builddir) is
31 # needed for config.h
32 DEFAULT_INCLUDES = -I$(top_builddir)
33 #INCLUDES = @PACKAGE_CXXFLAGS@ -I@LIBUSB_INC_PATH@
34 #INCLUDES = $(LIBUSB_CFLAGS) $(OPENSSL_CFLAGS)
35 INCLUDES = $(LIBUSB_CFLAGS)
36 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
37 AM_CFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
38 AM_CXXFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
39 AM_LDFLAGS =
40 if WITH_GCCVISIBILITY
41 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
42 #AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
43 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
44 #AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
45 AM_LDFLAGS += -fvisibility=hidden
46 endif
47 include_barrydir = ${includedir}/barry
50 ## Boost library usage - required for serialization support, but optional
52 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
53 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
54 ##BOOSTFLAG =
55 ##LDBOOST =
57 # Heavy duty C++ warnings
58 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
59 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
61 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
63 # To use gettext
64 datadir = @datadir@
65 localedir = $(datadir)/locale
66 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
69 # libbarry - main USB protocol interface library
70 # libbarryalx - ALX library
71 # libbarrydp - '.debug' parser library
72 # libbarryjdwp - java debug server library
73 # libbarrysync - utility functions and classes for syncing and vformats
74 # libbarrybackup - utility classes for reading/writing Barry backup files
76 lib_LTLIBRARIES = libbarry.la libbarrydp.la libbarryjdwp.la
77 if WITH_SYNC
78 lib_LTLIBRARIES += libbarrysync.la
79 endif
80 if WITH_BACKUP
81 lib_LTLIBRARIES += libbarrybackup.la
82 endif
83 if WITH_ALX
84 lib_LTLIBRARIES += libbarryalx.la
85 endif
87 include_barry_HEADERS = barry.h barrysync.h barrybackup.h barryalx.h \
88         dll.h \
89         builder.h \
90         common.h \
91         configfile.h \
92         controller.h \
93         xmlparser.h \
94         a_common.h \
95         a_codsection.h \
96         a_library.h \
97         a_application.h \
98         a_osloader.h \
99         a_alxparser.h \
100         m_mode_base.h \
101         m_desktop.h \
102         m_raw_channel.h \
103         m_desktoptmpl.h \
104         m_ipmodem.h \
105         m_serial.h \
106         m_javaloader.h \
107         m_jvmdebug.h \
108         data.h \
109         error.h \
110         ldif.h \
111         ldifio.h \
112         log.h \
113         parser.h \
114         pin.h \
115         probe.h \
116         protocol.h \
117         record.h \
118         modem.h \
119         r_recur_base.h \
120         r_calendar.h \
121         r_calllog.h \
122         r_bookmark.h \
123         r_contact.h \
124         r_cstore.h \
125         r_folder.h \
126         r_memo.h \
127         r_message_base.h \
128         r_message.h \
129         r_pin_message.h \
130         r_saved_message.h \
131         r_servicebook.h \
132         r_sms.h \
133         r_task.h \
134         r_timezone.h \
135         dataqueue.h \
136         router.h \
137         socket.h \
138         time.h \
139         threadwrap.h \
140         vsmartptr.h \
141         usbwrap.h \
142         version.h \
143         pppfilter.h \
144         sha1.h \
145         iconv.h \
146         cod.h \
147         bmp.h \
148         s11n-boost.h \
149         dp_codinfo.h \
150         j_manager.h \
151         j_server.h \
152         vformat.h \
153         vbase.h \
154         vcard.h \
155         vevent.h \
156         vjournal.h \
157         vtodo.h \
158         mimeio.h \
159         scoped_lock.h \
160         semaphore.h \
161         backup.h \
162         restore.h \
163         pipe.h \
164         tzwrapper.h
166 noinst_HEADERS = cbarry.h \
167         base64.h \
168         record-internal.h \
169         bmp-internal.h \
170         cod-internal.h \
171         packet.h \
172         protostructs.h \
173         debug.h \
174         endian.h \
175         strnlen.h \
176         platform.h \
177         dp_parser.h \
178         j_message.h \
179         j_jdwp.h \
180         tarfile.h \
181         clog.h
183 EXTRA_DIST = convo.awk \
184         legal.txt
186 libbarry_la_SOURCES = dll.h \
187         builder.h builder.cc \
188         parser.h parser.cc \
189         time.h time.cc \
190         base64.h base64.cc \
191         bmp.h bmp-internal.h bmp.cc \
192         cod.h cod-internal.h cod.cc \
193         data.h data.cc \
194         usbwrap.h usbwrap.cc \
195         pin.h pin.cc \
196         probe.h probe.cc \
197         common.h common.cc \
198         configfile.h configfile.cc \
199         error.h error.cc \
200         ldif.h ldif.cc \
201         ldifio.h ldifio.cc \
202         log.h log.cc \
203         socket.cc \
204         router.cc \
205         dataqueue.cc \
206         threadwrap.cc \
207         protocol.h protostructs.h protocol.cc \
208         record.h record-internal.h record.cc \
209         r_recur_base.h r_recur_base.cc \
210         r_calendar.h r_calendar.cc \
211         r_calllog.h r_calllog.cc \
212         r_bookmark.h r_bookmark.cc \
213         r_command.cc \
214         r_contact.h r_contact.cc \
215         r_cstore.h r_cstore.cc \
216         r_dbdb.cc \
217         r_folder.h r_folder.cc \
218         r_memo.h r_memo.cc \
219         r_message_base.h r_message_base.cc \
220         r_recordstate.cc \
221         r_servicebook.h r_servicebook.cc \
222         r_sms.h r_sms.cc \
223         r_task.h r_task.cc \
224         r_timezone.h r_timezone.cc \
225         packet.h packet.cc \
226         controller.h controller.cc \
227         pipe.h pipe.cc \
228         m_mode_base.h m_mode_base.cc \
229         m_desktop.h m_desktop.cc \
230         m_raw_channel.h m_raw_channel.cc \
231         m_ipmodem.h m_ipmodem.cc \
232         m_serial.h m_serial.cc \
233         m_javaloader.h m_javaloader.cc \
234         m_jvmdebug.h m_jvmdebug.cc \
235         version.h version.cc \
236         pppfilter.h pppfilter.cc \
237         sha1.h sha1.cc \
238         iconv.h iconv.cc
239 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
240 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
241 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
243 libbarrydp_la_SOURCES = \
244         dp_parser.h dp_parser.cc \
245         dp_codinfo.h dp_codinfo.cc
246 libbarrydp_la_LIBADD = libbarry.la
247 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
249 libbarryjdwp_la_SOURCES = \
250         j_record.cc \
251         j_jdwp.h j_jdwp.cc \
252         j_message.h j_message.cc \
253         j_server.h j_server.cc \
254         j_manager.h j_manager.cc
255 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(LIBUSB_LIBS)
256 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
258 if WITH_SYNC
259 libbarrysync_la_SOURCES = \
260         vformat.h vformat.c \
261         vbase.h vbase.cc \
262         vcard.h vcard.cc \
263         vevent.h vevent.cc \
264         vjournal.h vjournal.cc \
265         vtodo.h vtodo.cc \
266         mimeio.h mimeio.cc \
267         tzwrapper.h tzwrapper.cc
268 # if we set CFLAGS and CXXFLAGS ourselves, we need to include
269 # AM_*FLAGS as well... this only seems to matter for compile flags,
270 # not link flags
271 libbarrysync_la_CFLAGS = $(AM_CFLAGS) $(GLIB2_CFLAGS)
272 libbarrysync_la_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
273 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
274 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
275 endif
277 if WITH_BACKUP
278 libbarrybackup_la_SOURCES = \
279         tarfile.cc tarfile-ops-nt.cc \
280         backup.h backup.cc \
281         restore.h restore.cc
282 libbarrybackup_la_CFLAGS = $(AM_CFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
283 libbarrybackup_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
284 libbarrybackup_la_LIBADD = libbarry.la $(LIBTAR_LIBS) $(LIBZ_LIBS)
285 libbarrybackup_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
286 endif
288 if WITH_ALX
289 libbarryalx_la_SOURCES = \
290         xmlparser.h xmlparser.cc \
291         a_common.h \
292         a_codsection.h a_codsection.cc \
293         a_library.h a_library.cc \
294         a_application.h a_application.cc \
295         a_osloader.h a_osloader.cc \
296         a_alxparser.h a_alxparser.cc
297 libbarryalx_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
298 libbarryalx_la_LIBADD = $(LIBXMLXX_LIBS)
299 libbarryalx_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
300 endif
302 ##if DO_TEST
303 ##      bin_PROGRAMS += test-base64 test-data test-time
305 ##      test_base64_SOURCES = base64.h base64.cc
306 ##      test_data_SOURCES = data.h data.cc
307 ##      test_time_SOURCES = time.h time.cc
308 ##endif