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