]> cygwin.com Git - cygwin-apps/setup.git/blame - Makefile.am
Fix message spam when package vendor is something other than "cygwin"
[cygwin-apps/setup.git] / Makefile.am
CommitLineData
f6100b6f
RC
1## Process this file with automake to produce Makefile.in
2#
f6100b6f
RC
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#
f6100b6f
RC
14# Makefile for Cygwin installer
15
fe434e30 16SUBDIRS := @subdirs@ tests
f6100b6f
RC
17
18## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
19
8b726ef6
MB
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)
abad8c0c 22BASECXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
99f33a3b
CV
23 -Wcast-align -Wwrite-strings -fno-builtin-sscanf \
24 -Wno-attributes
1c6add37 25AM_CXXFLAGS = $(BASECXXFLAGS) -std=gnu++11 ${$(*F)_CXXFLAGS}
abad8c0c 26AM_CFLAGS = $(BASECXXFLAGS) -Wmissing-declarations -Winline \
43fe4376 27 -Wstrict-prototypes -Wmissing-prototypes
dacb1ebd
BD
28AM_YFLAGS = -d
29AM_LFLAGS = -8
92ef6cf8 30WINDRES = @WINDRES@
d88dca4a 31AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
f6100b6f 32
6a03d5cd
CV
33inilex_CXXFLAGS:=-Wno-sign-compare
34
e49fef4d 35noinst_PROGRAMS = @SETUP@$(EXEEXT) @INILINT@
58ee6135
RC
36
37EXTRA_PROGRAMS = inilint
19911586 38## noinst_PROGRAMS +=inilint
f6100b6f 39
45e01f23 40EXTRA_DIST = \
89fc4ceb
MB
41 CHANGES \
42 CONTRIBUTORS \
43 COPYING \
44 bootstrap.sh \
45 check-na.bmp \
46 check-no.bmp \
47 check-yes.bmp \
89fc4ceb
MB
48 choose-spin.bmp \
49 cygwin.ico \
c0342e37
CV
50 cygwin-setup.ico \
51 cygwin-terminal.ico \
89fc4ceb 52 setup.exe.manifest \
2258d2a1 53 setup64.exe.manifest \
89fc4ceb
MB
54 tree-minus.bmp \
55 tree-plus.bmp
45e01f23 56
443b9db6 57# iniparse.hh is generated from iniparse.yy via bison -d, so it needs to be
dacb1ebd
BD
58# included here for proper tracking (but not iniparse.cc, since automake
59# knows about that already)
89fc4ceb
MB
60BUILT_SOURCES = \
61 setup_version.c \
443b9db6 62 iniparse.hh
f6100b6f 63
92ef6cf8
BD
64CLEANFILES = setup_version.c
65
89fc4ceb 66inilint_LDADD = \
c63e8b4a 67 libgetopt++/libgetopt++.la
58ee6135 68inilint_SOURCES = \
89fc4ceb
MB
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 \
c63e8b4a 79 inilex.ll \
dacb1ebd 80 iniparse.yy \
89fc4ceb
MB
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 \
e49fef4d 90 mklink2.cc \
89fc4ceb
MB
91 PackageSpecification.cc \
92 PackageSpecification.h \
93 PackageTrust.h \
94 csu_util/rfc1738.cc \
95 csu_util/rfc1738.h \
96 String++.cc \
e49fef4d 97 String++.h
58ee6135 98
e49fef4d 99@SETUP@_LDADD = \
1c159e0a 100 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz -lsolv -lregex \
da93010a 101 -lshlwapi -lcomctl32 -lole32 -lpsapi -luuid -lntdll -lwininet -lws2_32 -lmingw32
e49fef4d
YS
102@SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
103@SETUP@_SOURCES = \
f9e903a3
RC
104 AntiVirus.cc \
105 AntiVirus.h \
f6100b6f 106 archive.cc \
45e01f23 107 archive.h \
f6100b6f 108 archive_tar.cc \
45e01f23 109 archive_tar.h \
f6100b6f 110 archive_tar_file.cc \
f6100b6f 111 choose.cc \
45e01f23 112 choose.h \
f6100b6f 113 compress.cc \
45e01f23 114 compress.h \
f6100b6f 115 compress_bz.cc \
45e01f23 116 compress_bz.h \
f6100b6f 117 compress_gz.cc \
45e01f23 118 compress_gz.h \
671140f9
CW
119 compress_xz.cc \
120 compress_xz.h \
b1902cbc
JT
121 confirm.cc \
122 confirm.h \
39b42ff3
RC
123 ConnectionSetting.cc \
124 ConnectionSetting.h \
ee91d9be
RC
125 ControlAdjuster.cc \
126 ControlAdjuster.h \
dbfe3c19
DK
127 crypto.cc \
128 crypto.h \
129 cyg-pubkey.h \
f6100b6f 130 desktop.cc \
45e01f23 131 desktop.h \
f6100b6f 132 dialog.cc \
45e01f23 133 dialog.h \
f6100b6f 134 diskfull.cc \
45e01f23 135 diskfull.h \
f6100b6f 136 download.cc \
58ee6135
RC
137 download.h \
138 Exception.cc \
139 Exception.h \
f6100b6f 140 find.cc \
45e01f23 141 find.h \
b401ef47
RC
142 FindVisitor.cc \
143 FindVisitor.h \
f6100b6f 144 filemanip.cc \
45e01f23 145 filemanip.h \
f6100b6f 146 fromcwd.cc \
31f0ccce 147 Generic.h \
f6100b6f 148 geturl.cc \
45e01f23 149 geturl.h \
dbfe3c19
DK
150 gpg-packet.cc \
151 gpg-packet.h \
f6100b6f 152 ini.cc \
45e01f23 153 ini.h \
076654e7
RC
154 IniDBBuilder.h \
155 IniDBBuilderPackage.cc \
156 IniDBBuilderPackage.h \
c63e8b4a 157 inilex.ll \
dacb1ebd 158 iniparse.yy \
67829ce0
RC
159 IniParseFeedback.cc \
160 IniParseFeedback.h \
f6100b6f
RC
161 install.cc \
162 io_stream.cc \
45e01f23 163 io_stream.h \
f6100b6f 164 io_stream_cygfile.cc \
45e01f23 165 io_stream_cygfile.h \
f6100b6f 166 io_stream_file.cc \
45e01f23 167 io_stream_file.h \
f6100b6f 168 io_stream_memory.cc \
45e01f23 169 io_stream_memory.h \
19911586 170 IOStreamProvider.h \
dbfe3c19
DK
171 KeysSetting.cc \
172 KeysSetting.h \
1c159e0a
JT
173 libsolv.cc \
174 libsolv.h \
f6100b6f 175 localdir.cc \
45e01f23 176 localdir.h \
9f4a0c62
RC
177 LogFile.cc \
178 LogFile.h \
179 LogSingleton.cc \
180 LogSingleton.h \
f6100b6f 181 main.cc \
f6100b6f 182 mkdir.cc \
45e01f23 183 mkdir.h \
f6100b6f 184 mklink2.cc \
45e01f23 185 mklink2.h \
f6100b6f 186 mount.cc \
45e01f23 187 mount.h \
f6100b6f 188 msg.cc \
45e01f23 189 msg.h \
f6100b6f 190 net.cc \
45e01f23 191 net.h \
f6100b6f 192 netio.cc \
45e01f23 193 netio.h \
f6100b6f 194 nio-ie5.cc \
45e01f23 195 nio-ie5.h \
f6100b6f 196 package_db.cc \
45e01f23 197 package_db.h \
711d8346 198 package_depends.h \
4cd71131 199 package_depends.cc \
f6100b6f 200 package_meta.cc \
45e01f23 201 package_meta.h \
f6100b6f 202 package_source.cc \
45e01f23 203 package_source.h \
f3992588 204 package_version.h \
aa1e3b4d
RC
205 PackageSpecification.cc \
206 PackageSpecification.h \
076654e7 207 PackageTrust.h \
f6100b6f 208 PickCategoryLine.cc \
45e01f23 209 PickCategoryLine.h \
45e01f23 210 PickLine.h \
f6100b6f 211 PickPackageLine.cc \
45e01f23 212 PickPackageLine.h \
f6100b6f 213 PickView.cc \
45e01f23 214 PickView.h \
f6100b6f 215 postinstall.cc \
018b960d
JT
216 postinstallresults.cc \
217 postinstallresults.h \
82306ac2
BD
218 prereq.cc \
219 prereq.h \
ec366f61
JT
220 processlist.cc \
221 processlist.h \
f6100b6f 222 proppage.cc \
45e01f23 223 proppage.h \
f6100b6f 224 propsheet.cc \
45e01f23 225 propsheet.h \
8a264069 226 RECTWrapper.h \
f6100b6f 227 res.rc \
45e01f23 228 resource.h \
f6100b6f 229 root.cc \
45e01f23 230 root.h \
f6100b6f 231 script.cc \
45e01f23 232 script.h \
2b734ec7 233 setup_version.h \
f6100b6f 234 setup_version.c \
be13ef43
CV
235 sha2.h \
236 sha2.c \
f6100b6f 237 site.cc \
45e01f23 238 site.h \
f6100b6f 239 source.cc \
45e01f23 240 source.h \
6ff96351
RC
241 SourceSetting.cc \
242 SourceSetting.h \
f6100b6f 243 splash.cc \
45e01f23 244 splash.h \
f6100b6f 245 state.cc \
45e01f23 246 state.h \
f6100b6f 247 String++.cc \
45e01f23 248 String++.h \
f6100b6f 249 threebar.cc \
45e01f23 250 threebar.h \
ead15931
RC
251 UserSettings.cc \
252 UserSettings.h \
5072c0bb 253 win32.cc \
45e01f23
RC
254 win32.h \
255 window.cc \
f4d80c3f 256 window.h \
0229b1d7
MB
257 csu_util/MD5Sum.cc \
258 csu_util/MD5Sum.h \
946198be
MB
259 csu_util/rfc1738.cc \
260 csu_util/rfc1738.h \
2b734ec7 261 csu_util/version_compare.cc \
d88dca4a 262 csu_util/version_compare.h
89fc4ceb 263
679f6a2e 264GITVER := $(shell cd $(srcdir) && git describe --match release_\* --abbrev=6 --dirty || "N/A")
ba3279e3 265VER := $(subst release_,,$(GITVER))
b9d154a2 266ARCH := @ARCH@
b941c8be 267
451e2119 268setup_version.c : Makefile
ba3279e3 269 @echo "Setup version: " $(VER)
e07b6f3d 270 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
ba3279e3 271 echo 'static const char version_store[] = VERSION_PREFIX " '$(VER)'";';\
e07b6f3d 272 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
f6100b6f
RC
273 mv version.tmp setup_version.c
274
2ae3cf4e 275# setup.exe.manifest is included in res.rc
2258d2a1 276res.o: @SETUP@.exe.manifest
2ae3cf4e 277
92ef6cf8 278.rc.o:
e07b6f3d 279 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
f6100b6f 280
a3cc7986 281setup-src:
06eb6617
AG
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
a3cc7986 286
07f1b4a8
CV
287# optional: strip and compress executable
288.PHONY: strip upx
289
290strip: all
77ddbf45
JT
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
b9d154a2
JT
295CLEANFILES += setup.dbg
296
07f1b4a8
CV
297upx: 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
b9d154a2
JT
303
304release: upx
305 cp setup.dbg setup-${VER}.${ARCH}.dbg
306 cp setup${EXEEXT} setup-${VER}.${ARCH}${EXEEXT}
307
71c57a35
JT
308UPLOAD_HOST=cygwin-admin@cygwin.com
309UPLOAD_PATH=/www/sourceware/htdocs/cygwin/setup
310
311upload: release
7a80c6d2
JT
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
71c57a35 314
b9d154a2
JT
315clean-local:
316 rm -f setup*${EXEEXT} setup*.dbg
This page took 0.123404 seconds and 5 git commands to generate.