| 1 |
# Generated automatically from Makefile.in.in by configure. |
|---|
| 2 |
## Copyright (c) 2000, Red Hat, Inc. |
|---|
| 3 |
## |
|---|
| 4 |
## This program is free software; you can redistribute it and/or modify |
|---|
| 5 |
## it under the terms of the GNU General Public License as published by |
|---|
| 6 |
## the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 |
## (at your option) any later version. |
|---|
| 8 |
## |
|---|
| 9 |
## A copy of the GNU General Public License can be found at |
|---|
| 10 |
## http://www.gnu.org/ |
|---|
| 11 |
## |
|---|
| 12 |
## Written by Christopher Faylor <cgf@redhat.com> |
|---|
| 13 |
## Adapted for XEmacs by Andy Piper <andy@xemacs.org> |
|---|
| 14 |
## |
|---|
| 15 |
## Makefile for Cygwin installer |
|---|
| 16 |
|
|---|
| 17 |
## For performance and consistency, no built-in rules |
|---|
| 18 |
.SUFFIXES: |
|---|
| 19 |
.SUFFIXES: .c .cc .h .o |
|---|
| 20 |
## ==================== Things "configure" will edit ==================== |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
SHELL = /bin/sh |
|---|
| 24 |
RM = rm -f |
|---|
| 25 |
pwd = /bin/pwd |
|---|
| 26 |
|
|---|
| 27 |
CC=gcc |
|---|
| 28 |
CPP=gcc -E |
|---|
| 29 |
CFLAGS=-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith |
|---|
| 30 |
CPPFLAGS= |
|---|
| 31 |
LDFLAGS= |
|---|
| 32 |
ALLOCA= |
|---|
| 33 |
LN_S=ln -s |
|---|
| 34 |
version=21.4.9 |
|---|
| 35 |
|
|---|
| 36 |
## This will be the name of the generated binary and is set automatically |
|---|
| 37 |
## by configure. |
|---|
| 38 |
PROGNAME=xemacs |
|---|
| 39 |
INSTALLABLES=setup |
|---|
| 40 |
#ifdef USE_GNU_MAKE |
|---|
| 41 |
vpath %.c /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 42 |
vpath %.cc /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 43 |
vpath %.h /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 44 |
vpath %.l /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 45 |
vpath %.y /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 46 |
vpath %.rc /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 47 |
#else |
|---|
| 48 |
VPATH=/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 49 |
#endif |
|---|
| 50 |
|
|---|
| 51 |
## ==================== Where To Install Things ==================== |
|---|
| 52 |
|
|---|
| 53 |
prefix=/usr/local |
|---|
| 54 |
exec_prefix=${prefix} |
|---|
| 55 |
bindir=${exec_prefix}/bin |
|---|
| 56 |
libdir=${exec_prefix}/lib |
|---|
| 57 |
srcdir=/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 58 |
datadir=${prefix}/lib |
|---|
| 59 |
instvardir=${PROGNAME}-${version} |
|---|
| 60 |
top_srcdir=/usr/local/src/xemacs/patched/windows-21-4.cygwin |
|---|
| 61 |
archlibdir=${libdir}/${instvardir}/${configuration} |
|---|
| 62 |
configuration=i686-pc-cygwin |
|---|
| 63 |
moduledir=${libdir}/${instvardir}/${configuration}/modules |
|---|
| 64 |
sitemoduledir=${libdir}/${inststaticdir}/site-modules |
|---|
| 65 |
extra_includes=-I/usr/lib/../include/mingw -I/usr/lib/../include |
|---|
| 66 |
blddir=/usr/local/src/xemacs/patched/windows-21-4.cygwin |
|---|
| 67 |
|
|---|
| 68 |
## ==================== Utility Programs for the Build ================= |
|---|
| 69 |
|
|---|
| 70 |
INSTALL = /usr/local/src/xemacs/patched/windows-21-4.cygwin/lib-src/installexe.sh /usr/bin/install -c |
|---|
| 71 |
INSTALL_PROGRAM = ${INSTALL} |
|---|
| 72 |
INSTALL_DATA = ${INSTALL} -m 644 |
|---|
| 73 |
SHELL = /bin/sh |
|---|
| 74 |
## ========================== Lists of Files =========================== |
|---|
| 75 |
|
|---|
| 76 |
#define NO_SHORTNAMES |
|---|
| 77 |
#define NOT_C_CODE |
|---|
| 78 |
#include "../src/config.h" |
|---|
| 79 |
|
|---|
| 80 |
program_transform_name = s,x,x, |
|---|
| 81 |
|
|---|
| 82 |
CC = gcc |
|---|
| 83 |
CC_FOR_TARGET = $(CC) |
|---|
| 84 |
|
|---|
| 85 |
## -O3 has problems so fix this locally |
|---|
| 86 |
LOCALCFLAGS = $(CFLAGS) -O2 -DMINGW $(extra_includes) |
|---|
| 87 |
CXXFLAGS = $(LOCALCFLAGS) -fno-exceptions -nostdinc++ -fno-rtti |
|---|
| 88 |
|
|---|
| 89 |
WINDRES = windres |
|---|
| 90 |
MINGW_INCLUDES = -I. -I$(srcdir) |
|---|
| 91 |
MINGW_CXXFLAGS = $(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows |
|---|
| 92 |
MINGW_CFLAGS = $(LOCALCFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows |
|---|
| 93 |
MINGW_ZLIB_DIR = /usr/local/lib |
|---|
| 94 |
|
|---|
| 95 |
PROGS = setup.exe |
|---|
| 96 |
XEMACS=${blddir}/src/${PROGNAME} |
|---|
| 97 |
|
|---|
| 98 |
CYGWIN_SIZE=0 |
|---|
| 99 |
WIN32_SIZE=0 |
|---|
| 100 |
KIT_VERSION="" |
|---|
| 101 |
|
|---|
| 102 |
CONFIG_H = ../src/config.h |
|---|
| 103 |
|
|---|
| 104 |
OBJS = \ |
|---|
| 105 |
autoload.o \ |
|---|
| 106 |
choose.o \ |
|---|
| 107 |
concat.o \ |
|---|
| 108 |
desktop.o \ |
|---|
| 109 |
dialog.o \ |
|---|
| 110 |
diskfull.o \ |
|---|
| 111 |
download.o \ |
|---|
| 112 |
find.o \ |
|---|
| 113 |
fromcwd.o \ |
|---|
| 114 |
geturl.o \ |
|---|
| 115 |
hash.o \ |
|---|
| 116 |
ini.o \ |
|---|
| 117 |
inilex.o \ |
|---|
| 118 |
iniparse.o \ |
|---|
| 119 |
init.o \ |
|---|
| 120 |
install.o \ |
|---|
| 121 |
localdir.o \ |
|---|
| 122 |
log.o \ |
|---|
| 123 |
main.o \ |
|---|
| 124 |
mkdir.o \ |
|---|
| 125 |
mklink2.o \ |
|---|
| 126 |
regedit.o \ |
|---|
| 127 |
msg.o \ |
|---|
| 128 |
net.o \ |
|---|
| 129 |
netio.o \ |
|---|
| 130 |
nio-ie5.o \ |
|---|
| 131 |
nio-file.o \ |
|---|
| 132 |
nio-ftp.o \ |
|---|
| 133 |
nio-http.o \ |
|---|
| 134 |
other.o \ |
|---|
| 135 |
postinstall.o \ |
|---|
| 136 |
res.o \ |
|---|
| 137 |
root.o \ |
|---|
| 138 |
simpsock.o \ |
|---|
| 139 |
site.o \ |
|---|
| 140 |
source.o \ |
|---|
| 141 |
splash.o \ |
|---|
| 142 |
state.o \ |
|---|
| 143 |
tar.o \ |
|---|
| 144 |
uninstall.o \ |
|---|
| 145 |
version.o |
|---|
| 146 |
|
|---|
| 147 |
.SUFFIXES: |
|---|
| 148 |
.NOEXPORT: |
|---|
| 149 |
|
|---|
| 150 |
.PHONY: all install |
|---|
| 151 |
|
|---|
| 152 |
all: Makefile $(PROGS) |
|---|
| 153 |
|
|---|
| 154 |
setup.exe: $(OBJS) |
|---|
| 155 |
$(CXX) $(MINGW_CXXFLAGS) -o $@ $(OBJS) \ |
|---|
| 156 |
-lole32 -lwsock32 -lnetapi32 -ladvapi32 \ |
|---|
| 157 |
-luuid -lkernel32 -luser32 \ |
|---|
| 158 |
-L$(MINGW_ZLIB_DIR) -lz -lmingw32 |
|---|
| 159 |
@chmod a-x $@ |
|---|
| 160 |
|
|---|
| 161 |
setup-bin.ini: |
|---|
| 162 |
V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ |
|---|
| 163 |
| sed -e 's/\$$Revision: 1.1 $$.*//'` ;\ |
|---|
| 164 |
$(XEMACS) -batch -vanilla \ |
|---|
| 165 |
-eval '(setq package-net-cygwin32-binary-size $(CYGWIN_SIZE) \ |
|---|
| 166 |
package-net-win32-binary-size $(WIN32_SIZE) \ |
|---|
| 167 |
package-net-kit-version "$(KIT_VERSION)" \ |
|---|
| 168 |
package-net-setup-version "'$$V'")' \ |
|---|
| 169 |
-l ${srcdir}/../lisp/package-net.el \ |
|---|
| 170 |
-f package-net-batch-generate-bin-ini |
|---|
| 171 |
|
|---|
| 172 |
install: |
|---|
| 173 |
@echo; echo "Installing net setup." |
|---|
| 174 |
for file in ${INSTALLABLES} ; do \ |
|---|
| 175 |
(cd .. && $(INSTALL_PROGRAM) netinstall/$${file} ${bindir}/$${file}) ; \ |
|---|
| 176 |
done |
|---|
| 177 |
|
|---|
| 178 |
version.c : $(srcdir)/ChangeLog Makefile |
|---|
| 179 |
V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ |
|---|
| 180 |
| sed -e 's/\$$Revision:* *//' \ |
|---|
| 181 |
-e 's/ *$$.*//'` ;\ |
|---|
| 182 |
echo "char *version = \"$$V\";" > version.tmp ;\ |
|---|
| 183 |
echo "static char *id = \"\\n%%% setup-version $$V\\n\";" >> version.tmp |
|---|
| 184 |
mv version.tmp version.c |
|---|
| 185 |
|
|---|
| 186 |
%.o: %.rc |
|---|
| 187 |
$(WINDRES) --include-dir $(srcdir) -o $@ $< |
|---|
| 188 |
|
|---|
| 189 |
%.o: %.c |
|---|
| 190 |
$(CC) $(MINGW_CFLAGS) -c -o $@ $< |
|---|
| 191 |
|
|---|
| 192 |
%.o: %.cc |
|---|
| 193 |
$(CC) $(MINGW_CXXFLAGS) -c -o $@ $< |
|---|
| 194 |
|
|---|
| 195 |
iniparse.c iniparse.h : iniparse.y |
|---|
| 196 |
bison -d -o iniparse.c $(srcdir)/iniparse.y |
|---|
| 197 |
|
|---|
| 198 |
inilex.c : inilex.l iniparse.h |
|---|
| 199 |
flex -8 $(srcdir)/inilex.l |
|---|
| 200 |
mv lex.yy.c inilex.c |
|---|
| 201 |
|
|---|
| 202 |
.PHONY: mostlyclean clean distclean realclean extraclean |
|---|
| 203 |
|
|---|
| 204 |
mostlyclean: |
|---|
| 205 |
$(RM) *.o *.i *.ini core $(PROGS) |
|---|
| 206 |
|
|---|
| 207 |
clean: mostlyclean |
|---|
| 208 |
|
|---|
| 209 |
distclean: clean |
|---|
| 210 |
$(RM) GNUmakefile Makefile Makefile.in TAGS |
|---|
| 211 |
|
|---|
| 212 |
realclean: distclean |
|---|
| 213 |
|
|---|
| 214 |
extraclean: distclean |
|---|
| 215 |
$(RM) *~ \#* |
|---|
| 216 |
|
|---|
| 217 |
choose.o: choose.cc win32.h dialog.h resource.h state.h ini.h concat.h \ |
|---|
| 218 |
msg.h log.h find.h reginfo.h |
|---|
| 219 |
concat.o: concat.cc |
|---|
| 220 |
desktop.o: desktop.cc win32.h resource.h ini.h msg.h state.h concat.h \ |
|---|
| 221 |
mkdir.h dialog.h version.h port.h reginfo.h desktop.h |
|---|
| 222 |
dialog.o: dialog.cc win32.h dialog.h msg.h log.h |
|---|
| 223 |
diskfull.o: diskfull.cc win32.h diskfull.h |
|---|
| 224 |
download.o: download.cc win32.h resource.h msg.h ini.h dialog.h \ |
|---|
| 225 |
concat.h geturl.h state.h mkdir.h log.h |
|---|
| 226 |
find.o: find.cc win32.h port.h |
|---|
| 227 |
fromcwd.o: fromcwd.cc win32.h ini.h resource.h concat.h state.h \ |
|---|
| 228 |
dialog.h msg.h find.h version.h port.h |
|---|
| 229 |
geturl.o: geturl.cc win32.h dialog.h \ |
|---|
| 230 |
geturl.h resource.h netio.h msg.h log.h |
|---|
| 231 |
hash.o: hash.cc hash.h |
|---|
| 232 |
ini.o: ini.cc win32.h ini.h resource.h concat.h state.h geturl.h \ |
|---|
| 233 |
dialog.h msg.h mkdir.h log.h reginfo.h version.h |
|---|
| 234 |
inilex.o: inilex.c win32.h \ |
|---|
| 235 |
ini.h \ |
|---|
| 236 |
iniparse.h |
|---|
| 237 |
iniparse.o: iniparse.c ini.h \ |
|---|
| 238 |
iniparse.h \ |
|---|
| 239 |
port.h |
|---|
| 240 |
install.o: install.cc win32.h \ |
|---|
| 241 |
resource.h ini.h dialog.h concat.h geturl.h mkdir.h state.h tar.h \ |
|---|
| 242 |
diskfull.h msg.h regedit.h reginfo.h log.h hash.h port.h desktop.h |
|---|
| 243 |
init.o: init.cc win32.h resource.h dialog.h state.h msg.h log.h |
|---|
| 244 |
uninstall.o: uninstall.cc win32.h \ |
|---|
| 245 |
resource.h ini.h dialog.h concat.h geturl.h mkdir.h state.h tar.h \ |
|---|
| 246 |
diskfull.h msg.h regedit.h reginfo.h log.h hash.h port.h desktop.h |
|---|
| 247 |
localdir.o: localdir.cc win32.h dialog.h resource.h state.h msg.h \ |
|---|
| 248 |
concat.h log.h |
|---|
| 249 |
log.o: log.cc win32.h resource.h msg.h log.h dialog.h state.h concat.h \ |
|---|
| 250 |
mkdir.h |
|---|
| 251 |
main.o: main.cc win32.h resource.h dialog.h state.h msg.h netio.h \ |
|---|
| 252 |
find.h log.h port.h |
|---|
| 253 |
mkdir.o: mkdir.cc win32.h mkdir.h |
|---|
| 254 |
mklink2.o: mklink2.c win32.h /usr/include/w32api/shlobj.h |
|---|
| 255 |
msg.o: msg.cc win32.h dialog.h log.h |
|---|
| 256 |
net.o: net.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 257 |
netio.o: netio.cc win32.h resource.h state.h msg.h netio.h nio-file.h \ |
|---|
| 258 |
nio-ie5.h nio-http.h nio-ftp.h dialog.h log.h port.h |
|---|
| 259 |
nio-file.o: nio-file.cc win32.h netio.h nio-file.h resource.h msg.h |
|---|
| 260 |
nio-ftp.o: nio-ftp.cc win32.h resource.h state.h simpsock.h log.h \ |
|---|
| 261 |
netio.h nio-ftp.h |
|---|
| 262 |
nio-http.o: nio-http.cc win32.h resource.h state.h simpsock.h msg.h \ |
|---|
| 263 |
netio.h nio-http.h |
|---|
| 264 |
nio-ie5.o: nio-ie5.cc win32.h resource.h state.h dialog.h msg.h \ |
|---|
| 265 |
netio.h nio-ie5.h |
|---|
| 266 |
other.o: other.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 267 |
postinstall.o: postinstall.cc win32.h state.h dialog.h find.h concat.h \ |
|---|
| 268 |
port.h |
|---|
| 269 |
regedit.o: regedit.cc win32.h reginfo.h regedit.h msg.h resource.h \ |
|---|
| 270 |
dialog.h |
|---|
| 271 |
root.o: root.cc win32.h dialog.h resource.h state.h msg.h regedit.h \ |
|---|
| 272 |
reginfo.h concat.h log.h |
|---|
| 273 |
simpsock.o: simpsock.cc win32.h simpsock.h msg.h |
|---|
| 274 |
site.o: site.cc win32.h dialog.h resource.h state.h geturl.h msg.h \ |
|---|
| 275 |
concat.h regedit.h reginfo.h log.h port.h |
|---|
| 276 |
source.o: source.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 277 |
splash.o: splash.cc win32.h dialog.h resource.h msg.h version.h |
|---|
| 278 |
state.o: state.cc state.h |
|---|
| 279 |
tar.o: tar.cc win32.h tar.h mkdir.h log.h port.h |
|---|
| 280 |
version.o: version.c |
|---|