lib: added DeviceBuilder class, which...
[barry.git] / src / Makefile.am
blobfce8d680cd79001fafc54fb364d3485b6dedd703
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 # 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
76 if WITH_SYNC
77 lib_LTLIBRARIES += libbarrysync.la
78 endif
79 if WITH_BACKUP
80 lib_LTLIBRARIES += libbarrybackup.la
81 endif
83 include_barry_HEADERS = barry.h barrysync.h barrybackup.h \
84         dll.h \
85         builder.h \
86         common.h \
87         configfile.h \
88         controller.h \
89         m_mode_base.h \
90         m_desktop.h \
91         m_raw_channel.h \
92         m_desktoptmpl.h \
93         m_ipmodem.h \
94         m_serial.h \
95         m_javaloader.h \
96         m_jvmdebug.h \
97         data.h \
98         error.h \
99         ldif.h \
100         log.h \
101         parser.h \
102         pin.h \
103         probe.h \
104         protocol.h \
105         record.h \
106         modem.h \
107         r_recur_base.h \
108         r_calendar.h \
109         r_calllog.h \
110         r_contact.h \
111         r_folder.h \
112         r_memo.h \
113         r_message_base.h \
114         r_message.h \
115         r_pin_message.h \
116         r_saved_message.h \
117         r_servicebook.h \
118         r_sms.h \
119         r_task.h \
120         r_timezone.h \
121         dataqueue.h \
122         router.h \
123         socket.h \
124         time.h \
125         threadwrap.h \
126         vsmartptr.h \
127         usbwrap.h \
128         version.h \
129         pppfilter.h \
130         sha1.h \
131         iconv.h \
132         cod.h \
133         bmp.h \
134         s11n-boost.h \
135         dp_codinfo.h \
136         j_manager.h \
137         j_server.h \
138         vformat.h \
139         vbase.h \
140         vcard.h \
141         vevent.h \
142         vjournal.h \
143         vtodo.h \
144         scoped_lock.h \
145         semaphore.h \
146         backup.h \
147         restore.h \
148         pipe.h \
149         tzwrapper.h
151 noinst_HEADERS = cbarry.h \
152         base64.h \
153         record-internal.h \
154         bmp-internal.h \
155         cod-internal.h \
156         packet.h \
157         protostructs.h \
158         debug.h \
159         endian.h \
160         strnlen.h \
161         platform.h \
162         dp_parser.h \
163         j_message.h \
164         j_jdwp.h \
165         tarfile.h \
166         clog.h
168 EXTRA_DIST = convo.awk \
169         legal.txt
171 libbarry_la_SOURCES = dll.h \
172         builder.h parser.h \
173         time.h time.cc \
174         base64.h base64.cc \
175         bmp.h bmp-internal.h bmp.cc \
176         cod.h cod-internal.h cod.cc \
177         data.h data.cc \
178         usbwrap.h usbwrap.cc \
179         pin.h pin.cc \
180         probe.h probe.cc \
181         common.h common.cc \
182         configfile.h configfile.cc \
183         error.h error.cc \
184         ldif.h ldif.cc \
185         log.h log.cc \
186         socket.cc \
187         router.cc \
188         dataqueue.cc \
189         threadwrap.cc \
190         protocol.h protostructs.h protocol.cc \
191         record.h record-internal.h record.cc \
192         r_recur_base.h r_recur_base.cc \
193         r_calendar.h r_calendar.cc \
194         r_calllog.h r_calllog.cc \
195         r_command.cc \
196         r_contact.h r_contact.cc \
197         r_dbdb.cc \
198         r_folder.h r_folder.cc \
199         r_memo.h r_memo.cc \
200         r_message_base.h r_message_base.cc \
201         r_recordstate.cc \
202         r_servicebook.h r_servicebook.cc \
203         r_sms.h r_sms.cc \
204         r_task.h r_task.cc \
205         r_timezone.h r_timezone.cc \
206         packet.h packet.cc \
207         controller.h controller.cc \
208         pipe.h pipe.cc \
209         m_mode_base.h m_mode_base.cc \
210         m_desktop.h m_desktop.cc \
211         m_raw_channel.h m_raw_channel.cc \
212         m_ipmodem.h m_ipmodem.cc \
213         m_serial.h m_serial.cc \
214         m_javaloader.h m_javaloader.cc \
215         m_jvmdebug.h m_jvmdebug.cc \
216         version.h version.cc \
217         pppfilter.h pppfilter.cc \
218         sha1.h sha1.cc \
219         iconv.h iconv.cc
220 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
221 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
222 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
224 libbarrydp_la_SOURCES = \
225         dp_parser.h dp_parser.cc \
226         dp_codinfo.h dp_codinfo.cc
227 libbarrydp_la_LIBADD = libbarry.la
228 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
230 libbarryjdwp_la_SOURCES = \
231         j_record.cc \
232         j_jdwp.h j_jdwp.cc \
233         j_message.h j_message.cc \
234         j_server.h j_server.cc \
235         j_manager.h j_manager.cc
236 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(LIBUSB_LIBS)
237 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
239 if WITH_SYNC
240 libbarrysync_la_SOURCES = \
241         vformat.h vformat.c \
242         vbase.h vbase.cc \
243         vcard.h vcard.cc \
244         vevent.h vevent.cc \
245         vjournal.h vjournal.cc \
246         vtodo.h vtodo.cc \
247         tzwrapper.h tzwrapper.cc
248 # if we set CFLAGS and CXXFLAGS ourselves, we need to include
249 # AM_*FLAGS as well... this only seems to matter for compile flags,
250 # not link flags
251 libbarrysync_la_CFLAGS = $(AM_CFLAGS) $(GLIB2_CFLAGS)
252 libbarrysync_la_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
253 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
254 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
255 endif
257 if WITH_BACKUP
258 libbarrybackup_la_SOURCES = \
259         tarfile.cc tarfile-ops-nt.cc \
260         backup.h backup.cc \
261         restore.h restore.cc
262 libbarrybackup_la_CFLAGS = $(AM_CFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
263 libbarrybackup_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
264 libbarrybackup_la_LIBADD = libbarry.la $(LIBTAR_LIBS) $(LIBZ_LIBS)
265 libbarrybackup_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
266 endif
268 ##if DO_TEST
269 ##      bin_PROGRAMS += test-base64 test-data test-time
271 ##      test_base64_SOURCES = base64.h base64.cc
272 ##      test_data_SOURCES = data.h data.cc
273 ##      test_time_SOURCES = time.h time.cc
274 ##endif