lib: show offset and rectype in HexDumpParser
[barry.git] / src / Makefile.am
blob03109590459cc5c72693bfd887d57340ed068692
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         log.h \
112         parser.h \
113         pin.h \
114         probe.h \
115         protocol.h \
116         record.h \
117         modem.h \
118         r_recur_base.h \
119         r_calendar.h \
120         r_calllog.h \
121         r_bookmark.h \
122         r_contact.h \
123         r_folder.h \
124         r_memo.h \
125         r_message_base.h \
126         r_message.h \
127         r_pin_message.h \
128         r_saved_message.h \
129         r_servicebook.h \
130         r_sms.h \
131         r_task.h \
132         r_timezone.h \
133         dataqueue.h \
134         router.h \
135         socket.h \
136         time.h \
137         threadwrap.h \
138         vsmartptr.h \
139         usbwrap.h \
140         version.h \
141         pppfilter.h \
142         sha1.h \
143         iconv.h \
144         cod.h \
145         bmp.h \
146         s11n-boost.h \
147         dp_codinfo.h \
148         j_manager.h \
149         j_server.h \
150         vformat.h \
151         vbase.h \
152         vcard.h \
153         vevent.h \
154         vjournal.h \
155         vtodo.h \
156         scoped_lock.h \
157         semaphore.h \
158         backup.h \
159         restore.h \
160         pipe.h \
161         tzwrapper.h
163 noinst_HEADERS = cbarry.h \
164         base64.h \
165         record-internal.h \
166         bmp-internal.h \
167         cod-internal.h \
168         packet.h \
169         protostructs.h \
170         debug.h \
171         endian.h \
172         strnlen.h \
173         platform.h \
174         dp_parser.h \
175         j_message.h \
176         j_jdwp.h \
177         tarfile.h \
178         clog.h
180 EXTRA_DIST = convo.awk \
181         legal.txt
183 libbarry_la_SOURCES = dll.h \
184         builder.h builder.cc \
185         parser.h parser.cc \
186         time.h time.cc \
187         base64.h base64.cc \
188         bmp.h bmp-internal.h bmp.cc \
189         cod.h cod-internal.h cod.cc \
190         data.h data.cc \
191         usbwrap.h usbwrap.cc \
192         pin.h pin.cc \
193         probe.h probe.cc \
194         common.h common.cc \
195         configfile.h configfile.cc \
196         error.h error.cc \
197         ldif.h ldif.cc \
198         log.h log.cc \
199         socket.cc \
200         router.cc \
201         dataqueue.cc \
202         threadwrap.cc \
203         protocol.h protostructs.h protocol.cc \
204         record.h record-internal.h record.cc \
205         r_recur_base.h r_recur_base.cc \
206         r_calendar.h r_calendar.cc \
207         r_calllog.h r_calllog.cc \
208         r_bookmark.h r_bookmark.cc \
209         r_command.cc \
210         r_contact.h r_contact.cc \
211         r_dbdb.cc \
212         r_folder.h r_folder.cc \
213         r_memo.h r_memo.cc \
214         r_message_base.h r_message_base.cc \
215         r_recordstate.cc \
216         r_servicebook.h r_servicebook.cc \
217         r_sms.h r_sms.cc \
218         r_task.h r_task.cc \
219         r_timezone.h r_timezone.cc \
220         packet.h packet.cc \
221         controller.h controller.cc \
222         pipe.h pipe.cc \
223         m_mode_base.h m_mode_base.cc \
224         m_desktop.h m_desktop.cc \
225         m_raw_channel.h m_raw_channel.cc \
226         m_ipmodem.h m_ipmodem.cc \
227         m_serial.h m_serial.cc \
228         m_javaloader.h m_javaloader.cc \
229         m_jvmdebug.h m_jvmdebug.cc \
230         version.h version.cc \
231         pppfilter.h pppfilter.cc \
232         sha1.h sha1.cc \
233         iconv.h iconv.cc
234 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
235 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
236 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
238 libbarrydp_la_SOURCES = \
239         dp_parser.h dp_parser.cc \
240         dp_codinfo.h dp_codinfo.cc
241 libbarrydp_la_LIBADD = libbarry.la
242 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
244 libbarryjdwp_la_SOURCES = \
245         j_record.cc \
246         j_jdwp.h j_jdwp.cc \
247         j_message.h j_message.cc \
248         j_server.h j_server.cc \
249         j_manager.h j_manager.cc
250 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(LIBUSB_LIBS)
251 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
253 if WITH_SYNC
254 libbarrysync_la_SOURCES = \
255         vformat.h vformat.c \
256         vbase.h vbase.cc \
257         vcard.h vcard.cc \
258         vevent.h vevent.cc \
259         vjournal.h vjournal.cc \
260         vtodo.h vtodo.cc \
261         tzwrapper.h tzwrapper.cc
262 # if we set CFLAGS and CXXFLAGS ourselves, we need to include
263 # AM_*FLAGS as well... this only seems to matter for compile flags,
264 # not link flags
265 libbarrysync_la_CFLAGS = $(AM_CFLAGS) $(GLIB2_CFLAGS)
266 libbarrysync_la_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
267 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
268 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
269 endif
271 if WITH_BACKUP
272 libbarrybackup_la_SOURCES = \
273         tarfile.cc tarfile-ops-nt.cc \
274         backup.h backup.cc \
275         restore.h restore.cc
276 libbarrybackup_la_CFLAGS = $(AM_CFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
277 libbarrybackup_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
278 libbarrybackup_la_LIBADD = libbarry.la $(LIBTAR_LIBS) $(LIBZ_LIBS)
279 libbarrybackup_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
280 endif
282 if WITH_ALX
283 libbarryalx_la_SOURCES = \
284         xmlparser.h xmlparser.cc \
285         a_common.h \
286         a_codsection.h a_codsection.cc \
287         a_library.h a_library.cc \
288         a_application.h a_application.cc \
289         a_osloader.h a_osloader.cc \
290         a_alxparser.h a_alxparser.cc
291 libbarryalx_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
292 libbarryalx_la_LIBADD = $(LIBXMLXX_LIBS)
293 libbarryalx_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
294 endif
296 ##if DO_TEST
297 ##      bin_PROGRAMS += test-base64 test-data test-time
299 ##      test_base64_SOURCES = base64.h base64.cc
300 ##      test_data_SOURCES = data.h data.cc
301 ##      test_time_SOURCES = time.h time.cc
302 ##endif