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