annotate src/Makefile.in.in @ 406:b8cc9ab3f761 r21-2-33

Import from CVS: tag r21-2-33
author cvs
date Mon, 13 Aug 2007 11:17:09 +0200
parents 2f8bb876ab1d
children de805c49cfc1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1 ## Makefile for src subdirectory in XEmacs.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3 ## Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc.
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
5 ## Copyright (C) 1998, 1999 J. Kean Johnston.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7 ## This file is part of XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9 ## XEmacs is free software; you can redistribute it and/or modify it
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10 ## under the terms of the GNU General Public License as published by the
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
11 ## Free Software Foundation; either version 2, or (at your option) any
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12 ## later version.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
15 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17 ## for more details.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
19 ## You should have received a copy of the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
20 ## along with XEmacs; see the file COPYING. If not, write to
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
21 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
22 ## Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
24 ## Synched up with: Not synched with FSF.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
26 PROGNAME=@PROGNAME@
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
27
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
28 #define NOT_C_CODE
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
29 #include "config.h"
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
30
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
31 #ifdef PDUMP
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
32 DUMP_TARGET = ${PROGNAME}.dmp
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
33 EXE_TARGET = ${PROGNAME}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
34 ID_FILE = dump-id.c
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
35 #else
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
36 DUMP_TARGET = ${PROGNAME}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
37 EXE_TARGET = temacs
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
38 ID_FILE =
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
39 #endif
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
40
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
41 all: ${DUMP_TARGET}
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
42 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
44 ## For performance and consistency, no built-in rules.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
45 .SUFFIXES:
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
46 .SUFFIXES: .c .h .o .i .s .dep
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
48 #ifdef USE_GNU_MAKE
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
49 RECURSIVE_MAKE=$(MAKE)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
50 #else
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
51 @SET_MAKE@
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
52 RECURSIVE_MAKE=@RECURSIVE_MAKE@
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
53 #endif
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
54
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
55 SHELL=/bin/sh
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
56 RM = rm -f
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
57
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
58 lispdir = ${srcdir}/../lisp/
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
59 moduledir = ${srcdir}/../modules/
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
60 libsrc = ../lib-src/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
61 etcdir = ../etc/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
62
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
63 ## Here are the things that we expect ../configure to edit.
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 199
diff changeset
64 prefix=@prefix@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 srcdir=@srcdir@
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
66 blddir=@blddir@
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 199
diff changeset
67 version=@version@
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
68 CC=@XEMACS_CC@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 CPP=@CPP@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 CFLAGS=@CFLAGS@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
71 CPPFLAGS=@CPPFLAGS@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
72 LDFLAGS=@LDFLAGS@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
73
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
74 c_switch_all=@c_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
75 ld_switch_all=@ld_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
76 ld_libs_all=@ld_libs_all@
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
77 ld_dynamic_link_flags=@ld_dynamic_link_flags@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
78
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
79 extra_objs=@extra_objs@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 LN_S=@LN_S@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
82 ld_switch_shared=@ld_switch_shared@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
83 start_files=@start_files@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
84 start_flags=@start_flags@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
85 LD=@ld@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
86 lib_gcc=@lib_gcc@
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
87 ##libmcheck=@libmcheck@
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
88
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
90 ## With the traditional VPATH setting, it is not possible to
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
91 ## simultaneously compile in-place and in another directory. The
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
92 ## mistaken definition is that *all* dependencies are searched for in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
93 ## the VPATH directory, rather than just the dependencies that are not
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
94 ## themselves targets. Thus, if there is an up-to-date .o file in the
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
95 ## in-place location, it will not get recompiled in the not-in-place
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
96 ## location.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
98 ## The GNU Make "vpath" directive continues this tradition, but at
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
99 ## least lets you restrict the classes of files that it applies to.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
100 ## This allows us to kludge around the problem.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
101
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 vpath %.h @srcdir@
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
105 ## now list files that should NOT be searched in the srcdir.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
106 ## This includes any .c or .h built from something else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
107 ## (e.g. a .in file).
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 vpath config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 vpath paths.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 vpath Emacs.ad.h
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
111 vpath sheap-adjust.h
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
112 vpath dump-id.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
117 RM = rm -f
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
119 LWLIB_SRCDIR = ${srcdir}/../lwlib
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
120
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
121 #ifdef HAVE_X_WINDOWS
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
122 lwlib_libs = ../lwlib/liblw.a
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
123 lwlib_deps = $(lwlib_libs)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
124 $(lwlib_libs) :
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
125 cd ../lwlib && $(RECURSIVE_MAKE)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
127 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
128 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
129
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
130 #ifdef AIX4
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
131 LIBI18N = -li18n
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
132 #endif /* AIX4 */
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
133
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
134 X11_libs = $(LIBI18N)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
135 #endif /* HAVE_X_WINDOWS */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
137 #if defined (HEAP_IN_DATA) && !defined(PDUMP)
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
138 sheap_obj=sheap.o
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
139 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
140
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
141 ## -Demacs is needed to make some files produce the correct version
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
142 ## for use in Emacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
144 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
145 cflags = $(CFLAGS) $(cppflags)
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
146 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
148 #ifdef SOLARIS2
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
149 %.o : %.c
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
150 #else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 .c.o:
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
152 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
153 $(CC) -c $(cflags) $<
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
155 ## Create preprocessor output (debugging purposes only)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
156 .c.i:
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
157 #ifdef __GNUC__
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
158 $(CC) -E $(cppflags) -o $@ $<
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
159 #else /* works on Solaris; what about other systems? */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
160 $(CC) -P $(cppflags) $<
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
161 #endif /* compiler */
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
162
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
163 ## Create assembler output (debugging purposes only)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
164 .c.s:
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
165 $(CC) -S -c $(cflags) $<
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
167 ## Create RTL files
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
168 %.c.rtl : %.c
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
169 $(CC) -dr -c $(cflags) $<
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
170
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
171 ## lastfile must follow all files whose initialized data areas should
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
172 ## be dumped as pure by dump-emacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
174 ## NOTE: The last line cannot be all macros, because make will barf
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
175 ## if they all come out null.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
177 objs=\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
178 abbrev.o alloc.o blocktype.o buffer.o bytecode.o\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
179 callint.o callproc.o casefiddle.o casetab.o chartab.o\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
180 cmdloop.o cmds.o console.o console-stream.o\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
181 data.o device.o dired.o doc.o doprnt.o dynarr.o\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
182 editfns.o elhash.o emacs.o\
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
183 eval.o events.o $(extra_objs)\
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
184 event-stream.o extents.o faces.o\
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
185 fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
186 frame.o general.o glyphs.o glyphs-eimage.o glyphs-widget.o\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
187 gui.o gutter.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\
211
78478c60bfcd Import from CVS: tag r20-4b4
cvs
parents: 209
diff changeset
188 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
189 macros.o marker.o md5.o minibuf.o objects.o opaque.o\
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
190 print.o process.o profile.o\
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
191 rangetab.o redisplay.o redisplay-output.o regex.o\
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
192 search.o select.o $(sheap_obj) signal.o sound.o\
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
193 specifier.o strftime.o symbols.o syntax.o sysdep.o\
195
a2f645c6b9f8 Import from CVS: tag r20-3b24
cvs
parents: 193
diff changeset
194 undo.o $(x_objs) widget.o window.o
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
196 obj_rtl = $(objs:.o=.c.rtl)
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
197
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 #ifdef REL_ALLOC
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
199 rallocdocsrc = ralloc.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 rallocobjs = ralloc.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
203 malloclib = $(libmcheck)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 #ifndef SYSTEM_MALLOC
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
205 # ifdef GNU_MALLOC /* GNU malloc */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 # ifdef ERROR_CHECK_MALLOC
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
207 #ifdef DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
208 mallocobjs = free-hook.o vm-limit.o
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
209 #else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 mallocobjs = gmalloc.o free-hook.o vm-limit.o
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
211 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 mallocdocsrc = free-hook.c
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
213 # else /* New GNU malloc, sans error checking */
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
214 #ifdef DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
215 mallocobjs = vm-limit.o
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
216 #else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 mallocobjs = gmalloc.o vm-limit.o
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
218 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 mallocdocsrc =
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
220 # endif /* ERROR_CHECK_MALLOC */
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
221 # else /* Older GNU malloc */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 mallocobjs = malloc.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 mallocdocsrc =
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
224 # endif /* Older GNU malloc */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
225 #else /* SYSTEM_MALLOC */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 mallocobjs =
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 mallocdocsrc =
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
228 #ifdef USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
229 malloclib = -ldmalloc
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
230 #endif /* USE_DEBUG_MALLOC */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 #endif /* SYSTEM_MALLOC */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 #ifdef HAVE_X_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 # ifdef EXTERNAL_WIDGET
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
236 external_widget_objs = ExternalShell.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
238 ## Now we try to figure out how to link a shared library.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
239 ## If we cannot figure it out, leave EXTW_LINK undefined and a shared
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
240 ## library will not be created.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 # ifdef USE_GCC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 # ifdef USG5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 # define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
245 extw_link_beg = $(CC) -shared
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
246 extw_link_mid = -Xlinker -z -Xlinker text -o
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
247 extw_link_end =
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
248 ## I cannot figure out how to do shared a.out libraries, so just punt.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 # elif !defined (LINUX) || defined (__ELF__)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 # define EXTW_LINK(objs, output) $(CC) -shared objs -o output
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
251 extw_link_beg = $(CC) -shared
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
252 extw_link_mid = -o
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
253 extw_link_end =
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 # elif defined (USG5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 # if defined (IRIX)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 # define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations objs -o output
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
258 extw_link_beg = $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
259 extw_link_mid = -o
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
260 extw_link_end =
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 # else /* not IRIX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
263 extw_link_beg = $(CC) -G
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
264 extw_link_mid = -z text -o
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
265 extw_link_end =
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 # endif /* not IRIX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 # else /* not USG5 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 # if defined (DEC_ALPHA) && defined (OSF1)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
269 # define EXTW_LINK(objs, output) $(LD) $(ldflags) $(ld_switch_shared) -d objs -o output $(LIBES)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
270 extw_link_beg = $(LD) $(ldflags) $(ld_switch_shared) -d
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
271 extw_link_mid = -o
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
272 extw_link_end = $(LIBES)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 # else /* !(DEC_ALPHA && OSF1) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
275 extw_link_beg = $(LD) -dc
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
276 extw_link_mid = -assert pure-text -o
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
277 extw_link_end =
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 # endif /* !(DEC_ALPHA && OSF1) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 # endif /* not USG5 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 # ifdef LWLIB_USES_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 # ifdef EXTW_LINK
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
283 motif_other_files = libextcli_Xm.a libextcli_Xm.so.1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 # else
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
285 motif_other_files = libextcli_Xm.a
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 # endif
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
287 #endif /* LWLIB_USES_MOTIF */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 # ifdef EXTW_LINK
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
290 shared_other_files = libextcli_Xt.so.1 libextcli_Xlib.so.1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 # endif
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
292 other_files=\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
293 ${motif_other_files}\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
294 libextcli_Xt.a libextcli_Xlib.a\
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
295 ${shared_other_files}
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
296
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
297 all: ${other_files}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
298 # endif /* EXTERNAL_WIDGET */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
300 # if defined (HAVE_OFFIX_DND) || defined (HAVE_CDE)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
301 dnd_objs = @dnd_objs@
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
302 # endif /* HAVE_OFFIX_DND || HAVE_CDE */
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
303
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
304 X11_objs = EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o $(external_widget_objs) $(dnd_objs)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
305 #endif /* HAVE_X_WINDOWS */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
307 ## define otherobjs as list of object files that make-docfile
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
308 ## should not be told about.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
309 otherobjs = lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs)
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
310 otherrtls = $(otherobjs:.o=.c.rtl)
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
311 othersrcs = $(otherobjs:.o=.c)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
313 LIBES = $(lwlib_libs) $(malloclib) $(ld_libs_all) $(lib_gcc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 #ifdef I18N3
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
316 mo_dir = ${etcdir}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
317 mo_file = ${mo_dir}emacs.mo
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
320 temacs_loadup = ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
321 dump_temacs = ${temacs_loadup} dump
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
322 run_temacs = ${temacs_loadup} run-temacs
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
323 debug_temacs = gdb ${EXE_TARGET}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
325 release: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 #ifdef CANNOT_DUMP
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
327 ln ${EXE_TARGET} ${PROGNAME}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 -if [ -w ${srcdir}/../lisp ]; then \
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
330 w=`pwd`; cd ${srcdir} && $${w}/${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/inc-vers; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 else true; fi
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
332 -./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el dump
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 touch release
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 #endif /* ! defined (CANNOT_DUMP) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
336 ${DUMP_TARGET}: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
337 #ifdef HEAP_IN_DATA
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
338 @$(RM) $@ && touch SATISFIED
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
339 -${dump_temacs}
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
340 @if test -f $@; then if test -f SATISFIED; then \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
341 echo "Testing for Lisp shadows ..."; \
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
342 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
343 $(RM) SATISFIED; exit 0; fi; \
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
344 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
345 $(RECURSIVE_MAKE) $@;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
346 #else
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
347 @$(RM) $@
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
348 ${dump_temacs}
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
349 @echo "Testing for Lisp shadows ..."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
350 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
351 #endif
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
352
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
353 fastdump: ${EXE_TARGET}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
354 @$(RM) ${DUMP_TARGET} && touch SATISFIED
382
064ab7fed2e0 Import from CVS: tag r21-2-6
cvs
parents: 380
diff changeset
355 -${dump_temacs}
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
356 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
357
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
358 FRC.update-elc.stamp :
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
359
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
360 update-elc.stamp : ${EXE_TARGET} FRC.update-elc.stamp
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
361 @touch NOBYTECOMPILE
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
362 ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
363 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
364 $(RM) NOBYTECOMPILE
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 obj_src = $(objs:.o=.c)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
368 dortl : $(obj_rtl) $(otherrtls)
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
369 echo "(defvar source-files '(" > ${srcdir}/../lisp/source-files.el
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
370 (for a in $(obj_src) $(othersrcs);do \
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
371 echo -n "\""$$a"\"" >> ${srcdir}/../lisp/source-files.el ;\
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
372 done)
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
373 echo "))" >> ${srcdir}/../lisp/source-files.el
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
374
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
375 #ifdef DYNODUMP
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
376 dynodump_deps = ../dynodump/dynodump.so
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
377 ../dynodump/dynodump.so:
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
378 cd ../dynodump && $(RECURSIVE_MAKE)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
379 #endif /* DYNODUMP */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
381 ${libsrc}DOC: ${EXE_TARGET} update-elc.stamp
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
382 $(RM) ${libsrc}DOC; \
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
383 ${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/make-docfile.el -- \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
384 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
385 ${obj_src} ${mallocdocsrc} ${rallocdocsrc}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 dump_elcs: dump-elcs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
389 dump-elcs: ${EXE_TARGET}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
390 -${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
392 all-elc all-elcs:
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
393 cd .. && $(RECURSIVE_MAKE) all-elc
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
394
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
395 #ifdef I18N3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
396
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
397 # if defined(SPARC) && !defined(USG)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
398 xgettext= /usr/openwin/bin/xgettext
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
399 xgettext_args= -o emacs -m_X messages
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
400 msgfmt= /usr/openwin/bin/msgfmt
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
401 # else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
402 xgettext= xgettext
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
403 xgettext_args= -s -d emacs -M_X messages
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
404 msgfmt= msgfmt
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
405 #endif
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
406
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
407 ${mo_dir}emacs.po: ${libsrc}make-msgfile ${libsrc}make-po ${objs}
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
408 ${libsrc}make-msgfile -o ${libsrc}messages ${objs}
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
409 cd ${libsrc} && ${xgettext} ${xgettext_args}
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
410 $(RM) ${mo_dir}emacs.po
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
411 cd ${libsrc} && ${libsrc}make-po -a ${mo_dir}emacs.po DOC
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
412
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
413 ${mo_dir}emacs.mo: ${mo_dir}emacs.po
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
414 cd ${mo_dir} && ${msgfmt} -o emacs.mo emacs.po
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
415
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
416 ${libsrc}make-msgfile:
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
417 cd ${libsrc} && $(RECURSIVE_MAKE) make-msgfile
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
418
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
419 ${libsrc}make-po:
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
420 cd ${libsrc} && $(RECURSIVE_MAKE) make-po
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
421
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
422 #endif /* I18N3 */
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 36
diff changeset
423
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
424 ${libsrc}make-dump-id:
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
425 cd ${libsrc} && $(RECURSIVE_MAKE) make-dump-id
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
426
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ${libsrc}make-docfile:
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
428 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
430 ## Lint Section
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
431 LINT.c=$(LINT) $(LINTFLAGS) $(LINTINCLUDES)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 LINTFILES= $(objs:.o=.ln)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
433 LINTINCLUDES = $(cppflags)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
434 ## LINTFLAGS= -fd -m -p -s -u -v -x
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
435 LINTFLAGS= -fd -m -s -u -v -x
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 lint: $(LINTFILES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 $(LINT.c) $(LINTFILES)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
438 ## end of Lint Section
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
440 link_deps=\
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
441 $(start_files) ${objs} ${otherobjs}\
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
442 $(lwlib_deps) $(dynodump_deps)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
444 temacs_deps=\
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
445 $(link_deps) $(ID_FILE)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
447 temacs_link_args=\
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
448 ${start_flags} ${ldflags} -I${srcdir} \
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
449 -o $@ ${start_files} ${objs} ${otherobjs} ${ID_FILE} ${LIBES}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
450
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
451 ${EXE_TARGET}: $(temacs_deps)
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
452 $(LD) $(temacs_link_args)
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
453
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
454 dump-id.c: ${libsrc}make-dump-id ${link_deps}
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
455 ${libsrc}make-dump-id
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
456
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
457 .PHONY : run-temacs
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
458
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
459 run-temacs: ${EXE_TARGET}
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
460 -${run_temacs}
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
461
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
462 ## We have automated tests!!
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
463 testdir = ${srcdir}/../tests/automated
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
464 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir}
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
465
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
466 .PHONY: check check-temacs
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
467 check:
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
468 ./${PROGNAME} ${batch_test_emacs}
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
469 check-temacs:
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
470 ${run_temacs} ${batch_test_emacs}
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
471
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
472 ## Debugging targets:
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
473 ##
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
474 ## None of the debugging products work with a dumped xemacs binary,
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
475 ## because it does unexpected things like free memory that has been
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
476 ## malloc'ed in a *different* process!! So we need to run these on
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
477 ## temacs.
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
478
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
479 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
480 rtc_patch.o:
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
481 rtc_patch_area -o $@
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
482
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
483 rtcmacs: $(temacs_deps) rtc_patch.o
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
484 $(RM) ${EXE_TARGET}; $(RECURSIVE_MAKE) ${EXE_TARGET} RTC_patch_objs=rtc_patch.o
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
485 mv ${EXE_TARGET} rtcmacs
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
486
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
487 .PHONY: run-rtcmacs
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
488 run-rtcmacs: rtcmacs
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
489 dbx -q -C -c \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
490 'dbxenv rtc_error_log_file_name /dev/fd/1; \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
491 dbxenv suppress_startup_message 5.0; \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
492 ignore POLL; \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
493 check -access; \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
494 suppress rui; \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
495 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
496 run' rtcmacs
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
497
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
498 debug-temacs: ${EXE_TARGET}
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
499 -${debug_temacs}
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
500
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
501 ## Purify, Quantify, PureCoverage are software quality products from
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
502 ## Rational, formerly Pure Atria, formerly Pure Software.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
503 ##
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
504 ## Purify
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
505 PURIFY_PROG = purify
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
506 PURIFY_FLAGS =\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
507 #ifdef PDUMP
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
508 -search-mmaps=yes\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
509 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
510 -chain-length=32 -ignore-signals=SIGPOLL -threads=yes\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
511 -cache-dir=./purecache -always-use-cache-dir=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
512
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
513 PURIFY_LIBS = -lpthread
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
514 puremacs: $(temacs_deps)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
515 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS)
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
516 cp $@ ${EXE_TARGET}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
518 ## Quantify
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
519 #ifdef QUANTIFY
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
520 QUANTIFY_PROG = quantify
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
521 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
522 QUANTIFY_FLAGS = -cache-dir=./purecache -always-use-cache-dir=yes
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
523 cppflags += -I$(QUANTIFY_HOME)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
524 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
525
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
526 quantmacs: $(temacs_deps)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
527 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args)
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 402
diff changeset
528 cp $@ ${EXE_TARGET}
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
529 #endif /* QUANTIFY */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
531
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
532 PURECOV_PROG=purecov
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
533 covmacs: $(temacs_deps)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
534 $(PURECOV_PROG) $(LD) $(temacs_link_args)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
536
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
537 TopLevelEmacsShell.o : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
538 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 mv EmacsShell-sub.o TopLevelEmacsShell.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
541 TopLevelEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
542 $(CC) -dr -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
543 mv EmacsShell-sub.c.rtl TopLevelEmacsShell.c.rtl
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
544
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 219
diff changeset
545 TransientEmacsShell.o : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
546 $(CC) -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 mv EmacsShell-sub.o TransientEmacsShell.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
549 TransientEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
550 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
551 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
552
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
553 ## Position-independent code for shared library creation
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
554 #if USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
555 pic_arg = -fpic
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
556 #elif defined (IRIX)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
557 pic_arg = -KPIC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
558 # else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
559 pic_arg = -K pic
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
560 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
561
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 #ifdef EXTERNAL_WIDGET
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
564 external_client_motif_objs_shared = ExternalClient-Xm-shared.o extw-Xt-shared.o extw-Xlib-shared.o
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
565 external_client_xt_objs_shared = ExternalClient-Xt-shared.o extw-Xt-shared.o extw-Xlib-shared.o
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
566 external_client_xlib_objs_shared = ExternalClient-Xlib-shared.o extw-Xlib-shared.o
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
567 external_client_motif_objs_nonshared = ExternalClient-Xm-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
568 external_client_xt_objs_nonshared = ExternalClient-Xt-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
569 external_client_xlib_objs_nonshared = ExternalClient-Xlib-nonshared.o extw-Xlib-nonshared.o
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
571 ## Add dependencies so things work right with a parallel make
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 ExternalClient-Xm-shared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-shared.o ExternalClient-Xm-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
573 $(CC) -c $(pic_arg) $(cflags) -DEXTW_USES_MOTIF ${srcdir}/ExternalClient.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 mv ExternalClient.o ExternalClient-Xm-shared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 ExternalClient-Xt-shared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
577 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/ExternalClient.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 mv ExternalClient.o ExternalClient-Xt-shared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ExternalClient-Xlib-shared.o: ${srcdir}/ExternalClient-Xlib.c ExternalClient-Xlib-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
581 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/ExternalClient-Xlib.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 mv ExternalClient-Xlib.o ExternalClient-Xlib-shared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ExternalClient-Xm-nonshared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
585 $(CC) -c $(cflags) -DEXTW_USES_MOTIF ${srcdir}/ExternalClient.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 mv ExternalClient.o ExternalClient-Xm-nonshared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 ExternalClient-Xt-nonshared.o: ${srcdir}/ExternalClient.c
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
589 $(CC) -c $(cflags) ${srcdir}/ExternalClient.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 mv ExternalClient.o ExternalClient-Xt-nonshared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 ExternalClient-Xlib-nonshared.o: ${srcdir}/ExternalClient-Xlib.c
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
593 $(CC) -c $(cflags) ${srcdir}/ExternalClient-Xlib.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 mv ExternalClient-Xlib.o ExternalClient-Xlib-nonshared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
596 ## We compile the common files twice (once with PIC and once without)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
597 ## because on some systems, compiling with PIC but not linking into
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
598 ## a shared library messes things up.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
599
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 extw-Xt-shared.o: ${srcdir}/extw-Xt.c extw-Xt-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
601 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/extw-Xt.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 mv extw-Xt.o extw-Xt-shared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 extw-Xlib-shared.o: ${srcdir}/extw-Xlib.c extw-Xlib-nonshared.o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
605 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/extw-Xlib.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 mv extw-Xlib.o extw-Xlib-shared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 extw-Xt-nonshared.o: ${srcdir}/extw-Xt.c
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
609 $(CC) -c $(cflags) ${srcdir}/extw-Xt.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 mv extw-Xt.o extw-Xt-nonshared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 extw-Xlib-nonshared.o: ${srcdir}/extw-Xlib.c
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
613 $(CC) -c $(cflags) ${srcdir}/extw-Xlib.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 mv extw-Xlib.o extw-Xlib-nonshared.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
616 libextcli_Xm.a: ${external_client_motif_objs_nonshared}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
617 ar r libextcli_Xm.a ${external_client_motif_objs_nonshared}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
619 libextcli_Xt.a: ${external_client_xt_objs_nonshared}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
620 ar r libextcli_Xt.a ${external_client_xt_objs_nonshared}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
622 libextcli_Xlib.a: ${external_client_xlib_objs_nonshared}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
623 ar r libextcli_Xlib.a ${external_client_xlib_objs_nonshared}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 #ifdef EXTW_LINK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
627 libextcli_Xm.so.1: ${external_client_motif_objs_shared}
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
628 ${extw_link_beg} ${external_client_motif_objs_shared} ${extw_link_mid} libextcli_Xm.so.1 ${extw_link_end}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
630 libextcli_Xt.so.1: ${external_client_xt_objs_shared}
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
631 ${extw_link_beg} ${external_client_xt_objs_shared} ${extw_link_mid} libextcli_Xt.so.1 ${extw_link_end}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
633 libextcli_Xlib.so.1: ${external_client_xlib_objs_shared}
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 284
diff changeset
634 ${extw_link_beg} ${external_client_xlib_objs_shared} ${extw_link_mid} libextcli_Xlib.so.1 ${extw_link_end}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
636 #endif /* EXTW_LINK */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 #endif /* EXTERNAL_WIDGET */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 config.h: ${srcdir}/config.h.in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
641 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
643 config.h sheap-adjust.h paths.h Emacs.ad.h :
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
644 @echo "The file $@ needs to be re-generated."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
645 @echo "Please run a make in the top level directory."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
646 @echo "Consult the file \`INSTALL' for instructions for building XEmacs."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
647 @exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
649 ## Some machines have alloca built-in.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
650 ## They should define HAVE_ALLOCA, or may just let alloca.s
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
651 ## be used but generate no code.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
652 ## Some have it written in assembler in alloca.s.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
653 ## Some use the C version in alloca.c (these define C_ALLOCA in config.h).
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
654
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 #ifdef C_ALLOCA
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
657 ## We could put something in alloca.c to #define free and malloc
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
658 ## whenever emacs was #defined, but that's not appropriate for all
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
659 ## users of alloca in Emacs. Check out ../lib-src/getopt.c. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
660
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 alloca.o : ${srcdir}/alloca.c
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
662 $(CC) -c -Dfree=xfree -Dmalloc=xmalloc $(cflags) ${srcdir}/alloca.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 #ifndef HAVE_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 alloca.o : ${srcdir}/alloca.s config.h
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
666 ## $(CPP) is cc -E, which may get confused by filenames
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
667 ## that do not end in .c. So copy file to a safe name. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
668 ## cp ${srcdir}/alloca.s allocatem.c
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
669 ## Remove any ^L, blank lines, and preprocessor comments,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
670 ## since some assemblers barf on them. Use a different basename for the
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
671 ## output file, since some stupid compilers (Green Hill) use that
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
672 ## name for the intermediate assembler file.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 140
diff changeset
673 $(CPP) $(cppflags) allocatem.c | \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 sed -e 's/ //' -e 's/^#.*//' | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 sed -n -e '/^..*$$/p' > allocax.s
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
676 @$(RM) alloca.o
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
677 ## Xenix, in particular, needs to run assembler via cc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 $(CC) -c allocax.s
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 mv allocax.o alloca.o
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
680 $(RM) allocax.s allocatem.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 #endif /* HAVE_ALLOCA */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 #endif /* ! defined (C_ALLOCA) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 #ifdef HAVE_NATIVE_SOUND
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
685 sound_cflags=@sound_cflags@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 sunplay.o: ${srcdir}/sunplay.c
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
687 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 hpplay.o: ${srcdir}/hpplay.c
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 185
diff changeset
689 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 #endif /* HAVE_NATIVE_SOUND */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
692 ## System-specific programs to be made.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
693 ## ${other_files}, $(objects_system) and $(objects_machine)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
694 ## select which of these should be compiled. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
695
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
696 .PHONY: mostlyclean clean distclean realclean versionclean extraclean
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 mostlyclean:
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
698 $(RM) temacs puremacs quantmacs prefix-args *.o *.i \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
699 core temacs.exe sheap-adjust.h
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
700 clean: mostlyclean versionclean
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
701 $(RM) libextcli* update-elc.stamp
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
702 ## This is used in making a distribution.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
703 ## Do not use it on development directories!
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
704 distclean: clean
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
705 $(RM) config.h paths.h Emacs.ad.h \
382
064ab7fed2e0 Import from CVS: tag r21-2-6
cvs
parents: 380
diff changeset
706 GNUmakefile Makefile Makefile.in TAGS ${PROGNAME}.*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 versionclean:
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
709 $(RM) ${PROGNAME} ${PROGNAME}.exe ${libsrc}DOC
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 extraclean: realclean
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
711 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
713 .PHONY : lock unlock
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
714 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
715 config.h.in README COPYING ChangeLog
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 unlock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 chmod u+w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 relock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 chmod -w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
722 ## Header files for ellcc
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
723 #ifdef HAVE_SHLIB
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
724 MAKEPATH=../lib-src/make-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
725 install: ${PROGNAME}
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
726 ${MAKEPATH} ${archlibdir}/include ${archlibdir}/include/m ${archlibdir}/include/s
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
727 -@echo "Copying include files for ellcc..."
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
728 -@hdir=`pwd`; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
729 cd ${srcdir}; hdrdir2=`pwd`; cd $$hdir; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
730 test "$$hdrdir2" != "$$hdir" && hdir="$$hdir $$hdrdir2"; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
731 (for thisdir in $$hdir; do \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
732 cd $$hdir && \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
733 (hdrtars=; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
734 for hdrfile in *.h; do \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
735 hdrtars="$$hdrtars $$hdrfile"; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
736 done; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
737 test -d s && hdrtars="$$hdrtars s/*"; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
738 test -d m && hdrtars="$$hdrtars m/*"; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
739 test -n "$$hdrtars" && (tar cf - $$hdrtars) | \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
740 (cd ${archlibdir}/include && umask 022 && tar xf -); \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
741 chmod 755 ${archlibdir}/include; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
742 test -d ${archlibdir}/include/s && \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
743 chmod 755 ${archlibdir}/include/s; \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
744 test -d ${archlibdir}/include/m && \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
745 chmod 755 ${archlibdir}/include/s;) \
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
746 done)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
747 #endif
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
748
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
749 ## Dependency processing using home-grown script, not makedepend
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
750 .PHONY: depend
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
751 FRC.depend:
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
752 depend: FRC.depend
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 371
diff changeset
753 cd ${srcdir} && $(RM) depend.tmp && \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
754 perl ./make-src-depend > depend.tmp && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
755 if cmp -s depend depend.tmp; \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
756 then $(RM) depend.tmp; \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
757 else $(RM) depend && mv depend.tmp depend; \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
758 fi