]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
Prepare for changing from MD5 to SHA256 checksums.
[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 # Makefile for Cygwin installer
17
18 SUBDIRS := @subdirs@ tests
19
20 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
21
22 # We would like to use -Winline for C++ as well, but some STL code triggers
23 # this warning. (Bug verified present in gcc-3.3)
24 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
25 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
26 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
27 -Wcast-align -Wwrite-strings -fno-builtin-sscanf
28 AM_CXXFLAGS = -Werror $(BASECXXFLAGS) ${$(*F)_CXXFLAGS}
29 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
30 -Wstrict-prototypes -Wmissing-prototypes
31 AM_YFLAGS = -d
32 AM_LFLAGS = -8
33 WINDRES = @WINDRES@
34 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include -I${srcdir}/regex
35
36 inilex_CXXFLAGS:=-Wno-sign-compare
37
38 noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@
39
40 EXTRA_PROGRAMS = inilint
41 ## noinst_PROGRAMS +=inilint
42
43 EXTRA_DIST = \
44 CHANGES \
45 CONTRIBUTORS \
46 COPYING \
47 bootstrap.sh \
48 check-na.bmp \
49 check-no.bmp \
50 check-yes.bmp \
51 choose-rtarrow.bmp \
52 choose-spin.bmp \
53 cygwin.ico \
54 cygwin-setup.ico \
55 cygwin-terminal.ico \
56 setup.exe.manifest \
57 setup64.exe.manifest \
58 tree-minus.bmp \
59 tree-plus.bmp
60
61 # iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
62 # included here for proper tracking (but not iniparse.cc, since automake
63 # knows about that already)
64 BUILT_SOURCES = \
65 setup_version.c \
66 iniparse.hh
67
68 CLEANFILES = setup_version.c
69
70 inilint_LDADD = \
71 libgetopt++/libgetopt++.la
72 inilint_SOURCES = \
73 filemanip.cc \
74 filemanip.h \
75 find.cc \
76 find.h \
77 FindVisitor.cc \
78 FindVisitor.h \
79 LogSingleton.cc \
80 LogSingleton.h \
81 IniDBBuilder.h \
82 inilintmain.cc \
83 inilex.ll \
84 iniparse.yy \
85 IniParseFeedback.cc \
86 IniParseFeedback.h \
87 io_stream.h \
88 io_stream.cc \
89 io_stream_file.h \
90 io_stream_file.cc \
91 IOStreamProvider.h \
92 mkdir.cc \
93 mkdir.h \
94 mklink2.cc \
95 PackageSpecification.cc \
96 PackageSpecification.h \
97 PackageTrust.h \
98 csu_util/rfc1738.cc \
99 csu_util/rfc1738.h \
100 String++.cc \
101 String++.h
102
103 @SETUP@_LDADD = \
104 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
105 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet -lmingw32
106 @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
107 @SETUP@_SOURCES = \
108 AntiVirus.cc \
109 AntiVirus.h \
110 archive.cc \
111 archive.h \
112 archive_tar.cc \
113 archive_tar.h \
114 archive_tar_file.cc \
115 choose.cc \
116 choose.h \
117 compress.cc \
118 compress.h \
119 compress_bz.cc \
120 compress_bz.h \
121 compress_gz.cc \
122 compress_gz.h \
123 compress_xz.cc \
124 compress_xz.h \
125 ConnectionSetting.cc \
126 ConnectionSetting.h \
127 ControlAdjuster.cc \
128 ControlAdjuster.h \
129 crypto.cc \
130 crypto.h \
131 cyg-pubkey.h \
132 cygpackage.cc \
133 cygpackage.h \
134 desktop.cc \
135 desktop.h \
136 dialog.cc \
137 dialog.h \
138 diskfull.cc \
139 diskfull.h \
140 download.cc \
141 download.h \
142 Exception.cc \
143 Exception.h \
144 find.cc \
145 find.h \
146 FindVisitor.cc \
147 FindVisitor.h \
148 filemanip.cc \
149 filemanip.h \
150 fromcwd.cc \
151 Generic.h \
152 geturl.cc \
153 geturl.h \
154 gpg-packet.cc \
155 gpg-packet.h \
156 ini.cc \
157 ini.h \
158 IniDBBuilder.h \
159 IniDBBuilderPackage.cc \
160 IniDBBuilderPackage.h \
161 inilex.ll \
162 iniparse.yy \
163 IniParseFeedback.cc \
164 IniParseFeedback.h \
165 IniParseFindVisitor.cc \
166 IniParseFindVisitor.h \
167 install.cc \
168 io_stream.cc \
169 io_stream.h \
170 io_stream_cygfile.cc \
171 io_stream_cygfile.h \
172 io_stream_file.cc \
173 io_stream_file.h \
174 io_stream_memory.cc \
175 io_stream_memory.h \
176 IOStreamProvider.h \
177 KeysSetting.cc \
178 KeysSetting.h \
179 localdir.cc \
180 localdir.h \
181 LogFile.cc \
182 LogFile.h \
183 LogSingleton.cc \
184 LogSingleton.h \
185 main.cc \
186 mkdir.cc \
187 mkdir.h \
188 mklink2.cc \
189 mklink2.h \
190 mount.cc \
191 mount.h \
192 msg.cc \
193 msg.h \
194 net.cc \
195 net.h \
196 netio.cc \
197 netio.h \
198 nio-ie5.cc \
199 nio-ie5.h \
200 nio-file.cc \
201 nio-file.h \
202 nio-ftp.cc \
203 nio-ftp.h \
204 nio-http.cc \
205 nio-http.h \
206 package_db.cc \
207 package_db.h \
208 package_meta.cc \
209 package_meta.h \
210 package_source.cc \
211 package_source.h \
212 package_version.cc \
213 package_version.h \
214 PackageSpecification.cc \
215 PackageSpecification.h \
216 PackageTrust.h \
217 PickCategoryLine.cc \
218 PickCategoryLine.h \
219 PickLine.h \
220 PickPackageLine.cc \
221 PickPackageLine.h \
222 PickView.cc \
223 PickView.h \
224 postinstall.cc \
225 postinstallresults.cc \
226 postinstallresults.h \
227 prereq.cc \
228 prereq.h \
229 processlist.cc \
230 processlist.h \
231 proppage.cc \
232 proppage.h \
233 propsheet.cc \
234 propsheet.h \
235 RECTWrapper.h \
236 res.rc \
237 resource.h \
238 root.cc \
239 root.h \
240 ScanFindVisitor.cc \
241 ScanFindVisitor.h \
242 script.cc \
243 script.h \
244 setup_version.h \
245 setup_version.c \
246 sha2.h \
247 sha2.c \
248 simpsock.cc \
249 simpsock.h \
250 site.cc \
251 site.h \
252 source.cc \
253 source.h \
254 SourceSetting.cc \
255 SourceSetting.h \
256 splash.cc \
257 splash.h \
258 state.cc \
259 state.h \
260 String++.cc \
261 String++.h \
262 threebar.cc \
263 threebar.h \
264 UserSettings.cc \
265 UserSettings.h \
266 win32.cc \
267 win32.h \
268 window.cc \
269 window.h \
270 csu_util/MD5Sum.cc \
271 csu_util/MD5Sum.h \
272 csu_util/rfc1738.cc \
273 csu_util/rfc1738.h \
274 csu_util/version_compare.cc \
275 csu_util/version_compare.h \
276 regex/regex.c
277
278 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
279 $(srcdir)/ChangeLog)
280
281 setup_version.c : $(srcdir)/ChangeLog Makefile
282 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
283 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
284 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
285 mv version.tmp setup_version.c
286
287 # setup.exe.manifest is included in res.rc
288 res.o: @SETUP@.exe.manifest
289
290 .rc.o:
291 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
292
293 # static const char version_store[] = VERSION_PREFIX " 2.686";
294 setup-src:
295 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
296 cd ${srcdir};\
297 rm -f $$ver;\
298 ln -sf . $$ver;\
299 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
300 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
301 echo $$ver-src.tar.bz2; exec rm -f $$ver
302
303 # optional: strip and compress executable
304 .PHONY: strip upx
305
306 strip: all
307 $(STRIP) -s setup$(EXEEXT)
308 upx: strip
309 @if [ -e `which upx` ]; then\
310 upx --best --lzma setup$(EXEEXT) ;\
311 else \
312 echo "UPX doesn't seem to be installed, cannot compress setup$(EXEEXT)." ;\
313 fi
This page took 0.051341 seconds and 6 git commands to generate.