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