]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
Tidy up eclectic whitespace in Makefile.am.
[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 # Written by Christopher Faylor <cgf@redhat.com>
17 # and Robert Collins <rbtcollins@hotmail.com>
18 #
19 # Makefile for Cygwin installer
20
21 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6 foreign
22 DIST_SUBDIRS = libgetopt++ tests
23 SUBDIRS = libgetopt++ tests
24
25 ## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
26
27 # We would like to use -Winline for C++ as well, but some STL code triggers
28 # this warning. (Bug verified present in gcc-3.3)
29 # -Wno-uninitialized added to deal with g++ 3.4.4's spurious STL warnings
30 # (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22207)
31 BASECXXFLAGS = -Wall -Wno-uninitialized -Wpointer-arith -Wcomments \
32 -Wcast-align -Wwrite-strings
33 AM_CXXFLAGS = -Werror $(BASECXXFLAGS)
34 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline \
35 -Wstrict-prototypes -Wmissing-prototypes
36 WINDRES := @WINDRES@
37 INCLUDES = -I$(srcdir)/libgetopt++/include -I/usr/include/mingw
38
39 noinst_PROGRAMS = setup @INILINT@
40
41 EXTRA_PROGRAMS = inilint
42 ## noinst_PROGRAMS +=inilint
43
44 EXTRA_DIST = \
45 CHANGES \
46 CONTRIBUTORS \
47 COPYING \
48 bootstrap.sh \
49 check-na.bmp \
50 check-no.bmp \
51 check-yes.bmp \
52 choose-rtarrow.bmp \
53 choose-spin.bmp \
54 cygwin.ico \
55 doconfigure \
56 inilex.l \
57 iniparse.y \
58 libmd5-rfc/README \
59 libmd5-rfc/md5main.c \
60 setup.exe.manifest \
61 tree-minus.bmp \
62 tree-plus.bmp
63
64 BUILT_SOURCES = \
65 setup_version.c \
66 inilex.cc \
67 iniparse.cc
68
69 if MINGWTARGET
70 inilint_extras = \
71 autoload.c \
72 mklink2.cc
73 else
74 inilint_extras =
75 endif
76
77 inilint_LDADD = \
78 warnonly-inilex.o libgetopt++/libgetopt++.la \
79 -luser32 -lkernel32
80 inilint_SOURCES = \
81 filemanip.cc \
82 filemanip.h \
83 find.cc \
84 find.h \
85 FindVisitor.cc \
86 FindVisitor.h \
87 LogSingleton.cc \
88 LogSingleton.h \
89 IniDBBuilder.h \
90 inilintmain.cc \
91 iniparse.cc \
92 iniparse.h \
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 # Obviously we are not really building a program called warnonly
112 # However, this dance was the most non-invasive way I could find
113 # of varying CFLAGS for a single file
114 EXTRA_PROGRAMS += warnonly
115 warnonly_CXXFLAGS = $(BASECXXFLAGS)
116 warnonly_SOURCES = inilex.cc
117 EXTRA_setup_SOURCES = $(warnonly_SOURCES)
118 EXTRA_inilint_SOURCES = $(warnonly_SOURCES)
119
120 setup_LDADD = \
121 warnonly-inilex.o libgetopt++/libgetopt++.la \
122 res.o \
123 /usr/lib/mingw/libbz2.a /usr/lib/mingw/libz.a \
124 -luser32 -lkernel32 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
125 setup_LDFLAGS = -mwindows
126 setup_SOURCES = \
127 AntiVirus.cc \
128 AntiVirus.h \
129 archive.cc \
130 archive.h \
131 archive_tar.cc \
132 archive_tar.h \
133 archive_tar_file.cc \
134 autoload.c \
135 choose.cc \
136 choose.h \
137 compress.cc \
138 compress.h \
139 compress_bz.cc \
140 compress_bz.h \
141 compress_gz.cc \
142 compress_gz.h \
143 ConnectionSetting.cc \
144 ConnectionSetting.h \
145 ControlAdjuster.cc \
146 ControlAdjuster.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 ini.cc \
170 ini.h \
171 IniDBBuilder.h \
172 IniDBBuilderPackage.cc \
173 IniDBBuilderPackage.h \
174 iniparse.cc \
175 iniparse.h \
176 IniParseFeedback.cc \
177 IniParseFeedback.h \
178 IniParseFindVisitor.cc \
179 IniParseFindVisitor.h \
180 install.cc \
181 io_stream.cc \
182 io_stream.h \
183 io_stream_cygfile.cc \
184 io_stream_cygfile.h \
185 io_stream_file.cc \
186 io_stream_file.h \
187 io_stream_memory.cc \
188 io_stream_memory.h \
189 IOStreamProvider.h \
190 localdir.cc \
191 localdir.h \
192 LogFile.cc \
193 LogFile.h \
194 LogSingleton.cc \
195 LogSingleton.h \
196 main.cc \
197 mkdir.cc \
198 mkdir.h \
199 mklink2.cc \
200 mklink2.h \
201 mount.cc \
202 mount.h \
203 msg.cc \
204 msg.h \
205 net.cc \
206 net.h \
207 netio.cc \
208 netio.h \
209 nio-ie5.cc \
210 nio-ie5.h \
211 nio-file.cc \
212 nio-file.h \
213 nio-ftp.cc \
214 nio-ftp.h \
215 nio-http.cc \
216 nio-http.h \
217 package_db.cc \
218 package_db.h \
219 package_meta.cc \
220 package_meta.h \
221 package_source.cc \
222 package_source.h \
223 package_version.cc \
224 package_version.h \
225 PackageSpecification.cc \
226 PackageSpecification.h \
227 PackageTrust.h \
228 PickCategoryLine.cc \
229 PickCategoryLine.h \
230 PickLine.h \
231 PickPackageLine.cc \
232 PickPackageLine.h \
233 PickView.cc \
234 PickView.h \
235 postinstall.cc \
236 prereq.cc \
237 prereq.h \
238 proppage.cc \
239 proppage.h \
240 propsheet.cc \
241 propsheet.h \
242 RECTWrapper.h \
243 res.rc \
244 resource.h \
245 root.cc \
246 root.h \
247 ScanFindVisitor.cc \
248 ScanFindVisitor.h \
249 script.cc \
250 script.h \
251 setup_version.h \
252 setup_version.c \
253 simpsock.cc \
254 simpsock.h \
255 site.cc \
256 site.h \
257 source.cc \
258 source.h \
259 SourceSetting.cc \
260 SourceSetting.h \
261 splash.cc \
262 splash.h \
263 state.cc \
264 state.h \
265 String++.cc \
266 String++.h \
267 threebar.cc \
268 threebar.h \
269 UserSetting.cc \
270 UserSetting.h \
271 UserSettings.cc \
272 UserSettings.h \
273 win32.cc \
274 win32.h \
275 window.cc \
276 window.h \
277 csu_util/MD5Sum.cc \
278 csu_util/MD5Sum.h \
279 csu_util/rfc1738.cc \
280 csu_util/rfc1738.h \
281 csu_util/version_compare.cc \
282 csu_util/version_compare.h \
283 libmd5-rfc/md5.c \
284 libmd5-rfc/md5.h
285
286 setup_version.c : $(srcdir)/ChangeLog Makefile
287 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
288 $(srcdir)/ChangeLog` ;\
289 (echo '#define VERSION_PREFIX "%%% setup-version"';\
290 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
291 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
292 mv version.tmp setup_version.c
293
294 %.o: %.rc
295 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
296
297 iniparse.cc iniparse.h : iniparse.y
298 bison -d -o iniparse.cc $(srcdir)/iniparse.y
299 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
300
301 inilex.cc : inilex.l iniparse.h
302 flex -8 $(srcdir)/inilex.l
303 mv lex.yy.c inilex.cc
304
305 # Make a distribution package and tarball
306 release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
307 $(STRIP) setup.exe && \
308 upx --best setup.exe && \
309 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
310 $(srcdir)/ChangeLog` ;\
311 mv setup.exe setup-$${V}.exe && \
312 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
313 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
314
315 # Create a snapshot and upload it (requires write access)
316 snapshot: release
317 V=`sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
318 $(srcdir)/ChangeLog` ;\
319 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.078719 seconds and 5 git commands to generate.