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