i18n work in progress... desperately needs some housecleaning.
[barry.git] / src / Makefile.am
blob512f20b00f4c5c8130e256095136e71c806cdb49
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 LIB_BARRY_VERSION = 0:13:0
28 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, but $(top_builddir) is
29 # needed for config.h
30 DEFAULT_INCLUDES = -I$(top_builddir)
31 #INCLUDES = @PACKAGE_CXXFLAGS@ -I@LIBUSB_INC_PATH@
32 INCLUDES = $(LIBUSB_CFLAGS) $(OPENSSL_CFLAGS)
33 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
34 AM_CFLAGS = -Wall -fno-strict-aliasing -g
35 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
36 AM_LDFLAGS =
37 if WITH_GCCVISIBILITY
38 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
39 #AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
40 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
41 #AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
42 AM_LDFLAGS += -fvisibility=hidden
43 endif
44 include_barrydir = ${includedir}/barry
47 ## Boost library usage - required for serialization support, but optional
49 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
50 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
51 ##BOOSTFLAG =
52 ##LDBOOST =
54 # Heavy duty C++ warnings
55 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
56 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
58 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
60 lib_LTLIBRARIES = libbarry.la
62 include_barry_HEADERS = barry.h \
63         dll.h \
64         builder.h \
65         common.h \
66         controller.h \
67         m_desktop.h \
68         m_desktoptmpl.h \
69         m_ipmodem.h \
70         m_serial.h \
71         data.h \
72         error.h \
73         ldif.h \
74         log.h \
75         parser.h \
76         probe.h \
77         protocol.h \
78         record.h \
79         modem.h \
80         r_calendar.h \
81         r_contact.h \
82         r_folder.h \
83         r_memo.h \
84         r_message.h \
85         r_pin_message.h \
86         r_saved_message.h \
87         r_servicebook.h \
88         r_task.h \
89         r_timezone.h \
90         dataqueue.h \
91         router.h \
92         socket.h \
93         time.h \
94         usbwrap.h \
95         version.h \
96         pppfilter.h \
97         s11n-boost.h
100 libbarry_la_SOURCES = time.cc \
101         base64.cc base64.h \
102         parser.cc \
103         data.cc \
104         usbwrap.cc \
105         probe.cc \
106         common.cc \
107         error.cc \
108         ldif.cc \
109         log.cc \
110         socket.cc \
111         router.cc \
112         dataqueue.cc \
113         protocol.cc \
114         record.cc \
115         r_calendar.cc \
116         r_contact.cc \
117         r_folder.cc \
118         r_memo.cc \
119         r_message.cc \
120         r_pin_message.cc \
121         r_saved_message.cc \
122         r_servicebook.cc \
123         r_task.cc \
124         r_timezone.cc \
125         packet.cc packet.h \
126         controller.cc \
127         m_desktop.cc \
128         m_ipmodem.cc \
129         m_serial.cc \
130         version.cc \
131         pppfilter.cc \
132         protostructs.h \
133         debug.h \
134         endian.h
135 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
136 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
138 noinst_HEADERS = cbarry.h \
139         record-internal.h \
140         strnlen.h
142 EXTRA_DIST = convo.awk \
143         Doxyfile \
144         legal.txt \
145         Makefile.orig
147 ##if DO_TEST
148 ##      bin_PROGRAMS += test-base64 test-data test-time
150 ##      test_base64_SOURCES = base64.h base64.cc
151 ##      test_data_SOURCES = data.h data.cc
152 ##      test_time_SOURCES = time.h time.cc
153 ##endif