]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
* Makefile.am (inilint_extras): Remove autoload.c.
[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 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
29 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
30 -Wstrict-prototypes -Wmissing-prototypes
31 AM_YFLAGS = -d
32 AM_LFLAGS = -8
33 WINDRES = @WINDRES@
34 AM_CPPFLAGS = -DLZMA_API_STATIC -I$(srcdir)/libgetopt++/include -I${srcdir}/regex
35
36 noinst_PROGRAMS = setup @INILINT@
37
38 EXTRA_PROGRAMS = inilint
39 ## noinst_PROGRAMS +=inilint
40
41 EXTRA_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)
59 BUILT_SOURCES = \
60 setup_version.c \
61 iniparse.hh
62
63 CLEANFILES = setup_version.c
64
65 if MINGWTARGET
66 inilint_extras = \
67 mklink2.cc
68 else
69 inilint_extras =
70 endif
71
72 inilint_LDADD = \
73 libgetopt++/libgetopt++.la
74 inilint_SOURCES = \
75 filemanip.cc \
76 filemanip.h \
77 find.cc \
78 find.h \
79 FindVisitor.cc \
80 FindVisitor.h \
81 LogSingleton.cc \
82 LogSingleton.h \
83 IniDBBuilder.h \
84 inilintmain.cc \
85 inilex.ll \
86 iniparse.yy \
87 IniParseFeedback.cc \
88 IniParseFeedback.h \
89 io_stream.h \
90 io_stream.cc \
91 io_stream_file.h \
92 io_stream_file.cc \
93 IOStreamProvider.h \
94 mkdir.cc \
95 mkdir.h \
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 $(inilint_extras)
104
105 regex_SOURCES = regex/regex.c
106 setup_LDADD = \
107 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
108 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet
109 setup_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
110 setup_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 choose.cc \
119 choose.h \
120 compress.cc \
121 compress.h \
122 compress_bz.cc \
123 compress_bz.h \
124 compress_gz.cc \
125 compress_gz.h \
126 compress_xz.cc \
127 compress_xz.h \
128 ConnectionSetting.cc \
129 ConnectionSetting.h \
130 ControlAdjuster.cc \
131 ControlAdjuster.h \
132 crypto.cc \
133 crypto.h \
134 cyg-pubkey.h \
135 cygpackage.cc \
136 cygpackage.h \
137 desktop.cc \
138 desktop.h \
139 dialog.cc \
140 dialog.h \
141 diskfull.cc \
142 diskfull.h \
143 download.cc \
144 download.h \
145 Exception.cc \
146 Exception.h \
147 find.cc \
148 find.h \
149 FindVisitor.cc \
150 FindVisitor.h \
151 filemanip.cc \
152 filemanip.h \
153 fromcwd.cc \
154 Generic.h \
155 geturl.cc \
156 geturl.h \
157 gpg-packet.cc \
158 gpg-packet.h \
159 ini.cc \
160 ini.h \
161 IniDBBuilder.h \
162 IniDBBuilderPackage.cc \
163 IniDBBuilderPackage.h \
164 inilex.ll \
165 iniparse.yy \
166 IniParseFeedback.cc \
167 IniParseFeedback.h \
168 IniParseFindVisitor.cc \
169 IniParseFindVisitor.h \
170 install.cc \
171 io_stream.cc \
172 io_stream.h \
173 io_stream_cygfile.cc \
174 io_stream_cygfile.h \
175 io_stream_file.cc \
176 io_stream_file.h \
177 io_stream_memory.cc \
178 io_stream_memory.h \
179 IOStreamProvider.h \
180 KeysSetting.cc \
181 KeysSetting.h \
182 localdir.cc \
183 localdir.h \
184 LogFile.cc \
185 LogFile.h \
186 LogSingleton.cc \
187 LogSingleton.h \
188 main.cc \
189 mkdir.cc \
190 mkdir.h \
191 mklink2.cc \
192 mklink2.h \
193 mount.cc \
194 mount.h \
195 msg.cc \
196 msg.h \
197 net.cc \
198 net.h \
199 netio.cc \
200 netio.h \
201 nio-ie5.cc \
202 nio-ie5.h \
203 nio-file.cc \
204 nio-file.h \
205 nio-ftp.cc \
206 nio-ftp.h \
207 nio-http.cc \
208 nio-http.h \
209 package_db.cc \
210 package_db.h \
211 package_meta.cc \
212 package_meta.h \
213 package_source.cc \
214 package_source.h \
215 package_version.cc \
216 package_version.h \
217 PackageSpecification.cc \
218 PackageSpecification.h \
219 PackageTrust.h \
220 PickCategoryLine.cc \
221 PickCategoryLine.h \
222 PickLine.h \
223 PickPackageLine.cc \
224 PickPackageLine.h \
225 PickView.cc \
226 PickView.h \
227 postinstall.cc \
228 postinstallresults.cc \
229 postinstallresults.h \
230 prereq.cc \
231 prereq.h \
232 processlist.cc \
233 processlist.h \
234 proppage.cc \
235 proppage.h \
236 propsheet.cc \
237 propsheet.h \
238 RECTWrapper.h \
239 ${regex_SOURCES} \
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 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
280 $(srcdir)/ChangeLog)
281
282 setup_version.c : $(srcdir)/ChangeLog Makefile
283 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
284 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
285 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
286 mv version.tmp setup_version.c
287
288 # setup.exe.manifest is included in res.rc
289 res.o: setup.exe.manifest
290
291 .rc.o:
292 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
293
294 # static const char version_store[] = VERSION_PREFIX " 2.686";
295 setup-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.0491 seconds and 6 git commands to generate.