| 1 |
.SUFFIXES: |
|---|
| 2 |
.SUFFIXES: .c .cc .h .o |
|---|
| 3 |
SHELL = /bin/sh |
|---|
| 4 |
RM = rm -f |
|---|
| 5 |
pwd = /bin/pwd |
|---|
| 6 |
CC=gcc |
|---|
| 7 |
CPP=gcc -E |
|---|
| 8 |
CFLAGS=-O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith |
|---|
| 9 |
CPPFLAGS= |
|---|
| 10 |
LDFLAGS= |
|---|
| 11 |
ALLOCA= |
|---|
| 12 |
LN_S=ln -s |
|---|
| 13 |
version=21.4.9 |
|---|
| 14 |
PROGNAME=xemacs |
|---|
| 15 |
INSTALLABLES=setup |
|---|
| 16 |
# vpath %.c /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 17 |
# vpath %.cc /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 18 |
# vpath %.h /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 19 |
# vpath %.l /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 20 |
# vpath %.y /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 21 |
# vpath %.rc /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 22 |
prefix=/usr/local |
|---|
| 23 |
exec_prefix=${prefix} |
|---|
| 24 |
bindir=${exec_prefix}/bin |
|---|
| 25 |
libdir=${exec_prefix}/lib |
|---|
| 26 |
#srcdir=/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall |
|---|
| 27 |
srcdir=. |
|---|
| 28 |
datadir=${prefix}/lib |
|---|
| 29 |
instvardir=${PROGNAME}-${version} |
|---|
| 30 |
top_srcdir=/usr/local/src/xemacs/patched/windows-21-4.cygwin |
|---|
| 31 |
archlibdir=${libdir}/${instvardir}/${configuration} |
|---|
| 32 |
configuration=i686-pc-cygwin |
|---|
| 33 |
moduledir=${libdir}/${instvardir}/${configuration}/modules |
|---|
| 34 |
sitemoduledir=${libdir}/${inststaticdir}/site-modules |
|---|
| 35 |
#extra_includes=-I/usr/lib/../include/mingw -I/usr/lib/../include |
|---|
| 36 |
extra_includes=-I/usr/include/mingw |
|---|
| 37 |
blddir=/usr/local/src/xemacs/patched/windows-21-4.cygwin |
|---|
| 38 |
INSTALL = /usr/local/src/xemacs/patched/windows-21-4.cygwin/lib-src/installexe.sh /usr/bin/install -c |
|---|
| 39 |
INSTALL_PROGRAM = ${INSTALL} |
|---|
| 40 |
INSTALL_DATA = ${INSTALL} -m 644 |
|---|
| 41 |
SHELL = /bin/sh |
|---|
| 42 |
program_transform_name = s,x,x, |
|---|
| 43 |
CC = gcc |
|---|
| 44 |
CC_FOR_TARGET = $(CC) |
|---|
| 45 |
LOCALCFLAGS = $(CFLAGS) -O2 -DMINGW $(extra_includes) |
|---|
| 46 |
CXXFLAGS = $(LOCALCFLAGS) -fno-exceptions -nostdinc++ -fno-rtti |
|---|
| 47 |
WINDRES = windres |
|---|
| 48 |
MINGW_INCLUDES = -I. -I$(srcdir) |
|---|
| 49 |
MINGW_CXXFLAGS = $(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows |
|---|
| 50 |
MINGW_CFLAGS = $(LOCALCFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows |
|---|
| 51 |
MINGW_ZLIB_DIR = /usr/lib/mingw |
|---|
| 52 |
PROG = setup.exe |
|---|
| 53 |
PROGJ = setup-ja.exe |
|---|
| 54 |
XEMACS=${blddir}/src/${PROGNAME} |
|---|
| 55 |
CYGWIN_SIZE=0 |
|---|
| 56 |
WIN32_SIZE=0 |
|---|
| 57 |
KIT_VERSION="" |
|---|
| 58 |
CONFIG_H = ../src/config.h |
|---|
| 59 |
OBJS = \ |
|---|
| 60 |
autoload.o \ |
|---|
| 61 |
choose.o \ |
|---|
| 62 |
concat.o \ |
|---|
| 63 |
desktop.o \ |
|---|
| 64 |
dialog.o \ |
|---|
| 65 |
diskfull.o \ |
|---|
| 66 |
download.o \ |
|---|
| 67 |
find.o \ |
|---|
| 68 |
fromcwd.o \ |
|---|
| 69 |
geturl.o \ |
|---|
| 70 |
hash.o \ |
|---|
| 71 |
ini.o \ |
|---|
| 72 |
inilex.o \ |
|---|
| 73 |
iniparse.o \ |
|---|
| 74 |
init.o \ |
|---|
| 75 |
install.o \ |
|---|
| 76 |
localdir.o \ |
|---|
| 77 |
log.o \ |
|---|
| 78 |
main.o \ |
|---|
| 79 |
mkdir.o \ |
|---|
| 80 |
mklink2.o \ |
|---|
| 81 |
regedit.o \ |
|---|
| 82 |
msg.o \ |
|---|
| 83 |
net.o \ |
|---|
| 84 |
netio.o \ |
|---|
| 85 |
nio-ie5.o \ |
|---|
| 86 |
nio-file.o \ |
|---|
| 87 |
nio-ftp.o \ |
|---|
| 88 |
nio-http.o \ |
|---|
| 89 |
other.o \ |
|---|
| 90 |
postinstall.o \ |
|---|
| 91 |
root.o \ |
|---|
| 92 |
simpsock.o \ |
|---|
| 93 |
site.o \ |
|---|
| 94 |
source.o \ |
|---|
| 95 |
splash.o \ |
|---|
| 96 |
state.o \ |
|---|
| 97 |
tar.o \ |
|---|
| 98 |
uninstall.o \ |
|---|
| 99 |
version.o |
|---|
| 100 |
.SUFFIXES: |
|---|
| 101 |
.NOEXPORT: |
|---|
| 102 |
.PHONY: all install |
|---|
| 103 |
all: $(PROG) $(PROGJ) |
|---|
| 104 |
|
|---|
| 105 |
$(PROG): $(OBJS) res.o |
|---|
| 106 |
$(CXX) $(MINGW_CXXFLAGS) -o $@ $(OBJS) res.o \ |
|---|
| 107 |
-lole32 -lwsock32 -lnetapi32 -ladvapi32 \ |
|---|
| 108 |
-luuid -lkernel32 -luser32 \ |
|---|
| 109 |
-L$(MINGW_ZLIB_DIR) -Wl,-Bstatic -lz -Wl,-Bdynamic -lmingw32 |
|---|
| 110 |
@chmod a-x $@ |
|---|
| 111 |
|
|---|
| 112 |
$(PROGJ): $(OBJS) res-ja.o |
|---|
| 113 |
$(CXX) $(MINGW_CXXFLAGS) -o $@ $(OBJS) res-ja.o \ |
|---|
| 114 |
-lole32 -lwsock32 -lnetapi32 -ladvapi32 \ |
|---|
| 115 |
-luuid -lkernel32 -luser32 \ |
|---|
| 116 |
-L$(MINGW_ZLIB_DIR) -Wl,-Bstatic -lz -Wl,-Bdynamic -lmingw32 |
|---|
| 117 |
@chmod a-x $@ |
|---|
| 118 |
|
|---|
| 119 |
setup-bin.ini: |
|---|
| 120 |
V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ |
|---|
| 121 |
| sed -e 's/\$$Revision: 1.6 $$.*//'` ;\ |
|---|
| 122 |
$(XEMACS) -batch -vanilla \ |
|---|
| 123 |
-eval '(setq package-net-cygwin32-binary-size $(CYGWIN_SIZE) \ |
|---|
| 124 |
package-net-win32-binary-size $(WIN32_SIZE) \ |
|---|
| 125 |
package-net-kit-version "$(KIT_VERSION)" \ |
|---|
| 126 |
package-net-setup-version "'$$V'")' \ |
|---|
| 127 |
-l ${srcdir}/../lisp/package-net.el \ |
|---|
| 128 |
-f package-net-batch-generate-bin-ini |
|---|
| 129 |
install: |
|---|
| 130 |
@echo; echo "Installing net setup." |
|---|
| 131 |
for file in ${INSTALLABLES} ; do \ |
|---|
| 132 |
(cd .. && $(INSTALL_PROGRAM) netinstall/$${file} ${bindir}/$${file}) ; \ |
|---|
| 133 |
done |
|---|
| 134 |
# version.c : $(srcdir)/ChangeLog Makefile |
|---|
| 135 |
# V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \ |
|---|
| 136 |
# | sed -e 's/\$$Revision:* *//' \ |
|---|
| 137 |
# -e 's/ *$$.*//'` ;\ |
|---|
| 138 |
# echo "char *version = \"$$V\";" > version.tmp ;\ |
|---|
| 139 |
# echo "static char *id = \"\\n%%% setup-version $$V\\n\";" >> version.tmp |
|---|
| 140 |
# mv version.tmp version.c |
|---|
| 141 |
%.o: %.rc |
|---|
| 142 |
$(WINDRES) --include-dir $(srcdir) -o $@ $< |
|---|
| 143 |
|
|---|
| 144 |
RC=rc |
|---|
| 145 |
|
|---|
| 146 |
res-ja.o: res-ja.rc |
|---|
| 147 |
$(RC) /i $(srcdir) /fo $(@:.o=.res) $< |
|---|
| 148 |
$(WINDRES) -I res -O coff $(@:.o=.res) $@ |
|---|
| 149 |
|
|---|
| 150 |
%.o: %.c |
|---|
| 151 |
$(CC) $(MINGW_CFLAGS) -c -o $@ $< |
|---|
| 152 |
%.o: %.cc |
|---|
| 153 |
$(CC) $(MINGW_CXXFLAGS) -c -o $@ $< |
|---|
| 154 |
iniparse.c iniparse.h : iniparse.y |
|---|
| 155 |
bison -d -o iniparse.c iniparse.y |
|---|
| 156 |
inilex.c : inilex.l iniparse.h |
|---|
| 157 |
flex -8 inilex.l |
|---|
| 158 |
mv lex.yy.c inilex.c |
|---|
| 159 |
.PHONY: mostlyclean clean distclean realclean extraclean |
|---|
| 160 |
mostlyclean: |
|---|
| 161 |
$(RM) *.o *.i *.ini core $(PROGS) inilex.c iniparse.c iniparse.h |
|---|
| 162 |
clean: mostlyclean |
|---|
| 163 |
distclean: clean |
|---|
| 164 |
$(RM) GNUmakefile Makefile Makefile.in TAGS |
|---|
| 165 |
realclean: distclean |
|---|
| 166 |
extraclean: distclean |
|---|
| 167 |
$(RM) *~ \#* |
|---|
| 168 |
choose.o: choose.cc win32.h dialog.h resource.h state.h ini.h concat.h \ |
|---|
| 169 |
msg.h log.h find.h reginfo.h |
|---|
| 170 |
concat.o: concat.cc |
|---|
| 171 |
desktop.o: desktop.cc win32.h resource.h ini.h msg.h state.h concat.h \ |
|---|
| 172 |
mkdir.h dialog.h version.h port.h reginfo.h desktop.h |
|---|
| 173 |
dialog.o: dialog.cc win32.h dialog.h msg.h log.h |
|---|
| 174 |
diskfull.o: diskfull.cc win32.h diskfull.h |
|---|
| 175 |
download.o: download.cc win32.h resource.h msg.h ini.h dialog.h \ |
|---|
| 176 |
concat.h geturl.h state.h mkdir.h log.h |
|---|
| 177 |
find.o: find.cc win32.h port.h |
|---|
| 178 |
fromcwd.o: fromcwd.cc win32.h ini.h resource.h concat.h state.h \ |
|---|
| 179 |
dialog.h msg.h find.h version.h port.h |
|---|
| 180 |
geturl.o: geturl.cc win32.h dialog.h \ |
|---|
| 181 |
geturl.h resource.h netio.h msg.h log.h |
|---|
| 182 |
hash.o: hash.cc hash.h |
|---|
| 183 |
ini.o: ini.cc win32.h ini.h resource.h concat.h state.h geturl.h \ |
|---|
| 184 |
dialog.h msg.h mkdir.h log.h reginfo.h version.h |
|---|
| 185 |
inilex.o: inilex.c win32.h \ |
|---|
| 186 |
ini.h \ |
|---|
| 187 |
iniparse.h |
|---|
| 188 |
iniparse.o: iniparse.c ini.h \ |
|---|
| 189 |
iniparse.h \ |
|---|
| 190 |
port.h |
|---|
| 191 |
install.o: install.cc win32.h \ |
|---|
| 192 |
resource.h ini.h dialog.h concat.h geturl.h mkdir.h state.h tar.h \ |
|---|
| 193 |
diskfull.h msg.h regedit.h reginfo.h log.h hash.h port.h desktop.h |
|---|
| 194 |
init.o: init.cc win32.h resource.h dialog.h state.h msg.h log.h |
|---|
| 195 |
uninstall.o: uninstall.cc win32.h \ |
|---|
| 196 |
resource.h ini.h dialog.h concat.h geturl.h mkdir.h state.h tar.h \ |
|---|
| 197 |
diskfull.h msg.h regedit.h reginfo.h log.h hash.h port.h desktop.h |
|---|
| 198 |
localdir.o: localdir.cc win32.h dialog.h resource.h state.h msg.h \ |
|---|
| 199 |
concat.h log.h |
|---|
| 200 |
log.o: log.cc win32.h resource.h msg.h log.h dialog.h state.h concat.h \ |
|---|
| 201 |
mkdir.h |
|---|
| 202 |
main.o: main.cc win32.h resource.h dialog.h state.h msg.h netio.h \ |
|---|
| 203 |
find.h log.h port.h |
|---|
| 204 |
mkdir.o: mkdir.cc win32.h mkdir.h |
|---|
| 205 |
mklink2.o: mklink2.c win32.h /usr/include/w32api/shlobj.h |
|---|
| 206 |
msg.o: msg.cc win32.h dialog.h log.h |
|---|
| 207 |
net.o: net.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 208 |
netio.o: netio.cc win32.h resource.h state.h msg.h netio.h nio-file.h \ |
|---|
| 209 |
nio-ie5.h nio-http.h nio-ftp.h dialog.h log.h port.h |
|---|
| 210 |
nio-file.o: nio-file.cc win32.h netio.h nio-file.h resource.h msg.h |
|---|
| 211 |
nio-ftp.o: nio-ftp.cc win32.h resource.h state.h simpsock.h log.h \ |
|---|
| 212 |
netio.h nio-ftp.h |
|---|
| 213 |
nio-http.o: nio-http.cc win32.h resource.h state.h simpsock.h msg.h \ |
|---|
| 214 |
netio.h nio-http.h |
|---|
| 215 |
nio-ie5.o: nio-ie5.cc win32.h resource.h state.h dialog.h msg.h \ |
|---|
| 216 |
netio.h nio-ie5.h |
|---|
| 217 |
other.o: other.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 218 |
postinstall.o: postinstall.cc win32.h state.h dialog.h find.h concat.h \ |
|---|
| 219 |
port.h |
|---|
| 220 |
regedit.o: regedit.cc win32.h reginfo.h regedit.h msg.h resource.h \ |
|---|
| 221 |
dialog.h |
|---|
| 222 |
root.o: root.cc win32.h dialog.h resource.h state.h msg.h regedit.h \ |
|---|
| 223 |
reginfo.h concat.h log.h |
|---|
| 224 |
simpsock.o: simpsock.cc win32.h simpsock.h msg.h |
|---|
| 225 |
site.o: site.cc win32.h dialog.h resource.h state.h geturl.h msg.h \ |
|---|
| 226 |
concat.h regedit.h reginfo.h log.h port.h |
|---|
| 227 |
source.o: source.cc win32.h dialog.h resource.h state.h msg.h log.h |
|---|
| 228 |
splash.o: splash.cc win32.h dialog.h resource.h msg.h version.h |
|---|
| 229 |
state.o: state.cc state.h |
|---|
| 230 |
tar.o: tar.cc win32.h tar.h mkdir.h log.h port.h |
|---|
| 231 |
version.o: version.c |
|---|