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