]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
* prereq.cc (PrereqChecker::getUnmetString): Improve dependency list
[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 INST_SUBDIRS:=@subdirs@
19 DIST_SUBDIRS:=${INST_SUBDIRS} tests
20 SUBDIRS:=tests
21
22 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
23
24 # We would like to use -Winline for C++ as well, but some STL code triggers
25 # this warning. (Bug verified present in gcc-3.3)
26 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
27 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
28 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
29 -Wcast-align -Wwrite-strings
30 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
31 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
32 -Wstrict-prototypes -Wmissing-prototypes
33 AM_YFLAGS = -d
34 AM_LFLAGS = -8
35 WINDRES = @WINDRES@
36 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include
37
38 noinst_PROGRAMS = setup @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 doconfigure \
55 libmd5-rfc/README \
56 libmd5-rfc/md5main.c \
57 setup.exe.manifest \
58 tree-minus.bmp \
59 tree-plus.bmp
60
61 # iniparse.h 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.h \
67 ${INST_SUBDIRS}
68
69 CLEANFILES = setup_version.c
70
71 if MINGWTARGET
72 inilint_extras = \
73 autoload.c \
74 mklink2.cc
75 else
76 inilint_extras =
77 endif
78
79 inilint_LDADD = \
80 libinilex.a libgetopt++/libgetopt++.la
81 inilint_SOURCES = \
82 filemanip.cc \
83 filemanip.h \
84 find.cc \
85 find.h \
86 FindVisitor.cc \
87 FindVisitor.h \
88 LogSingleton.cc \
89 LogSingleton.h \
90 IniDBBuilder.h \
91 inilintmain.cc \
92 iniparse.yy \
93 IniParseFeedback.cc \
94 IniParseFeedback.h \
95 io_stream.h \
96 io_stream.cc \
97 io_stream_file.h \
98 io_stream_file.cc \
99 IOStreamProvider.h \
100 mkdir.cc \
101 mkdir.h \
102 PackageSpecification.cc \
103 PackageSpecification.h \
104 PackageTrust.h \
105 csu_util/rfc1738.cc \
106 csu_util/rfc1738.h \
107 String++.cc \
108 String++.h \
109 $(inilint_extras)
110
111 # workaround to allow omitting -Werror on inilex.cc.
112 noinst_LIBRARIES = libinilex.a
113 libinilex_a_SOURCES = inilex.ll
114 libinilex_a_CXXFLAGS = $(BASECXXFLAGS)
115
116 setup_LDADD = \
117 libinilex.a \
118 -Linst/lib -lgetopt++ -lgcrypt -lgpg-error \
119 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lnetapi32 -luuid -llzma -lbz2 -lz
120 setup_LDFLAGS = -mwindows -Wl,-static -static-libtool-libs
121 setup_SOURCES = \
122 AntiVirus.cc \
123 AntiVirus.h \
124 archive.cc \
125 archive.h \
126 archive_tar.cc \
127 archive_tar.h \
128 archive_tar_file.cc \
129 autoload.c \
130 choose.cc \
131 choose.h \
132 compress.cc \
133 compress.h \
134 compress_bz.cc \
135 compress_bz.h \
136 compress_gz.cc \
137 compress_gz.h \
138 compress_xz.cc \
139 compress_xz.h \
140 ConnectionSetting.cc \
141 ConnectionSetting.h \
142 ControlAdjuster.cc \
143 ControlAdjuster.h \
144 crypto.cc \
145 crypto.h \
146 cyg-pubkey.h \
147 cygpackage.cc \
148 cygpackage.h \
149 desktop.cc \
150 desktop.h \
151 dialog.cc \
152 dialog.h \
153 diskfull.cc \
154 diskfull.h \
155 download.cc \
156 download.h \
157 Exception.cc \
158 Exception.h \
159 find.cc \
160 find.h \
161 FindVisitor.cc \
162 FindVisitor.h \
163 filemanip.cc \
164 filemanip.h \
165 fromcwd.cc \
166 Generic.h \
167 geturl.cc \
168 geturl.h \
169 gpg-packet.cc \
170 gpg-packet.h \
171 ini.cc \
172 ini.h \
173 IniDBBuilder.h \
174 IniDBBuilderPackage.cc \
175 IniDBBuilderPackage.h \
176 iniparse.yy \
177 IniParseFeedback.cc \
178 IniParseFeedback.h \
179 IniParseFindVisitor.cc \
180 IniParseFindVisitor.h \
181 install.cc \
182 io_stream.cc \
183 io_stream.h \
184 io_stream_cygfile.cc \
185 io_stream_cygfile.h \
186 io_stream_file.cc \
187 io_stream_file.h \
188 io_stream_memory.cc \
189 io_stream_memory.h \
190 IOStreamProvider.h \
191 KeysSetting.cc \
192 KeysSetting.h \
193 localdir.cc \
194 localdir.h \
195 LogFile.cc \
196 LogFile.h \
197 LogSingleton.cc \
198 LogSingleton.h \
199 main.cc \
200 mkdir.cc \
201 mkdir.h \
202 mklink2.cc \
203 mklink2.h \
204 mount.cc \
205 mount.h \
206 msg.cc \
207 msg.h \
208 net.cc \
209 net.h \
210 netio.cc \
211 netio.h \
212 nio-ie5.cc \
213 nio-ie5.h \
214 nio-file.cc \
215 nio-file.h \
216 nio-ftp.cc \
217 nio-ftp.h \
218 nio-http.cc \
219 nio-http.h \
220 package_db.cc \
221 package_db.h \
222 package_meta.cc \
223 package_meta.h \
224 package_source.cc \
225 package_source.h \
226 package_version.cc \
227 package_version.h \
228 PackageSpecification.cc \
229 PackageSpecification.h \
230 PackageTrust.h \
231 PickCategoryLine.cc \
232 PickCategoryLine.h \
233 PickLine.h \
234 PickPackageLine.cc \
235 PickPackageLine.h \
236 PickView.cc \
237 PickView.h \
238 postinstall.cc \
239 postinstallresults.cc \
240 postinstallresults.h \
241 prereq.cc \
242 prereq.h \
243 proppage.cc \
244 proppage.h \
245 propsheet.cc \
246 propsheet.h \
247 RECTWrapper.h \
248 res.rc \
249 resource.h \
250 root.cc \
251 root.h \
252 ScanFindVisitor.cc \
253 ScanFindVisitor.h \
254 script.cc \
255 script.h \
256 setup_version.h \
257 setup_version.c \
258 simpsock.cc \
259 simpsock.h \
260 site.cc \
261 site.h \
262 source.cc \
263 source.h \
264 SourceSetting.cc \
265 SourceSetting.h \
266 splash.cc \
267 splash.h \
268 state.cc \
269 state.h \
270 String++.cc \
271 String++.h \
272 threebar.cc \
273 threebar.h \
274 UserSettings.cc \
275 UserSettings.h \
276 win32.cc \
277 win32.h \
278 window.cc \
279 window.h \
280 csu_util/MD5Sum.cc \
281 csu_util/MD5Sum.h \
282 csu_util/rfc1738.cc \
283 csu_util/rfc1738.h \
284 csu_util/version_compare.cc \
285 csu_util/version_compare.h \
286 libmd5-rfc/md5.c \
287 libmd5-rfc/md5.h
288
289 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
290 $(srcdir)/ChangeLog)
291
292 setup_version.c : $(srcdir)/ChangeLog Makefile
293 (echo '#define VERSION_PREFIX "%%% setup-version"';\
294 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
295 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp
296 mv version.tmp setup_version.c
297
298 .rc.o:
299 $(WINDRES) --include-dir $(srcdir) -o $@ $<
300
301 # static const char version_store[] = VERSION_PREFIX " 2.686";
302 setup-src:
303 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
304 cd ${srcdir};\
305 rm -f $$ver;\
306 ln -sf . $$ver;\
307 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
308 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
309 echo $$ver-src.tar.bz2; exec rm -f $$ver
310
311 .PHONY: ${INST_SUBDIRS}
312 ${INST_SUBDIRS}:
313 ${MAKE} -C $@ install
This page took 0.051721 seconds and 6 git commands to generate.