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