]> cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.am
d174640c3d67b65cdd9a5dded3d211891bd8cad5
[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@$(EXEEXT) @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 inilint_LDADD = \
66 libgetopt++/libgetopt++.la
67 inilint_SOURCES = \
68 filemanip.cc \
69 filemanip.h \
70 find.cc \
71 find.h \
72 FindVisitor.cc \
73 FindVisitor.h \
74 LogSingleton.cc \
75 LogSingleton.h \
76 IniDBBuilder.h \
77 inilintmain.cc \
78 inilex.ll \
79 iniparse.yy \
80 IniParseFeedback.cc \
81 IniParseFeedback.h \
82 io_stream.h \
83 io_stream.cc \
84 io_stream_file.h \
85 io_stream_file.cc \
86 IOStreamProvider.h \
87 mkdir.cc \
88 mkdir.h \
89 mklink2.cc \
90 PackageSpecification.cc \
91 PackageSpecification.h \
92 PackageTrust.h \
93 csu_util/rfc1738.cc \
94 csu_util/rfc1738.h \
95 String++.cc \
96 String++.h
97
98 @SETUP@_LDADD = \
99 libgetopt++/libgetopt++.la -lgcrypt -lgpg-error -llzma -lbz2 -lz \
100 -lshlwapi -lcomctl32 -lole32 -lwsock32 -lpsapi -luuid -lntdll -lwininet -lmingw32
101 @SETUP@_LDFLAGS = -mwindows -Wc,-static -static-libtool-libs
102 @SETUP@_SOURCES = \
103 AntiVirus.cc \
104 AntiVirus.h \
105 archive.cc \
106 archive.h \
107 archive_tar.cc \
108 archive_tar.h \
109 archive_tar_file.cc \
110 choose.cc \
111 choose.h \
112 compress.cc \
113 compress.h \
114 compress_bz.cc \
115 compress_bz.h \
116 compress_gz.cc \
117 compress_gz.h \
118 compress_xz.cc \
119 compress_xz.h \
120 ConnectionSetting.cc \
121 ConnectionSetting.h \
122 ControlAdjuster.cc \
123 ControlAdjuster.h \
124 crypto.cc \
125 crypto.h \
126 cyg-pubkey.h \
127 cygpackage.cc \
128 cygpackage.h \
129 desktop.cc \
130 desktop.h \
131 dialog.cc \
132 dialog.h \
133 diskfull.cc \
134 diskfull.h \
135 download.cc \
136 download.h \
137 Exception.cc \
138 Exception.h \
139 find.cc \
140 find.h \
141 FindVisitor.cc \
142 FindVisitor.h \
143 filemanip.cc \
144 filemanip.h \
145 fromcwd.cc \
146 Generic.h \
147 geturl.cc \
148 geturl.h \
149 gpg-packet.cc \
150 gpg-packet.h \
151 ini.cc \
152 ini.h \
153 IniDBBuilder.h \
154 IniDBBuilderPackage.cc \
155 IniDBBuilderPackage.h \
156 inilex.ll \
157 iniparse.yy \
158 IniParseFeedback.cc \
159 IniParseFeedback.h \
160 IniParseFindVisitor.cc \
161 IniParseFindVisitor.h \
162 install.cc \
163 io_stream.cc \
164 io_stream.h \
165 io_stream_cygfile.cc \
166 io_stream_cygfile.h \
167 io_stream_file.cc \
168 io_stream_file.h \
169 io_stream_memory.cc \
170 io_stream_memory.h \
171 IOStreamProvider.h \
172 KeysSetting.cc \
173 KeysSetting.h \
174 localdir.cc \
175 localdir.h \
176 LogFile.cc \
177 LogFile.h \
178 LogSingleton.cc \
179 LogSingleton.h \
180 main.cc \
181 mkdir.cc \
182 mkdir.h \
183 mklink2.cc \
184 mklink2.h \
185 mount.cc \
186 mount.h \
187 msg.cc \
188 msg.h \
189 net.cc \
190 net.h \
191 netio.cc \
192 netio.h \
193 nio-ie5.cc \
194 nio-ie5.h \
195 nio-file.cc \
196 nio-file.h \
197 nio-ftp.cc \
198 nio-ftp.h \
199 nio-http.cc \
200 nio-http.h \
201 package_db.cc \
202 package_db.h \
203 package_meta.cc \
204 package_meta.h \
205 package_source.cc \
206 package_source.h \
207 package_version.cc \
208 package_version.h \
209 PackageSpecification.cc \
210 PackageSpecification.h \
211 PackageTrust.h \
212 PickCategoryLine.cc \
213 PickCategoryLine.h \
214 PickLine.h \
215 PickPackageLine.cc \
216 PickPackageLine.h \
217 PickView.cc \
218 PickView.h \
219 postinstall.cc \
220 postinstallresults.cc \
221 postinstallresults.h \
222 prereq.cc \
223 prereq.h \
224 processlist.cc \
225 processlist.h \
226 proppage.cc \
227 proppage.h \
228 propsheet.cc \
229 propsheet.h \
230 RECTWrapper.h \
231 res.rc \
232 resource.h \
233 root.cc \
234 root.h \
235 ScanFindVisitor.cc \
236 ScanFindVisitor.h \
237 script.cc \
238 script.h \
239 setup_version.h \
240 setup_version.c \
241 simpsock.cc \
242 simpsock.h \
243 site.cc \
244 site.h \
245 source.cc \
246 source.h \
247 SourceSetting.cc \
248 SourceSetting.h \
249 splash.cc \
250 splash.h \
251 state.cc \
252 state.h \
253 String++.cc \
254 String++.h \
255 threebar.cc \
256 threebar.h \
257 UserSettings.cc \
258 UserSettings.h \
259 win32.cc \
260 win32.h \
261 window.cc \
262 window.h \
263 csu_util/MD5Sum.cc \
264 csu_util/MD5Sum.h \
265 csu_util/rfc1738.cc \
266 csu_util/rfc1738.h \
267 csu_util/version_compare.cc \
268 csu_util/version_compare.h \
269 regex/regex.c
270
271 VER := $(shell sed -ne 's/^\$$Revi[s]ion: *\([^ ]*\) *$$.*/\1/p' \
272 $(srcdir)/ChangeLog)
273
274 setup_version.c : $(srcdir)/ChangeLog Makefile
275 $(AM_V_GEN)(echo '#define VERSION_PREFIX "%%% setup-version"';\
276 echo 'static const char version_store[] = VERSION_PREFIX " '${VER}'";';\
277 echo 'const char *setup_version = version_store + sizeof (VERSION_PREFIX);') > version.tmp && \
278 mv version.tmp setup_version.c
279
280 # setup.exe.manifest is included in res.rc
281 res.o: setup.exe.manifest
282
283 .rc.o:
284 $(AM_V_GEN)$(WINDRES) --include-dir $(srcdir) -o $@ $<
285
286 # static const char version_store[] = VERSION_PREFIX " 2.686";
287 setup-src:
288 @ver=setup-$$(sed -n 's/^static const char version_store.* VERSION_PREFIX " \([^"]*\)".*$$/\1/p' setup_version.c);\
289 cd ${srcdir};\
290 rm -f $$ver;\
291 ln -sf . $$ver;\
292 cvs status -R | sed -n "s%^ *Repository revision:.*/cvs/cygwin-apps/setup/\(.*\),v%$$ver/\1%p" |\
293 sort | tar -T - -cjf ${CURDIR}/$$ver-src.tar.bz2;\
294 echo $$ver-src.tar.bz2; exec rm -f $$ver
295
This page took 0.047142 seconds and 5 git commands to generate.