annotate netinstall/Makefile.in.in @ 4118:9aa33376bb5e

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