]>
Commit | Line | Data |
---|---|---|
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 | ||
21 | AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.6 | |
9063358a | 22 | SUBDIRS = bz2lib zlib |
f6100b6f RC |
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 -mwindows | |
29 | AM_CXXFLAGS = $(AM_CFLAGS) -fno-rtti | |
30 | ||
31 | WINDRES := @WINDRES@ | |
32 | ||
33 | INCLUDES = -I$(srcdir)/bz2lib | |
34 | ||
35 | noinst_PROGRAMS = setup | |
36 | ||
37 | # to avoid false errors that assembly generates | |
38 | WARNONLY_CFLAGS = -Winline -Wall -Wpointer-arith -Wcast-align \ | |
39 | -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ | |
40 | -Wmissing-declarations -Wcomments $(INCLUDES) -mwindows | |
41 | ||
42 | BUILT_SOURCES = setup_version.c \ | |
43 | inilex.cc \ | |
44 | iniparse.cc | |
45 | ||
46 | setup_LDADD = zlib/libzcygw.a bz2lib/libbz2.a -lmingw32 -luser32 -lkernel32 \ | |
47 | -lcomctl32 -lole32 -lwsock32 -lnetapi32 -ladvapi32 -luuid | |
48 | setup_SOURCES = \ | |
49 | archive.cc \ | |
50 | archive_tar.cc \ | |
51 | archive_tar_file.cc \ | |
52 | autoload.c \ | |
53 | category.cc \ | |
54 | choose.cc \ | |
55 | cistring.cc \ | |
56 | compress.cc \ | |
57 | compress_bz.cc \ | |
58 | compress_gz.cc \ | |
59 | concat.cc \ | |
60 | cygpackage.cc \ | |
61 | desktop.cc \ | |
62 | dialog.cc \ | |
63 | diskfull.cc \ | |
64 | download.cc \ | |
65 | find.cc \ | |
66 | filemanip.cc \ | |
67 | fromcwd.cc \ | |
68 | GetOption.cc \ | |
69 | geturl.cc \ | |
70 | hash.cc \ | |
71 | ini.cc \ | |
72 | inilex.cc \ | |
73 | iniparse.cc \ | |
74 | iniparse.h \ | |
75 | install.cc \ | |
76 | io_stream.cc \ | |
77 | io_stream_cygfile.cc \ | |
78 | io_stream_file.cc \ | |
79 | io_stream_memory.cc \ | |
80 | localdir.cc \ | |
81 | log.cc \ | |
82 | main.cc \ | |
83 | getopt.c \ | |
84 | mkdir.cc \ | |
85 | mklink2.cc \ | |
86 | mount.cc \ | |
87 | msg.cc \ | |
88 | net.cc \ | |
89 | netio.cc \ | |
90 | nio-ie5.cc \ | |
91 | nio-file.cc \ | |
92 | nio-ftp.cc \ | |
93 | nio-http.cc \ | |
94 | Option.cc \ | |
95 | package_db.cc \ | |
96 | package_meta.cc \ | |
97 | package_source.cc \ | |
98 | package_version.cc \ | |
99 | PickCategoryLine.cc \ | |
100 | PickLine.cc \ | |
101 | PickPackageLine.cc \ | |
102 | PickView.cc \ | |
103 | postinstall.cc \ | |
104 | proppage.cc \ | |
105 | propsheet.cc \ | |
106 | res.rc \ | |
107 | rfc1738.cc \ | |
108 | root.cc \ | |
109 | script.cc \ | |
110 | setup_version.c \ | |
111 | simpsock.cc \ | |
112 | site.cc \ | |
113 | source.cc \ | |
114 | splash.cc \ | |
115 | state.cc \ | |
116 | String++.cc \ | |
117 | threebar.cc \ | |
118 | version.cc \ | |
119 | win32.cc \ | |
120 | window.cc | |
121 | ||
122 | setup_version.c : $(srcdir)/ChangeLog Makefile | |
123 | V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ | |
124 | | sed -e 's/\$$Revision:* *//' \ | |
125 | -e 's/ *$$.*//'` ;\ | |
126 | (echo '#define VERSION_PREFIX "%%% setup-version"';\ | |
127 | echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\ | |
128 | echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\ | |
129 | mv version.tmp setup_version.c | |
130 | ||
131 | %.o: %.rc | |
132 | $(WINDRES) --include-dir $(srcdir) -o $@ $< | |
133 | ||
134 | ||
135 | ## add in dependencies from depcomp | |
136 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/autoload.Po@am__quote@ | |
137 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/inilex.Po@am__quote@ | |
138 | ||
139 | autoload.o: autoload.c | |
140 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
141 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
142 | @AMDEP_TRUE@ $(CDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
143 | $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CFLAGS) -c -o $@ $< -fno-inline-functions | |
144 | ||
145 | inilex.o: inilex.cc | |
146 | @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
147 | @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ | |
148 | @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
149 | $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
150 | $(AM_CPPFLAGS) $(CPPFLAGS) $(WARNONLY_CFLAGS) $(CXXFLAGS) -fno-rtti -c -o $@ $< | |
151 | ||
152 | iniparse.cc iniparse.h : iniparse.y | |
153 | bison -d -o iniparse.cc $(srcdir)/iniparse.y | |
154 | @mv iniparse.cc.h iniparse.h 2>/dev/null || mv iniparse.hh iniparse.h | |
155 | ||
156 | inilex.cc : inilex.l iniparse.h | |
157 | flex -8 $(srcdir)/inilex.l | |
158 | mv lex.yy.c inilex.cc |