menu: added new Keywords tag to .desktop files
[barry.git] / src / Makefile.am
blob43f72e8ebf4159536890e57b4ab5468c9d424f46
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 = @BARRY_MAJOR@:@BARRY_MINOR@: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 = $(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__
38 AM_LDFLAGS =
39 if WITH_GCCVISIBILITY
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
45 endif
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
53 ##BOOSTFLAG =
54 ##LDBOOST =
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)
62 # To use gettext
63 datadir = @datadir@
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
76 if WITH_SYNC
77 lib_LTLIBRARIES += libbarrysync.la
78 endif
79 if WITH_BACKUP
80 lib_LTLIBRARIES += libbarrybackup.la
81 endif
82 if WITH_ALX
83 lib_LTLIBRARIES += libbarryalx.la
84 endif
86 include_barry_HEADERS = barry.h barrysync.h barrybackup.h barryalx.h \
87         dll.h \
88         builder.h \
89         common.h \
90         configfile.h \
91         controller.h \
92         xmlparser.h \
93         a_common.h \
94         a_codsection.h \
95         a_library.h \
96         a_application.h \
97         a_osloader.h \
98         a_alxparser.h \
99         m_mode_base.h \
100         m_desktop.h \
101         m_raw_channel.h \
102         m_desktoptmpl.h \
103         m_ipmodem.h \
104         m_serial.h \
105         m_javaloader.h \
106         m_jvmdebug.h \
107         data.h \
108         error.h \
109         ldif.h \
110         ldifio.h \
111         log.h \
112         parser.h \
113         pin.h \
114         probe.h \
115         protocol.h \
116         record.h \
117         recordtmpl.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_hhagent.h \
127         r_memo.h \
128         r_message_base.h \
129         r_message.h \
130         r_pin_message.h \
131         r_saved_message.h \
132         r_servicebook.h \
133         r_sms.h \
134         r_task.h \
135         r_timezone.h \
136         dataqueue.h \
137         router.h \
138         socket.h \
139         time.h \
140         threadwrap.h \
141         vsmartptr.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         connector.h \
165         trim.h \
166         fifoargs.h \
167         tzwrapper.h
169 noinst_HEADERS = cbarry.h \
170         i18n.h gettext.h \
171         base64.h \
172         record-internal.h \
173         r_recur_base-int.h \
174         bmp-internal.h \
175         cod-internal.h \
176         controllerpriv.h \
177         packet.h \
178         protostructs.h \
179         debug.h \
180         endian.h \
181         strnlen.h \
182         getpwuid.h \
183         platform.h \
184         dp_parser.h \
185         j_message.h \
186         j_jdwp.h \
187         tarfile.h \
188         usbwrap_libusb.h \
189         usbwrap_libusb_1_0.h \
190         ios_state.h \
191         clog.h
193 # Include the windows-only and android-only code files here too
194 EXTRA_DIST = convo.awk \
195         legal.txt \
196         iconvwin.cc \
197         getpwuidandroid.cc \
198         configfilewin32.cc
200 libbarry_la_SOURCES = dll.h \
201         builder.h builder.cc \
202         parser.h parser.cc \
203         time.h time.cc \
204         fifoargs.h fifoargs.cc \
205         base64.h base64.cc \
206         bmp.h bmp-internal.h bmp.cc \
207         cod.h cod-internal.h cod.cc \
208         data.h data.cc \
209         pin.h pin.cc \
210         probe.h probe.cc \
211         common.h common.cc \
212         configfile.h configfile.cc \
213         configfileunix.cc \
214         error.h error.cc \
215         ldif.h ldif.cc \
216         ldifio.h ldifio.cc \
217         log.h log.cc \
218         socket.cc \
219         router.cc \
220         dataqueue.cc \
221         threadwrap.cc \
222         protocol.h protostructs.h protocol.cc \
223         record.h recordtmpl.h record-internal.h record.cc \
224         r_recur_base.h r_recur_base-int.h r_recur_base.cc \
225         r_calendar.h r_calendar.cc \
226         r_calllog.h r_calllog.cc \
227         r_bookmark.h r_bookmark.cc \
228         r_command.cc \
229         r_contact.h r_contact.cc \
230         r_cstore.h r_cstore.cc \
231         r_hhagent.h r_hhagent.cc \
232         r_dbdb.cc \
233         r_folder.h r_folder.cc \
234         r_memo.h r_memo.cc \
235         r_message_base.h r_message_base.cc \
236         r_recordstate.cc \
237         r_servicebook.h r_servicebook.cc \
238         r_sms.h r_sms.cc \
239         r_task.h r_task.cc \
240         r_timezone.h r_timezone.cc \
241         packet.h packet.cc \
242         controller.h controller.cc \
243         pipe.h pipe.cc \
244         m_mode_base.h m_mode_base.cc \
245         m_desktop.h m_desktop.cc \
246         m_raw_channel.h m_raw_channel.cc \
247         m_ipmodem.h m_ipmodem.cc \
248         m_serial.h m_serial.cc \
249         m_javaloader.h m_javaloader.cc \
250         m_jvmdebug.h m_jvmdebug.cc \
251         connector.h connector.cc \
252         version.h version.cc \
253         pppfilter.h pppfilter.cc \
254         sha1.h sha1.cc \
255         iconv.h iconv.cc
257 # Now sort out USB files
258 if USE_BARRY_SOCKETS
259 include_barry_HEADERS += usbwrap.h
261 libbarry_la_SOURCES += usbwrap.cc
263 if USE_LIBUSB_0_1
264 libbarry_la_SOURCES += usbwrap_libusb.cc
265 endif
267 if USE_LIBUSB_1_0
268 libbarry_la_SOURCES += usbwrap_libusb_1_0.cc
269 endif
271 endif # USE_BARRY_SOCKETS
273 #libbarry_la_LIBADD = $(LTLIBOBJS) $(USB_LIBRARY_LIBS) $(OPENSSL_LIBS)
274 libbarry_la_LIBADD = $(LTLIBOBJS) $(USB_LIBRARY_LIBS) $(ZLIB_LIBS) @LTLIBICONV@ \
275          $(NETWORK_LIBRARY_LIBS)
276 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
278 libbarrydp_la_SOURCES = \
279         dp_parser.h dp_parser.cc \
280         dp_codinfo.h dp_codinfo.cc
281 libbarrydp_la_LIBADD = libbarry.la
282 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
284 libbarryjdwp_la_SOURCES = \
285         j_record.cc \
286         j_jdwp.h j_jdwp.cc \
287         j_message.h j_message.cc \
288         j_server.h j_server.cc \
289         j_manager.h j_manager.cc
290 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(USB_LIBRARY_LIBS) $(NETWORK_LIBRARY_LIBS)
291 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
293 if WITH_SYNC
294 libbarrysync_la_SOURCES = \
295         vformat.h vformat.c \
296         vbase.h vbase.cc \
297         vcard.h vcard.cc \
298         vevent.h vevent.cc \
299         vjournal.h vjournal.cc \
300         vtodo.h vtodo.cc \
301         mimeio.h mimeio.cc \
302         tzwrapper.h tzwrapper.cc
303 # if we set CFLAGS and CXXFLAGS ourselves, we need to include
304 # AM_*FLAGS as well... this only seems to matter for compile flags,
305 # not link flags
306 libbarrysync_la_CFLAGS = $(AM_CFLAGS) $(GLIB2_CFLAGS)
307 libbarrysync_la_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
308 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
309 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
310 endif
312 if WITH_BACKUP
313 libbarrybackup_la_SOURCES = \
314         tarfile.cc tarfile-ops-nt.cc \
315         backup.h backup.cc \
316         restore.h restore.cc
317 libbarrybackup_la_CFLAGS = $(AM_CFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
318 libbarrybackup_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBTAR_CFLAGS) $(LIBZ_CFLAGS)
319 libbarrybackup_la_LIBADD = libbarry.la $(LIBTAR_LIBS) $(LIBZ_LIBS)
320 libbarrybackup_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
321 endif
323 if WITH_ALX
324 libbarryalx_la_SOURCES = \
325         xmlparser.h xmlparser.cc \
326         a_common.h \
327         a_codsection.h a_codsection.cc \
328         a_library.h a_library.cc \
329         a_application.h a_application.cc \
330         a_osloader.h a_osloader.cc \
331         a_alxparser.h a_alxparser.cc
332 libbarryalx_la_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
333 libbarryalx_la_LIBADD = libbarry.la $(LIBXMLXX_LIBS)
334 libbarryalx_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
335 endif
337 ##if DO_TEST
338 ##      bin_PROGRAMS += test-base64 test-data test-time
340 ##      test_base64_SOURCES = base64.h base64.cc
341 ##      test_data_SOURCES = data.h data.cc
342 ##      test_time_SOURCES = time.h time.cc
343 ##endif