]> cygwin.com Git - cygwin-apps/setup.git/blame_incremental - Makefile.am
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / Makefile.am
... / ...
CommitLineData
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
22SUBDIRS = bz2lib zlib libgetopt++
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
33INCLUDES = -I$(srcdir)/bz2lib -I$(srcdir)/libgetopt++/include
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
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
52BUILT_SOURCES = setup_version.c \
53 inilex.cc \
54 iniparse.cc
55
56setup_LDADD = res.o zlib/libzcygw.a bz2lib/libbz2.a libgetopt++/libgetopt++.la \
57 -lstdc++ -luser32 -lkernel32 \
58 -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid
59setup_SOURCES = \
60 archive.cc \
61 archive.h \
62 archive_tar.cc \
63 archive_tar.h \
64 archive_tar_file.cc \
65 autoload.c \
66 category.cc \
67 category.h \
68 choose.cc \
69 choose.h \
70 cistring.cc \
71 cistring.h \
72 compress.cc \
73 compress.h \
74 compress_bz.cc \
75 compress_bz.h \
76 compress_gz.cc \
77 compress_gz.h \
78 concat.cc \
79 concat.h \
80 cygpackage.cc \
81 cygpackage.h \
82 desktop.cc \
83 desktop.h \
84 dialog.cc \
85 dialog.h \
86 diskfull.cc \
87 diskfull.h \
88 download.cc \
89 find.cc \
90 find.h \
91 filemanip.cc \
92 filemanip.h \
93 fromcwd.cc \
94 geturl.cc \
95 geturl.h \
96 hash.cc \
97 hash.h \
98 ini.cc \
99 ini.h \
100 inilex.cc \
101 iniparse.cc \
102 iniparse.h \
103 install.cc \
104 io_stream.cc \
105 io_stream.h \
106 io_stream_cygfile.cc \
107 io_stream_cygfile.h \
108 io_stream_file.cc \
109 io_stream_file.h \
110 io_stream_memory.cc \
111 io_stream_memory.h \
112 list.h \
113 localdir.cc \
114 localdir.h \
115 log.cc \
116 log.h \
117 main.cc \
118 mkdir.cc \
119 mkdir.h \
120 mklink2.cc \
121 mklink2.h \
122 mount.cc \
123 mount.h \
124 msg.cc \
125 msg.h \
126 net.cc \
127 net.h \
128 netio.cc \
129 netio.h \
130 nio-ie5.cc \
131 nio-ie5.h \
132 nio-file.cc \
133 nio-file.h \
134 nio-ftp.cc \
135 nio-ftp.h \
136 nio-http.cc \
137 nio-http.h \
138 package_db.cc \
139 package_db.h \
140 package_meta.cc \
141 package_meta.h \
142 package_source.cc \
143 package_source.h \
144 package_version.cc \
145 package_version.h \
146 PickCategoryLine.cc \
147 PickCategoryLine.h \
148 PickLine.cc \
149 PickLine.h \
150 PickPackageLine.cc \
151 PickPackageLine.h \
152 PickView.cc \
153 PickView.h \
154 port.h \
155 postinstall.cc \
156 proppage.cc \
157 proppage.h \
158 propsheet.cc \
159 propsheet.h \
160 res.rc \
161 resource.h \
162 rfc1738.cc \
163 rfc1738.h \
164 root.cc \
165 root.h \
166 script.cc \
167 script.h \
168 setup_version.c \
169 simpsock.cc \
170 simpsock.h \
171 site.cc \
172 site.h \
173 source.cc \
174 source.h \
175 splash.cc \
176 splash.h \
177 state.cc \
178 state.h \
179 String++.cc \
180 String++.h \
181 threebar.cc \
182 threebar.h \
183 version.cc \
184 version.h \
185 win32.cc \
186 win32.h \
187 window.cc \
188 window.h
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
202autoload.o: autoload.c
203@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
204@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
205@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
206 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions
207
208inilex.o: inilex.cc
209@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
210@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
211@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
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.025752 seconds and 5 git commands to generate.