Applied Ryan Li's PPP chat script for China Mobile
[barry.git] / src / Makefile.am
blob1cc2ed5e5632afecc822ff4cbcf1996de9bc4701
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:15: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 INCLUDES = $(LIBUSB_CFLAGS)
34 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
35 AM_CFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
36 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
37 AM_LDFLAGS =
38 if WITH_GCCVISIBILITY
39 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
40 #AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
41 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
42 #AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
43 AM_LDFLAGS += -fvisibility=hidden
44 endif
45 include_barrydir = ${includedir}/barry
48 ## Boost library usage - required for serialization support, but optional
50 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
51 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
52 ##BOOSTFLAG =
53 ##LDBOOST =
55 # Heavy duty C++ warnings
56 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
57 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
59 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
61 lib_LTLIBRARIES = libbarry.la
63 include_barry_HEADERS = barry.h \
64         dll.h \
65         builder.h \
66         common.h \
67         controller.h \
68         m_mode_base.h \
69         m_desktop.h \
70         m_desktoptmpl.h \
71         m_ipmodem.h \
72         m_serial.h \
73         m_javaloader.h \
74         data.h \
75         error.h \
76         ldif.h \
77         log.h \
78         parser.h \
79         probe.h \
80         protocol.h \
81         record.h \
82         modem.h \
83         r_recur_base.h \
84         r_calendar.h \
85         r_calllog.h \
86         r_contact.h \
87         r_folder.h \
88         r_memo.h \
89         r_message_base.h \
90         r_message.h \
91         r_pin_message.h \
92         r_saved_message.h \
93         r_servicebook.h \
94         r_sms.h \
95         r_task.h \
96         r_timezone.h \
97         dataqueue.h \
98         router.h \
99         socket.h \
100         time.h \
101         usbwrap.h \
102         version.h \
103         pppfilter.h \
104         sha1.h \
105         iconv.h \
106         cod.h \
107         bmp.h \
108         s11n-boost.h
110 noinst_HEADERS = cbarry.h \
111         base64.h \
112         record-internal.h \
113         bmp-internal.h \
114         cod-internal.h \
115         packet.h \
116         scoped_lock.h \
117         protostructs.h \
118         debug.h \
119         endian.h \
120         strnlen.h
122 EXTRA_DIST = convo.awk \
123         legal.txt
125 libbarry_la_SOURCES = time.cc \
126         base64.cc \
127         bmp.cc \
128         cod.cc \
129         data.cc \
130         usbwrap.cc \
131         probe.cc \
132         common.cc \
133         error.cc \
134         ldif.cc \
135         log.cc \
136         socket.cc \
137         router.cc \
138         dataqueue.cc \
139         protocol.cc \
140         record.cc \
141         r_recur_base.cc \
142         r_calendar.cc \
143         r_calllog.cc \
144         r_contact.cc \
145         r_folder.cc \
146         r_memo.cc \
147         r_message_base.cc \
148         r_servicebook.cc \
149         r_sms.cc \
150         r_task.cc \
151         r_timezone.cc \
152         packet.cc \
153         controller.cc \
154         m_mode_base.cc \
155         m_desktop.cc \
156         m_ipmodem.cc \
157         m_serial.cc \
158         m_javaloader.cc \
159         version.cc \
160         pppfilter.cc \
161         sha1.cc \
162         iconv.cc
163 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
164 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
165 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
167 ##if DO_TEST
168 ##      bin_PROGRAMS += test-base64 test-data test-time
170 ##      test_base64_SOURCES = base64.h base64.cc
171 ##      test_data_SOURCES = data.h data.cc
172 ##      test_time_SOURCES = time.h time.cc
173 ##endif