]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
Fix signature check for local directory installation and record names of local mirror...
[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 -Wno-attributes
29 AM_CXXFLAGS = -Werror $(BASECXXFLAGS) ${$(*F)_CXXFLAGS}
30 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
31 -Wstrict-prototypes -Wmissing-prototypes
32 AM_YFLAGS = -d
33 AM_LFLAGS = -8
34 WINDRES = @WINDRES@
35 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include -I${srcdir}/regex
36
37 inilex_CXXFLAGS:=-Wno-sign-compare
38
39 noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@
40
41 EXTRA_PROGRAMS = inilint
42 ## noinst_PROGRAMS +=inilint
43
44 EXTRA_DIST = \
45 CHANGES \
46 CONTRIBUTORS \
47 COPYING \
48 bootstrap.sh \
49 check-na.bmp \
50 check-no.bmp \
51 check-yes.bmp \
52 choose-rtarrow.bmp \
53 choose-spin.bmp \
54 cygwin.ico \
55 cygwin-setup.ico \
56 cygwin-terminal.ico \
57 setup.exe.manifest \
58 setup64.exe.manifest \
59 tree-minus.bmp \
60 tree-plus.bmp
61
62 # iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
63 # included here for proper tracking (but not iniparse.cc, since automake
64 # knows about that already)
65 BUILT_SOURCES = \
66 setup_version.c \
67 iniparse.hh
68
69 CLEANFILES = setup_version.c
70
71 inilint_LDADD = \
72 libgetopt++/libgetopt++.la
73 inilint_SOURCES = \
74 filemanip.cc \
75 filemanip.h \
76 find.cc \
77 find.h \
78 FindVisitor.cc \
79 FindVisitor.h \
80 LogSingleton.cc \
81 LogSingleton.h \
82 IniDBBuilder.h \
83 inilintmain.cc \
84 inilex.ll \
85 iniparse.yy \
86 IniParseFeedback.cc \
87 IniParseFeedback.h \
88 io_stream.h \
89 io_stream.cc \
90 io_stream_file.h \
91 io_stream_file.cc \
92 IOStreamProvider.h \
93 mkdir.cc \
94 mkdir.h \
95 mklink2.cc \
96 PackageSpecification.cc \
97 PackageSpecification.h \
98 PackageTrust.h \
99 csu_util/rfc1738.cc \
100 csu_util/rfc1738.h \
101 String++.cc \
102 String++.h
103
104 @SETUP@_LDADD = \
105 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
106 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet -lmingw32
107 @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
108 @SETUP@_SOURCES = \
109 AntiVirus.cc \
110 AntiVirus.h \
111 archive.cc \
112 archive.h \
113 archive_tar.cc \
114 archive_tar.h \
115 archive_tar_file.cc \
116 choose.cc \
117 choose.h \
118 compress.cc \
119 compress.h \
120 compress_bz.cc \
121 compress_bz.h \
122 compress_gz.cc \
123 compress_gz.h \
124 compress_xz.cc \
125 compress_xz.h \
126 ConnectionSetting.cc \
127 ConnectionSetting.h \
128 ControlAdjuster.cc \
129 ControlAdjuster.h \
130 crypto.cc \
131 crypto.h \
132 cyg-pubkey.h \
133 cygpackage.cc \
134 cygpackage.h \
135 desktop.cc \
136 desktop.h \
137 dialog.cc \
138 dialog.h \
139 diskfull.cc \
140 diskfull.h \
141 download.cc \
142 download.h \
143 Exception.cc \
144 Exception.h \
145 find.cc \
146 find.h \
147 FindVisitor.cc \
148 FindVisitor.h \
149 filemanip.cc \
150 filemanip.h \
151 fromcwd.cc \
152 Generic.h \
153 geturl.cc \
154 geturl.h \
155 gpg-packet.cc \
156 gpg-packet.h \
157 ini.cc \
158 ini.h \
159 IniDBBuilder.h \
160 IniDBBuilderPackage.cc \
161 IniDBBuilderPackage.h \
162 inilex.ll \
163 iniparse.yy \
164 IniParseFeedback.cc \
165 IniParseFeedback.h \
166 install.cc \
167 io_stream.cc \
168 io_stream.h \
169 io_stream_cygfile.cc \
170 io_stream_cygfile.h \
171 io_stream_file.cc \
172 io_stream_file.h \
173 io_stream_memory.cc \
174 io_stream_memory.h \
175 IOStreamProvider.h \
176 KeysSetting.cc \
177 KeysSetting.h \
178 localdir.cc \
179 localdir.h \
180 LogFile.cc \
181 LogFile.h \
182 LogSingleton.cc \
183 LogSingleton.h \
184 main.cc \
185 mkdir.cc \
186 mkdir.h \
187 mklink2.cc \
188 mklink2.h \
189 mount.cc \
190 mount.h \
191 msg.cc \
192 msg.h \
193 net.cc \
194 net.h \
195 netio.cc \
196 netio.h \
197 nio-ie5.cc \
198 nio-ie5.h \
199 nio-file.cc \
200 nio-file.h \
201 nio-ftp.cc \
202 nio-ftp.h \
203 nio-http.cc \
204 nio-http.h \
205 package_db.cc \
206 package_db.h \
207 package_meta.cc \
208 package_meta.h \
209 package_source.cc \
210 package_source.h \
211 package_version.cc \
212 package_version.h \
213 PackageSpecification.cc \
214 PackageSpecification.h \
215 PackageTrust.h \
216 PickCategoryLine.cc \
217 PickCategoryLine.h \
218 PickLine.h \
219 PickPackageLine.cc \
220 PickPackageLine.h \
221 PickView.cc \
222 PickView.h \
223 postinstall.cc \
224 postinstallresults.cc \
225 postinstallresults.h \
226 prereq.cc \
227 prereq.h \
228 processlist.cc \
229 processlist.h \
230 proppage.cc \
231 proppage.h \
232 propsheet.cc \
233 propsheet.h \
234 RECTWrapper.h \
235 res.rc \
236 resource.h \
237 root.cc \
238 root.h \
239 ScanFindVisitor.cc \
240 ScanFindVisitor.h \
241 script.cc \
242 script.h \
243 setup_version.h \
244 setup_version.c \
245 sha2.h \
246 sha2.c \
247 simpsock.cc \
248 simpsock.h \
249 site.cc \
250 site.h \
251 source.cc \
252 source.h \
253 SourceSetting.cc \
254 SourceSetting.h \
255 splash.cc \
256 splash.h \
257 state.cc \
258 state.h \
259 String++.cc \
260 String++.h \
261 threebar.cc \
262 threebar.h \
263 UserSettings.cc \
264 UserSettings.h \
265 win32.cc \
266 win32.h \
267 window.cc \
268 window.h \
269 csu_util/MD5Sum.cc \
270 csu_util/MD5Sum.h \
271 csu_util/rfc1738.cc \
272 csu_util/rfc1738.h \
273 csu_util/version_compare.cc \
274 csu_util/version_compare.h \
275 regex/regex.c
276
277 GITVER := $(shell cd $(srcdir) && git describe --match release_\* --abbrev=6 --dirty || "N/A")
278 VER := $(subst release_,,$(GITVER))
279
280 setup_version.c : $(srcdir)/ChangeLog Makefile
281 @echo "Setup version: " $(VER)
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 setup-src:
294 @ver=setup-$(VER);\
295 cd ${srcdir}; rm -f $$ver; ln -sf . $$ver;\
296 git ls-files | tar -T - -cJf ${CURDIR}/$$ver-src.tar.xz;\
297 echo $$ver-src.tar.xz; exec rm -f $$ver
298
299 # optional: strip and compress executable
300 .PHONY: strip upx
301
302 strip: all
303 $(STRIP) -s setup$(EXEEXT)
304 upx: strip
305 @if [ -e `which upx` ]; then\
306 upx --best --lzma setup$(EXEEXT) ;\
307 else \
308 echo "UPX doesn't seem to be installed, cannot compress setup$(EXEEXT)." ;\
309 fi
This page took 0.053049 seconds and 6 git commands to generate.