]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
Fix message spam when package vendor is something other than "cygwin"
[cygwin-apps/setup.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # Copyright (c) 2000, Red Hat, Inc.
4 # Copyright (c) 2002, Robert Collins
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # A copy of the GNU General Public License can be found at
12 # http://www.gnu.org/
13 #
14 # Makefile for Cygwin installer
15
16 SUBDIRS := @subdirs@ tests
17
18 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
19
20 # We would like to use -Winline for C++ as well, but some STL code triggers
21 # this warning. (Bug verified present in gcc-3.3)
22 BASECXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
23 -Wcast-align -Wwrite-strings -fno-builtin-sscanf \
24 -Wno-attributes
25 AM_CXXFLAGS = $(BASECXXFLAGS) -std=gnu++11 ${$(*F)_CXXFLAGS}
26 AM_CFLAGS = $(BASECXXFLAGS) -Wmissing-declarations -Winline \
27 -Wstrict-prototypes -Wmissing-prototypes
28 AM_YFLAGS = -d
29 AM_LFLAGS = -8
30 WINDRES = @WINDRES@
31 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
32
33 inilex_CXXFLAGS:=-Wno-sign-compare
34
35 noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@
36
37 EXTRA_PROGRAMS = inilint
38 ## noinst_PROGRAMS +=inilint
39
40 EXTRA_DIST = \
41 CHANGES \
42 CONTRIBUTORS \
43 COPYING \
44 bootstrap.sh \
45 check-na.bmp \
46 check-no.bmp \
47 check-yes.bmp \
48 choose-spin.bmp \
49 cygwin.ico \
50 cygwin-setup.ico \
51 cygwin-terminal.ico \
52 setup.exe.manifest \
53 setup64.exe.manifest \
54 tree-minus.bmp \
55 tree-plus.bmp
56
57 # iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
58 # included here for proper tracking (but not iniparse.cc, since automake
59 # knows about that already)
60 BUILT_SOURCES = \
61 setup_version.c \
62 iniparse.hh
63
64 CLEANFILES = setup_version.c
65
66 inilint_LDADD = \
67 libgetopt++/libgetopt++.la
68 inilint_SOURCES = \
69 filemanip.cc \
70 filemanip.h \
71 find.cc \
72 find.h \
73 FindVisitor.cc \
74 FindVisitor.h \
75 LogSingleton.cc \
76 LogSingleton.h \
77 IniDBBuilder.h \
78 inilintmain.cc \
79 inilex.ll \
80 iniparse.yy \
81 IniParseFeedback.cc \
82 IniParseFeedback.h \
83 io_stream.h \
84 io_stream.cc \
85 io_stream_file.h \
86 io_stream_file.cc \
87 IOStreamProvider.h \
88 mkdir.cc \
89 mkdir.h \
90 mklink2.cc \
91 PackageSpecification.cc \
92 PackageSpecification.h \
93 PackageTrust.h \
94 csu_util/rfc1738.cc \
95 csu_util/rfc1738.h \
96 String++.cc \
97 String++.h
98
99 @SETUP@_LDADD = \
100 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz -lsolv -lregex \
101 -lshlwapi -lcomctl32 -lole32 -lpsapi -luuid -lntdll -lwininet -lws2_32 -lmingw32
102 @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
103 @SETUP@_SOURCES = \
104 AntiVirus.cc \
105 AntiVirus.h \
106 archive.cc \
107 archive.h \
108 archive_tar.cc \
109 archive_tar.h \
110 archive_tar_file.cc \
111 choose.cc \
112 choose.h \
113 compress.cc \
114 compress.h \
115 compress_bz.cc \
116 compress_bz.h \
117 compress_gz.cc \
118 compress_gz.h \
119 compress_xz.cc \
120 compress_xz.h \
121 confirm.cc \
122 confirm.h \
123 ConnectionSetting.cc \
124 ConnectionSetting.h \
125 ControlAdjuster.cc \
126 ControlAdjuster.h \
127 crypto.cc \
128 crypto.h \
129 cyg-pubkey.h \
130 desktop.cc \
131 desktop.h \
132 dialog.cc \
133 dialog.h \
134 diskfull.cc \
135 diskfull.h \
136 download.cc \
137 download.h \
138 Exception.cc \
139 Exception.h \
140 find.cc \
141 find.h \
142 FindVisitor.cc \
143 FindVisitor.h \
144 filemanip.cc \
145 filemanip.h \
146 fromcwd.cc \
147 Generic.h \
148 geturl.cc \
149 geturl.h \
150 gpg-packet.cc \
151 gpg-packet.h \
152 ini.cc \
153 ini.h \
154 IniDBBuilder.h \
155 IniDBBuilderPackage.cc \
156 IniDBBuilderPackage.h \
157 inilex.ll \
158 iniparse.yy \
159 IniParseFeedback.cc \
160 IniParseFeedback.h \
161 install.cc \
162 io_stream.cc \
163 io_stream.h \
164 io_stream_cygfile.cc \
165 io_stream_cygfile.h \
166 io_stream_file.cc \
167 io_stream_file.h \
168 io_stream_memory.cc \
169 io_stream_memory.h \
170 IOStreamProvider.h \
171 KeysSetting.cc \
172 KeysSetting.h \
173 libsolv.cc \
174 libsolv.h \
175 localdir.cc \
176 localdir.h \
177 LogFile.cc \
178 LogFile.h \
179 LogSingleton.cc \
180 LogSingleton.h \
181 main.cc \
182 mkdir.cc \
183 mkdir.h \
184 mklink2.cc \
185 mklink2.h \
186 mount.cc \
187 mount.h \
188 msg.cc \
189 msg.h \
190 net.cc \
191 net.h \
192 netio.cc \
193 netio.h \
194 nio-ie5.cc \
195 nio-ie5.h \
196 package_db.cc \
197 package_db.h \
198 package_depends.h \
199 package_depends.cc \
200 package_meta.cc \
201 package_meta.h \
202 package_source.cc \
203 package_source.h \
204 package_version.h \
205 PackageSpecification.cc \
206 PackageSpecification.h \
207 PackageTrust.h \
208 PickCategoryLine.cc \
209 PickCategoryLine.h \
210 PickLine.h \
211 PickPackageLine.cc \
212 PickPackageLine.h \
213 PickView.cc \
214 PickView.h \
215 postinstall.cc \
216 postinstallresults.cc \
217 postinstallresults.h \
218 prereq.cc \
219 prereq.h \
220 processlist.cc \
221 processlist.h \
222 proppage.cc \
223 proppage.h \
224 propsheet.cc \
225 propsheet.h \
226 RECTWrapper.h \
227 res.rc \
228 resource.h \
229 root.cc \
230 root.h \
231 script.cc \
232 script.h \
233 setup_version.h \
234 setup_version.c \
235 sha2.h \
236 sha2.c \
237 site.cc \
238 site.h \
239 source.cc \
240 source.h \
241 SourceSetting.cc \
242 SourceSetting.h \
243 splash.cc \
244 splash.h \
245 state.cc \
246 state.h \
247 String++.cc \
248 String++.h \
249 threebar.cc \
250 threebar.h \
251 UserSettings.cc \
252 UserSettings.h \
253 win32.cc \
254 win32.h \
255 window.cc \
256 window.h \
257 csu_util/MD5Sum.cc \
258 csu_util/MD5Sum.h \
259 csu_util/rfc1738.cc \
260 csu_util/rfc1738.h \
261 csu_util/version_compare.cc \
262 csu_util/version_compare.h
263
264 GITVER := $(shell cd $(srcdir) && git describe --match release_\* --abbrev=6 --dirty || "N/A")
265 VER := $(subst release_,,$(GITVER))
266 ARCH := @ARCH@
267
268 setup_version.c : Makefile
269 @echo "Setup version: " $(VER)
270 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
271 echo 'static const char version_store[] = VERSION_PREFIX " '$(VER)'";';\
272 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
273 mv version.tmp setup_version.c
274
275 # setup.exe.manifest is included in res.rc
276 res.o: @SETUP@.exe.manifest
277
278 .rc.o:
279 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
280
281 setup-src:
282 @ver=setup-$(VER);\
283 cd ${srcdir}; rm -f $$ver; ln -sf . $$ver;\
284 git ls-files | tar -T - -cJf ${CURDIR}/$$ver-src.tar.xz;\
285 echo $$ver-src.tar.xz; exec rm -f $$ver
286
287 # optional: strip and compress executable
288 .PHONY: strip upx
289
290 strip: all
291 $(OBJCOPY) --add-gnu-debuglink=/dev/null --only-keep-debug setup$(EXEEXT) setup.dbg
292 $(OBJCOPY) --strip-all setup$(EXEEXT)
293 $(OBJCOPY) --add-gnu-debuglink=setup.dbg setup$(EXEEXT) setup$(EXEEXT)
294
295 CLEANFILES += setup.dbg
296
297 upx: strip
298 @if [ -e `which upx` ]; then\
299 upx --best --lzma setup$(EXEEXT) ;\
300 else \
301 echo "UPX doesn't seem to be installed, cannot compress setup$(EXEEXT)." ;\
302 fi
303
304 release: upx
305 cp setup.dbg setup-${VER}.${ARCH}.dbg
306 cp setup${EXEEXT} setup-${VER}.${ARCH}${EXEEXT}
307
308 UPLOAD_HOST=cygwin-admin@cygwin.com
309 UPLOAD_PATH=/www/sourceware/htdocs/cygwin/setup
310
311 upload: release
312 scp setup-${VER}.$(ARCH).exe setup-${VER}.$(ARCH).dbg ${UPLOAD_HOST}:${UPLOAD_PATH}
313 ssh ${UPLOAD_HOST} gpg --detach-sign ${UPLOAD_PATH}/setup-${VER}.$(ARCH).exe
314
315 clean-local:
316 rm -f setup*${EXEEXT} setup*.dbg
This page took 0.053174 seconds and 6 git commands to generate.