debian: bumped Standards-Version to 3.9.3
[barry/progweb.git] / tools / Makefile.am
blob8eacfbae6ee4d52d54c2a00fd24aa0e16a7211f2
1 EXTRA_DIST =
3 #DEFAULT_INCLUDES =
4 INCLUDES = $(USB_LIBRARY_CFLAGS)
5 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
6 AM_CXXFLAGS = -Wall -g
8 # To use gettext
9 datadir = @datadir@
10 localedir = $(datadir)/locale
11 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
13 noinst_HEADERS = \
14         i18n.h \
15         gettext.h \
16         mimedump.h \
17         brecsum.h \
18         util.h \
19         boostwrap.h \
20         barrygetopt.h \
21         platform.h
23 noinst_PROGRAMS = \
24         btranslate \
25         bktrans \
26         brimtrans
28 noinst_LIBRARIES = \
29         libutil.a \
30         libboostwrap.a
32 bin_PROGRAMS = \
33         btool \
34         bidentify \
35         bjavaloader \
36         brawchannel \
37         bjvmdebug \
38         bdptest \
39         bjdwp \
40         upldif \
41         brecsum
42 if WITH_BOOST
43 bin_PROGRAMS += bs11nread
44 endif
45 if WITH_FUSE
46 bin_PROGRAMS += bfuse
47 endif
48 if WITH_SDL
49 bin_PROGRAMS += bwatch
50 endif
51 if WITH_BACKUP
52 bin_PROGRAMS += btardump btarcmp
53 endif
54 if WITH_ALX
55 bin_PROGRAMS += balxparse
56 endif
57 if WITH_BACKUP
58 if WITH_SYNC
59 bin_PROGRAMS += bio
60 endif
61 endif
63 sbin_PROGRAMS = \
64         bcharge \
65         breset \
66         pppob
68 libutil_a_SOURCES = util.cc
69 libutil_a_CXXFLAGS = $(AM_CXXFLAGS)
70 if WITH_SYNC
71 libutil_a_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS)
72 endif
74 libboostwrap_a_SOURCES = boostwrap.cc
75 libboostwrap_a_CXXFLAGS = $(AM_CXXFLAGS)
76 if WITH_BOOST
77 libboostwrap_a_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
78 endif
80 btool_SOURCES = btool.cc
81 btool_LDADD = ../src/libbarry.la libutil.a libboostwrap.a $(USB_LIBRARY_LIBS) @BOOST_LDADD@ $(LTLIBINTL) $(LTLIBICONV)
82 if WITH_SYNC
83 btool_LDADD += ../src/libbarrysync.la $(GLIB2_LIBS)
84 endif
85 if WITH_BACKUP
86 btool_LDADD += ../src/libbarrybackup.la
87 endif
88 btool_CXXFLAGS = $(AM_CXXFLAGS)
89 if WITH_BOOST
90 btool_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
91 endif
92 if WITH_SYNC
93 btool_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS)
94 endif
95 if WITH_BACKUP
96 btool_CXXFLAGS += -D__BARRY_BACKUP_MODE__
97 endif
98 btool_LDFLAGS = @BOOST_LIB_PATH@
100 if WITH_BOOST
101 bs11nread_SOURCES = bs11nread.cc
102 bs11nread_LDADD = ../src/libbarry.la libutil.a libboostwrap.a $(USB_LIBRARY_LIBS) @BOOST_LDADD@ $(LTLIBINTL)
103 bs11nread_CXXFLAGS = -D_REENTRANT @BOOST_INC_PATH@ $(AM_CXXFLAGS)
104 bs11nread_LDFLAGS = @BOOST_LIB_PATH@
105 endif
107 bidentify_SOURCES = bidentify.cc
108 bidentify_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
110 bjavaloader_SOURCES = bjavaloader.cc
111 bjavaloader_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
113 brawchannel_SOURCES = brawchannel.cc
114 brawchannel_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
116 bjvmdebug_SOURCES = bjvmdebug.cc
117 bjvmdebug_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
119 bdptest_SOURCES = bdptest.cc
120 bdptest_LDADD = ../src/libbarry.la ../src/libbarrydp.la $(LTLIBINTL)
122 bjdwp_SOURCES = bjdwp.cc
123 bjdwp_LDADD = ../src/libbarry.la \
124         ../src/libbarrydp.la \
125         ../src/libbarryjdwp.la \
126         $(LTLIBINTL)
128 upldif_SOURCES = upldif.cc
129 upldif_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
131 btranslate_SOURCES = btranslate.cc
132 btranslate_LDADD = $(LTLIBINTL)
134 bktrans_SOURCES = bktrans.cc
135 bktrans_LDADD = ../src/libbarry.la $(LTLIBINTL)
137 if USE_LIBUSB_0_1
138 bcharge_SOURCES = bcharge.cc
139 bcharge_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
141 breset_SOURCES = breset.cc
142 breset_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
143 endif
145 if USE_LIBUSB_1_0
146 bcharge_SOURCES = bcharge_libusb_1_0.cc
147 bcharge_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
149 breset_SOURCES = breset_libusb_1_0.cc
150 breset_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
151 endif
153 pppob_SOURCES = pppob.cc
154 pppob_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
156 brecsum_SOURCES = brecsum.cc
157 brecsum_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) $(LTLIBINTL)
159 brimtrans_SOURCES = brimtrans.cc
160 brimtrans_LDADD = $(LTLIBINTL)
162 if WITH_FUSE
163 bfuse_SOURCES = bfuse.cc
164 bfuse_CXXFLAGS = $(FUSE_CFLAGS)
165 bfuse_LDADD = ../src/libbarry.la $(FUSE_LIBS) $(LTLIBINTL)
166 endif
168 if WITH_SDL
169 bwatch_SOURCES = bwatch.cc
170 bwatch_CXXFLAGS = $(SDL_FLAGS)
171 bwatch_LDADD = ../src/libbarry.la $(SDL_LIBS) $(LTLIBINTL)
172 endif
174 if WITH_BACKUP
175 btardump_SOURCES = btardump.cc
176 btardump_CXXFLAGS = $(AM_CXXFLAGS)
177 #if WITH_BOOST
178 #btardump_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
179 #endif
180 if WITH_SYNC
181 btardump_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS)
182 endif
183 btardump_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) \
184         ../src/libbarrybackup.la $(LTLIBINTL)
185 if WITH_SYNC
186 btardump_LDADD += ../src/libbarrysync.la $(GLIB2_LIBS)
187 endif
188 endif
190 if WITH_BACKUP
191 btarcmp_SOURCES = btarcmp.cc
192 btarcmp_CXXFLAGS = $(AM_CXXFLAGS)
193 btarcmp_LDADD = ../src/libbarry.la ../src/libbarrybackup.la libutil.a \
194                         $(USB_LIBRARY_LIBS) $(LTLIBINTL)
195 if WITH_SYNC
196 btarcmp_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS)
197 endif
198 endif
200 if WITH_ALX
201 balxparse_SOURCES = balxparse.cc
202 balxparse_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
203 balxparse_LDADD = ../src/libbarry.la ../src/libbarryalx.la $(LTLIBINTL)
204 endif
206 if WITH_BACKUP
207 if WITH_SYNC
208 bio_SOURCES = bio.cc
209 bio_CXXFLAGS = -D__BARRY_SYNC_MODE__ $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
210 if WITH_BOOST
211 bio_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
212 endif
213 bio_LDADD = ../src/libbarry.la \
214         ../src/libbarrysync.la $(GLIB2_LIBS) \
215         ../src/libbarrybackup.la \
216         libutil.a \
217         libboostwrap.a \
218         $(USB_LIBRARY_LIBS) @BOOST_LDADD@ \
219         $(LTLIBINTL) $(LTLIBICONV)
220 bio_LDFLAGS = @BOOST_LIB_PATH@
221 endif
222 endif