]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
Use external crypto libraries
[cygwin-apps/setup.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id$
4 #
5 # Copyright (c) 2000, Red Hat, Inc.
6 # Copyright (c) 2002, Robert Collins
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # A copy of the GNU General Public License can be found at
14 # http://www.gnu.org/
15 #
16 # Written by Christopher Faylor <cgf@redhat.com>
17 # and Robert Collins <rbtcollins@hotmail.com>
18 #
19 # Makefile for Cygwin installer
20
21 INST_SUBDIRS:=@subdirs@
22 DIST_SUBDIRS:=${INST_SUBDIRS} tests
23 SUBDIRS:=tests
24
25 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
27 # We would like to use -Winline for C++ as well, but some STL code triggers
28 # this warning. (Bug verified present in gcc-3.3)
29 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
30 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
31 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
32 -Wcast-align -Wwrite-strings
33 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
34 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
35 -Wstrict-prototypes -Wmissing-prototypes
36 AM_YFLAGS = -d
37 AM_LFLAGS = -8
38 WINDRES = @WINDRES@
39 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
40
41 noinst_PROGRAMS = setup @INILINT@
42
43 EXTRA_PROGRAMS = inilint
44 ## noinst_PROGRAMS +=inilint
45
46 EXTRA_DIST = \
47 CHANGES \
48 CONTRIBUTORS \
49 COPYING \
50 bootstrap.sh \
51 check-na.bmp \
52 check-no.bmp \
53 check-yes.bmp \
54 choose-rtarrow.bmp \
55 choose-spin.bmp \
56 cygwin.ico \
57 doconfigure \
58 libmd5-rfc/README \
59 libmd5-rfc/md5main.c \
60 setup.exe.manifest \
61 tree-minus.bmp \
62 tree-plus.bmp
63
64 # iniparse.h is generated from iniparse.yy via bison -d, so it needs to be
65 # included here for proper tracking (but not iniparse.cc, since automake
66 # knows about that already)
67 BUILT_SOURCES = \
68 setup_version.c \
69 iniparse.h \
70 ${INST_SUBDIRS}
71
72 CLEANFILES = setup_version.c
73
74 if MINGWTARGET
75 inilint_extras = \
76 autoload.c \
77 mklink2.cc
78 else
79 inilint_extras =
80 endif
81
82 inilint_LDADD = \
83 libinilex.a libgetopt++/libgetopt++.la
84 inilint_SOURCES = \
85 filemanip.cc \
86 filemanip.h \
87 find.cc \
88 find.h \
89 FindVisitor.cc \
90 FindVisitor.h \
91 LogSingleton.cc \
92 LogSingleton.h \
93 IniDBBuilder.h \
94 inilintmain.cc \
95 iniparse.yy \
96 IniParseFeedback.cc \
97 IniParseFeedback.h \
98 io_stream.h \
99 io_stream.cc \
100 io_stream_file.h \
101 io_stream_file.cc \
102 IOStreamProvider.h \
103 mkdir.cc \
104 mkdir.h \
105 PackageSpecification.cc \
106 PackageSpecification.h \
107 PackageTrust.h \
108 csu_util/rfc1738.cc \
109 csu_util/rfc1738.h \
110 String++.cc \
111 String++.h \
112 $(inilint_extras)
113
114 # workaround to allow omitting -Werror on inilex.cc.
115 noinst_LIBRARIES = libinilex.a
116 libinilex_a_SOURCES = inilex.ll
117 libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
118
119 setup_LDADD = \
120 libinilex.a \
121 -Linst/lib -lgetopt++ -lgcrypt -lgpg-error \
122 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
123 setup_LDFLAGS = -mwindows -Wl,-static -static-libtool-libs
124 setup_SOURCES = \
125 AntiVirus.cc \
126 AntiVirus.h \
127 archive.cc \
128 archive.h \
129 archive_tar.cc \
130 archive_tar.h \
131 archive_tar_file.cc \
132 autoload.c \
133 choose.cc \
134 choose.h \
135 compress.cc \
136 compress.h \
137 compress_bz.cc \
138 compress_bz.h \
139 compress_gz.cc \
140 compress_gz.h \
141 compress_xz.cc \
142 compress_xz.h \
143 ConnectionSetting.cc \
144 ConnectionSetting.h \
145 ControlAdjuster.cc \
146 ControlAdjuster.h \
147 crypto.cc \
148 crypto.h \
149 cyg-pubkey.h \
150 cygpackage.cc \
151 cygpackage.h \
152 desktop.cc \
153 desktop.h \
154 dialog.cc \
155 dialog.h \
156 diskfull.cc \
157 diskfull.h \
158 download.cc \
159 download.h \
160 Exception.cc \
161 Exception.h \
162 find.cc \
163 find.h \
164 FindVisitor.cc \
165 FindVisitor.h \
166 filemanip.cc \
167 filemanip.h \
168 fromcwd.cc \
169 Generic.h \
170 geturl.cc \
171 geturl.h \
172 gpg-packet.cc \
173 gpg-packet.h \
174 ini.cc \
175 ini.h \
176 IniDBBuilder.h \
177 IniDBBuilderPackage.cc \
178 IniDBBuilderPackage.h \
179 iniparse.yy \
180 IniParseFeedback.cc \
181 IniParseFeedback.h \
182 IniParseFindVisitor.cc \
183 IniParseFindVisitor.h \
184 install.cc \
185 io_stream.cc \
186 io_stream.h \
187 io_stream_cygfile.cc \
188 io_stream_cygfile.h \
189 io_stream_file.cc \
190 io_stream_file.h \
191 io_stream_memory.cc \
192 io_stream_memory.h \
193 IOStreamProvider.h \
194 KeysSetting.cc \
195 KeysSetting.h \
196 localdir.cc \
197 localdir.h \
198 LogFile.cc \
199 LogFile.h \
200 LogSingleton.cc \
201 LogSingleton.h \
202 main.cc \
203 mkdir.cc \
204 mkdir.h \
205 mklink2.cc \
206 mklink2.h \
207 mount.cc \
208 mount.h \
209 msg.cc \
210 msg.h \
211 net.cc \
212 net.h \
213 netio.cc \
214 netio.h \
215 nio-ie5.cc \
216 nio-ie5.h \
217 nio-file.cc \
218 nio-file.h \
219 nio-ftp.cc \
220 nio-ftp.h \
221 nio-http.cc \
222 nio-http.h \
223 package_db.cc \
224 package_db.h \
225 package_meta.cc \
226 package_meta.h \
227 package_source.cc \
228 package_source.h \
229 package_version.cc \
230 package_version.h \
231 PackageSpecification.cc \
232 PackageSpecification.h \
233 PackageTrust.h \
234 PickCategoryLine.cc \
235 PickCategoryLine.h \
236 PickLine.h \
237 PickPackageLine.cc \
238 PickPackageLine.h \
239 PickView.cc \
240 PickView.h \
241 postinstall.cc \
242 prereq.cc \
243 prereq.h \
244 proppage.cc \
245 proppage.h \
246 propsheet.cc \
247 propsheet.h \
248 RECTWrapper.h \
249 res.rc \
250 resource.h \
251 root.cc \
252 root.h \
253 ScanFindVisitor.cc \
254 ScanFindVisitor.h \
255 script.cc \
256 script.h \
257 setup_version.h \
258 setup_version.c \
259 simpsock.cc \
260 simpsock.h \
261 site.cc \
262 site.h \
263 source.cc \
264 source.h \
265 SourceSetting.cc \
266 SourceSetting.h \
267 splash.cc \
268 splash.h \
269 state.cc \
270 state.h \
271 String++.cc \
272 String++.h \
273 threebar.cc \
274 threebar.h \
275 UserSettings.cc \
276 UserSettings.h \
277 win32.cc \
278 win32.h \
279 window.cc \
280 window.h \
281 csu_util/MD5Sum.cc \
282 csu_util/MD5Sum.h \
283 csu_util/rfc1738.cc \
284 csu_util/rfc1738.h \
285 csu_util/version_compare.cc \
286 csu_util/version_compare.h \
287 libmd5-rfc/md5.c \
288 libmd5-rfc/md5.h
289
290 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
291 $(srcdir)/ChangeLog)
292
293 setup_version.c : $(srcdir)/ChangeLog Makefile
294 (echo '#define VERSION_PREFIX "%%% setup-version"';\
295 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
296 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
297 mv version.tmp setup_version.c
298
299 .rc.o:
300 $(WINDRES) --include-dir $(srcdir) -o $@ $<
301
302 # this target creates:
303 # setup-x.yyy.exe (UPXed stripped exe)
304 # setup-debug-x.yyy.exe.gz (gzipped unstripped exe)
305 # setup-x.yyy.tar.bz2 (source)
306 release: setup.exe $(srcdir)/ChangeLog Makefile
307 $(MAKE) dist-bzip2 distdir=setup-${VER}
308 cp -pf setup.exe setup-debug-${VER}.exe
309 gzip -f9 setup-debug-${VER}.exe
310 cp -pf setup.exe setup-${VER}.exe
311 $(STRIP) setup-${VER}.exe
312 upx --best setup-${VER}.exe
313
314 # Create a snapshot and upload it (requires write access)
315 snapshot: release
316 scp -C setup-${VER}.exe setup-debug-${VER}.exe.gz setup-${VER}.tar.bz2 \
317 $${cygwinsite:-cygwin.com}:setup-snapshots/
318
319 # static const char version_store[] = VERSION_PREFIX " 2.686";
320 setup-src:
321 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
322 cd ${srcdir};\
323 rm -f $$ver;\
324 ln -sf . $$ver;\
325 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
326 sort | tar -T - -cjf ${CURDIR}/$$ver.tar.bz2;\
327 echo $$ver.tar.bz2
328
329 .PHONY: ${INST_SUBDIRS}
330 ${INST_SUBDIRS}:
331 ${MAKE} -C $@ install
This page took 0.048459 seconds and 6 git commands to generate.