comparison netinstall/Makefile.in.in @ 452:3d3049ae1304 r21-2-41

Import from CVS: tag r21-2-41
author cvs
date Mon, 13 Aug 2007 11:40:21 +0200
parents 3078fd1074e8
children e7ef97881643
comparison
equal deleted inserted replaced
451:8ad70c5cd5d7 452:3d3049ae1304
10 ## 10 ##
11 ## Written by Christopher Faylor <cgf@redhat.com> 11 ## Written by Christopher Faylor <cgf@redhat.com>
12 ## Adapted for XEmacs by Andy Piper <andy@xemacs.org> 12 ## Adapted for XEmacs by Andy Piper <andy@xemacs.org>
13 ## 13 ##
14 ## Makefile for Cygwin installer 14 ## Makefile for Cygwin installer
15
16 ## FIXME: integrate autoload.c so that wininet doesn't have to be linked.
17 15
18 ## For performance and consistency, no built-in rules 16 ## For performance and consistency, no built-in rules
19 .SUFFIXES: 17 .SUFFIXES:
20 .SUFFIXES: .c .cc .h .o 18 .SUFFIXES: .c .cc .h .o
21 ## ==================== Things "configure" will edit ==================== 19 ## ==================== Things "configure" will edit ====================
58 top_srcdir=@top_srcdir@ 56 top_srcdir=@top_srcdir@
59 archlibdir=@archlibdir@ 57 archlibdir=@archlibdir@
60 configuration=@configuration@ 58 configuration=@configuration@
61 moduledir=@moduledir@ 59 moduledir=@moduledir@
62 sitemoduledir=@sitemoduledir@ 60 sitemoduledir=@sitemoduledir@
61 extra_includes=@extra_includes@
62 blddir=@blddir@
63 63
64 ## ==================== Utility Programs for the Build ================= 64 ## ==================== Utility Programs for the Build =================
65 65
66 INSTALL = @install_pp@ @INSTALL@ 66 INSTALL = @install_pp@ @INSTALL@
67 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 67 INSTALL_PROGRAM = @INSTALL_PROGRAM@
76 program_transform_name = @program_transform_name@ 76 program_transform_name = @program_transform_name@
77 77
78 CC = @CC@ 78 CC = @CC@
79 CC_FOR_TARGET = $(CC) 79 CC_FOR_TARGET = $(CC)
80 80
81 LOCALCFLAGS = $(CFLAGS) -DMINGW 81 ## -O3 has problems so fix this locally
82 LOCALCFLAGS = $(CFLAGS) -O2 -DMINGW $(extra_includes)
82 CXXFLAGS = $(LOCALCFLAGS) -fno-exceptions -nostdinc++ -fno-rtti 83 CXXFLAGS = $(LOCALCFLAGS) -fno-exceptions -nostdinc++ -fno-rtti
83 84
84 WINDRES = windres 85 WINDRES = windres
85 MINGW_INCLUDES = -I. -I$(srcdir) 86 MINGW_INCLUDES = -I. -I$(srcdir)
86 MINGW_CXXFLAGS = $(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows 87 MINGW_CXXFLAGS = $(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows
87 MINGW_CFLAGS = $(LOCALCFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows 88 MINGW_CFLAGS = $(LOCALCFLAGS) -mno-cygwin $(MINGW_INCLUDES) -mwindows
88 MINGW_ZLIB_DIR = /usr/local/lib 89 MINGW_ZLIB_DIR = /usr/local/lib
89 90
90 PROGS = setup.exe 91 PROGS = setup.exe
92 XEMACS=${blddir}/src/${PROGNAME}
91 93
92 CONFIG_H = ../src/config.h 94 CONFIG_H = ../src/config.h
93 95
94 OBJS = \ 96 OBJS = \
97 autoload.o \
95 choose.o \ 98 choose.o \
96 concat.o \ 99 concat.o \
97 desktop.o \ 100 desktop.o \
98 dialog.o \ 101 dialog.o \
99 diskfull.o \ 102 diskfull.o \
139 all: Makefile $(PROGS) 142 all: Makefile $(PROGS)
140 143
141 setup.exe: $(OBJS) 144 setup.exe: $(OBJS)
142 $(CXX) $(MINGW_CXXFLAGS) -o $@ $(OBJS) \ 145 $(CXX) $(MINGW_CXXFLAGS) -o $@ $(OBJS) \
143 -lole32 -lwsock32 -lnetapi32 -ladvapi32 \ 146 -lole32 -lwsock32 -lnetapi32 -ladvapi32 \
144 -luuid -lkernel32 -luser32 -lwininet \ 147 -luuid -lkernel32 -luser32 \
145 -L$(MINGW_ZLIB_DIR) -lz -lmingw32 148 -L$(MINGW_ZLIB_DIR) -lz -lmingw32
146 @chmod a-x $@ 149 @chmod a-x $@
150
151 setup.ini: setup.exe
152 V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
153 | sed -e 's/\$$Revision:* *//' \
154 -e 's/ *$$.*//'` ;\
155 $(XEMACS) -batch -vanilla -l ${srcdir}/../lisp/package-net.el \
156 -f package-net-batch-convert-index-to-ini . $$V
147 157
148 install: 158 install:
149 @echo; echo "Installing net setup." 159 @echo; echo "Installing net setup."
150 for file in ${INSTALLABLES} ; do \ 160 for file in ${INSTALLABLES} ; do \
151 (cd .. && $(INSTALL_PROGRAM) netinstall/$${file} ${bindir}/$${file}) ; \ 161 (cd .. && $(INSTALL_PROGRAM) netinstall/$${file} ${bindir}/$${file}) ; \