]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
2003-07-30 Robert Collins <rbtcollins@hotmail.com>
[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 = bz2lib zlib libgetopt++ tests
23 SUBDIRS = bz2lib zlib libgetopt++ @RSYNC@ 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 AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
30 -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
31 AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations -Winline
32
33 WINDRES := @WINDRES@
34
35 INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include
36
37 noinst_PROGRAMS = \
38 setup \
39 @INILINT@
40
41 EXTRA_PROGRAMS = inilint
42 ## noinst_PROGRAMS +=inilint
43
44 # to avoid false errors that assembly generates
45 WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \
46 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
47 -Wmissing-declarations -Wcomments $(INCLUDES)
48
49 EXTRA_DIST = \
50 GUIDELINES \
51 check-na.bmp \
52 check-no.bmp \
53 check-yes.bmp \
54 choose-rtarrow.bmp \
55 choose-spin.bmp \
56 cygwin.ico \
57 inilex.l \
58 iniparse.y
59
60 BUILT_SOURCES = setup_version.c \
61 inilex.cc \
62 iniparse.cc
63
64 if MINGWTARGET
65 inilint_extras = \
66 autoload.c \
67 mklink2.cc
68 else
69 inilint_extras =
70 endif
71
72 if ENABLERSYNC
73 rsync_source = \
74 io_stream_rsync.cc \
75 io_stream_rsync.h
76 else
77 rsync_source =
78 endif
79
80 inilint_LDADD = libgetopt++/libgetopt++.la -luser32 -lkernel32
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.cc \
91 IniDBBuilder.h \
92 inilex.cc \
93 inilintmain.cc \
94 iniparse.cc \
95 iniparse.h \
96 IniParseFeedback.cc \
97 IniParseFeedback.h \
98 io_stream.h \
99 io_stream.cc \
100 io_stream_file.h \
101 io_stream_file.cc \
102 IOStreamProvider.h \
103 mkdir.cc \
104 mkdir.h \
105 PackageSpecification.cc \
106 PackageSpecification.h \
107 PackageTrust.h \
108 rfc1738.cc \
109 rfc1738.h \
110 String++.cc \
111 String++.h \
112 $(inilint_extras)
113
114 setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a \
115 libgetopt++/libgetopt++.la \
116 @RSYNCLIB@ \
117 -luser32 -lkernel32 \
118 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
119 setup_LDFLAGS = -mwindows
120 setup_SOURCES = \
121 AntiVirus.cc \
122 AntiVirus.h \
123 archive.cc \
124 archive.h \
125 archive_tar.cc \
126 archive_tar.h \
127 archive_tar_file.cc \
128 autoload.c \
129 category.cc \
130 category.h \
131 choose.cc \
132 choose.h \
133 cistring.cc \
134 cistring.h \
135 compress.cc \
136 compress.h \
137 compress_bz.cc \
138 compress_bz.h \
139 compress_gz.cc \
140 compress_gz.h \
141 cygpackage.cc \
142 cygpackage.h \
143 desktop.cc \
144 desktop.h \
145 dialog.cc \
146 dialog.h \
147 diskfull.cc \
148 diskfull.h \
149 download.cc \
150 download.h \
151 Exception.cc \
152 Exception.h \
153 find.cc \
154 find.h \
155 FindVisitor.cc \
156 FindVisitor.h \
157 FilterVisitor.cc \
158 FilterVisitor.h \
159 filemanip.cc \
160 filemanip.h \
161 fromcwd.cc \
162 Generic.h \
163 geturl.cc \
164 geturl.h \
165 hash.cc \
166 hash.h \
167 ini.cc \
168 ini.h \
169 IniDBBuilder.cc \
170 IniDBBuilder.h \
171 IniDBBuilderPackage.cc \
172 IniDBBuilderPackage.h \
173 inilex.cc \
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 log.cc \
193 log.h \
194 LogFile.cc \
195 LogFile.h \
196 LogSingleton.cc \
197 LogSingleton.h \
198 main.cc \
199 md5.c \
200 md5.h \
201 MD5++.cc \
202 MD5++.h \
203 mkdir.cc \
204 mkdir.h \
205 mklink2.cc \
206 mklink2.h \
207 mount.cc \
208 mount.h \
209 msg.cc \
210 msg.h \
211 net.cc \
212 net.h \
213 netio.cc \
214 netio.h \
215 nio-ie5.cc \
216 nio-ie5.h \
217 nio-file.cc \
218 nio-file.h \
219 nio-ftp.cc \
220 nio-ftp.h \
221 nio-http.cc \
222 nio-http.h \
223 package_db.cc \
224 package_db.h \
225 package_meta.cc \
226 package_meta.h \
227 package_source.cc \
228 package_source.h \
229 package_version.cc \
230 package_version.h \
231 PackageSpecification.cc \
232 PackageSpecification.h \
233 PackageTrust.h \
234 PickCategoryLine.cc \
235 PickCategoryLine.h \
236 PickLine.cc \
237 PickLine.h \
238 PickPackageLine.cc \
239 PickPackageLine.h \
240 PickView.cc \
241 PickView.h \
242 port.h \
243 postinstall.cc \
244 proppage.cc \
245 proppage.h \
246 propsheet.cc \
247 propsheet.h \
248 res.rc \
249 resource.h \
250 rfc1738.cc \
251 rfc1738.h \
252 root.cc \
253 root.h \
254 ScanFindVisitor.cc \
255 ScanFindVisitor.h \
256 script.cc \
257 script.h \
258 setup_version.c \
259 simpsock.cc \
260 simpsock.h \
261 site.cc \
262 site.h \
263 source.cc \
264 source.h \
265 SourceSetting.cc \
266 SourceSetting.h \
267 splash.cc \
268 splash.h \
269 state.cc \
270 state.h \
271 String++.cc \
272 String++.h \
273 threebar.cc \
274 threebar.h \
275 UserSetting.cc \
276 UserSetting.h \
277 UserSettings.cc \
278 UserSettings.h \
279 version.cc \
280 version.h \
281 win32.cc \
282 win32.h \
283 window.cc \
284 window.h \
285 $(rsync_source)
286
287 setup_version.c : $(srcdir)/ChangeLog Makefile
288 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
289 | sed -e 's/\$$Revision:* *//' \
290 -e 's/ *$$.*//'` ;\
291 (echo '#define VERSION_PREFIX "%%% setup-version"';\
292 echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
293 echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
294 mv version.tmp setup_version.c
295
296 %.o: %.rc
297 $(WINDRES) --preprocessor "$(CC) -E -xc-header -DRC_INVOKED" --include-dir $(srcdir) -o $@ $<
298
299 autoload.o: autoload.c
300 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
301 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
302 @AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
303 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
304
305 inilex.o: inilex.cc
306 @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
307 @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
308 @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
310 $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -c -o $@ $<
311
312 iniparse.cc iniparse.h : iniparse.y
313 bison -d -o iniparse.cc $(srcdir)/iniparse.y
314 @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h
315
316 inilex.cc : inilex.l iniparse.h
317 flex -8 $(srcdir)/inilex.l
318 mv lex.yy.c inilex.cc
319
320 # Make a distribution package and tarball
321 release: setup$(EXEEXT) dist-all $(srcdir)/ChangeLog Makefile
322 $(STRIP) setup.exe && \
323 upx --best setup.exe && \
324 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
325 | sed -e 's/\$$Revision:* *//' \
326 -e 's/ *$$.*//'` ;\
327 mv setup.exe setup-$${V}.exe && \
328 mv setup-0.tar.bz2 setup-$${V}.tar.bz2 && \
329 tar cjf setup-$${V}-1-src.tar.bz2 setup-$${V}.tar.bz2
330
331 # Create a snapshot and upload it (requires write access)
332 snapshot: release
333 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
334 | sed -e 's/\$$Revision:* *//' \
335 -e 's/ *$$.*//'` ;\
336 scp -C setup-$${V}.exe setup-$${V}.tar.bz2 $${cygwinsite}:setup-snapshots/
This page took 0.046533 seconds and 5 git commands to generate.