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