428
|
1 ## Makefile for src subdirectory in XEmacs.
|
|
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
|
|
3 ## Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
|
|
4 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc.
|
|
5 ## Copyright (C) 1998, 1999 J. Kean Johnston.
|
771
|
6 ## Copyright (C) 2001, 2002 Ben Wing.
|
428
|
7
|
|
8 ## This file is part of XEmacs.
|
|
9
|
|
10 ## XEmacs is free software; you can redistribute it and/or modify it
|
|
11 ## under the terms of the GNU General Public License as published by the
|
|
12 ## Free Software Foundation; either version 2, or (at your option) any
|
|
13 ## later version.
|
|
14
|
|
15 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
16 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
17 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
18 ## for more details.
|
|
19
|
|
20 ## You should have received a copy of the GNU General Public License
|
|
21 ## along with XEmacs; see the file COPYING. If not, write to
|
|
22 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
23 ## Boston, MA 02111-1307, USA.
|
|
24
|
|
25 ## Synched up with: Not synched with FSF.
|
|
26
|
|
27 PROGNAME=@PROGNAME@
|
|
28
|
442
|
29 #define NOT_C_CODE
|
|
30 #include "config.h"
|
|
31
|
|
32 #ifdef PDUMP
|
|
33 DUMP_TARGET = ${PROGNAME}.dmp
|
|
34 EXE_TARGET = ${PROGNAME}
|
460
|
35 DUMP_ID = dump-id.o
|
442
|
36 #else
|
|
37 DUMP_TARGET = ${PROGNAME}
|
|
38 EXE_TARGET = temacs
|
|
39 #endif
|
|
40
|
|
41 all: ${DUMP_TARGET}
|
428
|
42 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint
|
|
43
|
|
44 ## For performance and consistency, no built-in rules.
|
|
45 .SUFFIXES:
|
|
46 .SUFFIXES: .c .h .o .i .s .dep
|
|
47
|
|
48 #ifdef USE_GNU_MAKE
|
|
49 RECURSIVE_MAKE=$(MAKE)
|
|
50 #else
|
|
51 @SET_MAKE@
|
|
52 RECURSIVE_MAKE=@RECURSIVE_MAKE@
|
|
53 #endif
|
|
54
|
|
55 SHELL=/bin/sh
|
|
56 RM = rm -f
|
|
57
|
|
58 lispdir = ${srcdir}/../lisp/
|
|
59 moduledir = ${srcdir}/../modules/
|
|
60 libsrc = ../lib-src/
|
|
61 etcdir = ../etc/
|
|
62
|
|
63 ## Here are the things that we expect ../configure to edit.
|
|
64 prefix=@prefix@
|
|
65 srcdir=@srcdir@
|
|
66 blddir=@blddir@
|
|
67 version=@version@
|
|
68 CC=@XEMACS_CC@
|
|
69 CPP=@CPP@
|
|
70 CFLAGS=@CFLAGS@
|
|
71 CPPFLAGS=@CPPFLAGS@
|
|
72 LDFLAGS=@LDFLAGS@
|
|
73
|
|
74 c_switch_all=@c_switch_all@
|
|
75 ld_switch_all=@ld_switch_all@
|
|
76 ld_libs_all=@ld_libs_all@
|
|
77 ld_dynamic_link_flags=@ld_dynamic_link_flags@
|
|
78
|
|
79 extra_objs=@extra_objs@
|
|
80 LN_S=@LN_S@
|
|
81
|
|
82 ld_switch_shared=@ld_switch_shared@
|
|
83 start_files=@start_files@
|
|
84 start_flags=@start_flags@
|
|
85 LD=@ld@
|
|
86 lib_gcc=@lib_gcc@
|
|
87 ##libmcheck=@libmcheck@
|
|
88
|
|
89
|
|
90 ## With the traditional VPATH setting, it is not possible to
|
|
91 ## simultaneously compile in-place and in another directory. The
|
|
92 ## mistaken definition is that *all* dependencies are searched for in
|
|
93 ## the VPATH directory, rather than just the dependencies that are not
|
|
94 ## themselves targets. Thus, if there is an up-to-date .o file in the
|
|
95 ## in-place location, it will not get recompiled in the not-in-place
|
|
96 ## location.
|
|
97
|
|
98 ## The GNU Make "vpath" directive continues this tradition, but at
|
|
99 ## least lets you restrict the classes of files that it applies to.
|
|
100 ## This allows us to kludge around the problem.
|
|
101
|
|
102 #ifdef USE_GNU_MAKE
|
|
103 vpath %.c @srcdir@
|
|
104 vpath %.h @srcdir@
|
|
105 ## now list files that should NOT be searched in the srcdir.
|
|
106 ## This includes any .c or .h built from something else
|
|
107 ## (e.g. a .in file).
|
|
108 vpath config.h
|
|
109 vpath paths.h
|
|
110 vpath Emacs.ad.h
|
|
111 vpath sheap-adjust.h
|
442
|
112 vpath dump-id.c
|
428
|
113 #else
|
|
114 VPATH=@srcdir@
|
|
115 #endif
|
|
116
|
|
117 RM = rm -f
|
|
118
|
|
119 LWLIB_SRCDIR = ${srcdir}/../lwlib
|
|
120
|
|
121 #ifdef HAVE_X_WINDOWS
|
|
122 lwlib_libs = ../lwlib/liblw.a
|
|
123 lwlib_deps = $(lwlib_libs)
|
|
124 $(lwlib_libs) :
|
|
125 cd ../lwlib && $(RECURSIVE_MAKE)
|
|
126
|
771
|
127 # ifdef AIX4
|
428
|
128 LIBI18N = -li18n
|
771
|
129 # endif
|
428
|
130
|
|
131 X11_libs = $(LIBI18N)
|
|
132 #endif /* HAVE_X_WINDOWS */
|
|
133
|
771
|
134 #########################################################################
|
|
135
|
773
|
136 ## Object files needed for compilation.
|
771
|
137
|
773
|
138 ## NOTE: Some of the object files are specified in this file, and
|
|
139 ## others in configure.in. The general rule is that they be specified
|
|
140 ## here whenever they have clear dependencies on configure defines.
|
|
141 ## They should be in configure.in when there is no configure define or
|
|
142 ## when there is extremely hairy code to determine which files are
|
|
143 ## needed (e.g. native sound support) and it would be pointless to
|
|
144 ## duplicate that code.
|
771
|
145
|
793
|
146 gui_objs= gui.o
|
771
|
147 #ifdef HAVE_MENUBARS
|
|
148 gui_objs += menubar.o
|
|
149 #endif
|
|
150 #ifdef HAVE_SCROLLBARS
|
|
151 gui_objs += scrollbar.o
|
|
152 #endif
|
|
153 #ifdef HAVE_DIALOGS
|
|
154 gui_objs += dialog.o
|
|
155 #endif
|
|
156 #ifdef HAVE_TOOLBARS
|
|
157 gui_objs += toolbar.o
|
|
158 #endif
|
|
159
|
|
160 #ifdef HAVE_X_WINDOWS
|
|
161 x_objs=console-x.o device-x.o event-Xt.o frame-x.o \
|
|
162 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o intl-x.o
|
|
163 x_gui_objs=$(gui_objs:.o=-x.o)
|
|
164 #ifdef HAVE_TOOLBARS
|
|
165 x_gui_objs += toolbar-common.o
|
|
166 #endif
|
|
167 #endif
|
|
168
|
|
169 #ifdef HAVE_MS_WINDOWS
|
|
170 mswindows_objs=console-msw.o device-msw.o event-msw.o frame-msw.o \
|
|
171 objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o
|
|
172 mswindows_gui_objs=$(gui_objs:.o=-msw.o)
|
|
173 #endif
|
|
174
|
|
175 #ifdef HAVE_TTY
|
|
176 tty_objs=console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o \
|
|
177 redisplay-tty.o cm.o
|
|
178 #endif
|
|
179
|
|
180 #ifdef HAVE_GTK
|
|
181 gtk_objs=console-gtk.o device-gtk.o event-gtk.o frame-gtk.o \
|
|
182 objects-gtk.o redisplay-gtk.o glyphs-gtk.o select-gtk.o gccache-gtk.o \
|
|
183 gtk-xemacs.o ui-gtk.o
|
|
184 gtk_gui_objs=$(gui_objs:.o=-gtk.o)
|
|
185 #ifdef HAVE_TOOLBARS
|
|
186 gtk_gui_objs += toolbar-common.o
|
|
187 #endif
|
|
188 #endif
|
|
189
|
|
190 #ifdef HAVE_BALLOON_HELP
|
|
191 balloon_help_objs=balloon_help.o balloon-x.o
|
|
192 #endif
|
|
193
|
|
194 #ifdef CLASH_DETECTION
|
|
195 clash_detection_objs=filelock.o
|
|
196 #endif
|
|
197
|
|
198 #ifdef HAVE_DATABASE
|
|
199 database_objs=database.o
|
|
200 #endif
|
|
201
|
|
202 #ifdef DEBUG_XEMACS
|
|
203 debug_objs=debug.o tests.o
|
|
204 #endif
|
|
205
|
|
206 #ifdef HAVE_UNIXOID_EVENT_LOOP
|
|
207 event_unixoid_objs=event-unixoid.o
|
|
208 #endif
|
|
209
|
|
210 #ifdef HAVE_GIF
|
|
211 gif_objs=dgif_lib.o gif_io.o
|
|
212 #endif
|
|
213
|
|
214 #ifdef HAVE_GPM
|
|
215 gpm_objs=gpmevent.o
|
|
216 #endif
|
|
217
|
996
|
218 #if defined(HAVE_LDAP) && !defined(HAVE_SHLIB)
|
|
219 ldap_objs=../modules/ldap/eldap.o
|
771
|
220 #endif
|
|
221
|
|
222 #ifdef MULE
|
|
223 mule_objs=mule-ccl.o mule-charset.o mule-coding.o
|
|
224 #endif
|
|
225
|
|
226 #ifdef HAVE_CANNA
|
|
227 mule_canna_objs=mule-canna.o
|
|
228 #endif
|
|
229
|
|
230 #ifdef HAVE_WNN
|
|
231 mule_wnn_objs=mule-wnnfns.o
|
|
232 #endif
|
|
233
|
996
|
234 #if defined(HAVE_POSTGRESQL) && !defined(HAVE_SHLIB)
|
|
235 postgresql_objs=../modules/postgresql/postgresql.o
|
771
|
236 #endif
|
|
237
|
|
238 #ifdef HAVE_WIN32_PROCESSES
|
|
239 process_objs=process-nt.o
|
|
240 #elif defined (HAVE_UNIX_PROCESSES)
|
|
241 process_objs=process-unix.o
|
|
242 #endif
|
|
243
|
|
244 #ifdef HAVE_SETITIMER
|
|
245 profile_objs=profile.o
|
|
246 #endif
|
|
247
|
442
|
248 #if defined (HEAP_IN_DATA) && !defined (PDUMP)
|
|
249 sheap_objs=sheap.o
|
|
250 #endif
|
|
251
|
771
|
252 #ifdef HAVE_SHLIB
|
|
253 shlib_objs=sysdll.o emodules.o
|
|
254 #endif
|
|
255
|
|
256 #ifdef SUNPRO
|
|
257 sunpro_objs=sunpro.o
|
428
|
258 #endif
|
|
259
|
771
|
260 #ifdef TOOLTALK
|
|
261 tooltalk_objs=tooltalk.o
|
|
262 #endif
|
|
263
|
|
264 #if defined (WIN32_NATIVE) || defined (CYGWIN)
|
|
265 win32_objs=win32.o intl-win32.o intl-auto-encap-win32.o intl-encap-win32.o \
|
|
266 xemacs_res.o
|
611
|
267 #endif
|
|
268
|
428
|
269 ## -Demacs is needed to make some files produce the correct version
|
|
270 ## for use in Emacs.
|
|
271
|
|
272 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all)
|
|
273 cflags = $(CFLAGS) $(cppflags)
|
448
|
274 #if defined (WIN32_NATIVE) || defined (CYGWIN)
|
606
|
275 ldflags = $(LDFLAGS) -mwindows -e _mainCRTStartup $(ld_switch_all) $(ld_dynamic_link_flags)
|
448
|
276 #else
|
428
|
277 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
|
448
|
278 #endif
|
428
|
279
|
|
280 #ifdef SOLARIS2
|
|
281 %.o : %.c
|
|
282 #else
|
|
283 .c.o:
|
|
284 #endif
|
|
285 $(CC) -c $(cflags) $<
|
|
286
|
|
287 ## Create preprocessor output (debugging purposes only)
|
|
288 .c.i:
|
|
289 #ifdef __GNUC__
|
|
290 $(CC) -E $(cppflags) -o $@ $<
|
|
291 #else /* works on Solaris; what about other systems? */
|
|
292 $(CC) -P $(cppflags) $<
|
|
293 #endif /* compiler */
|
|
294
|
|
295 ## Create assembler output (debugging purposes only)
|
|
296 .c.s:
|
|
297 $(CC) -S -c $(cflags) $<
|
|
298
|
|
299 ## Create RTL files
|
|
300 %.c.rtl : %.c
|
|
301 $(CC) -dr -c $(cflags) $<
|
|
302
|
|
303 ## lastfile must follow all files whose initialized data areas should
|
|
304 ## be dumped as pure by dump-emacs.
|
|
305
|
|
306 ## NOTE: The last line cannot be all macros, because make will barf
|
|
307 ## if they all come out null.
|
|
308
|
|
309 objs=\
|
851
|
310 abbrev.o alloc.o alloca.o \
|
|
311 $(balloon_help_objs) blocktype.o buffer.o bytecode.o \
|
853
|
312 callint.o casefiddle.o casetab.o chartab.o \
|
851
|
313 $(clash_detection_objs) cmdloop.o cmds.o $(coding_system_objs) console.o \
|
|
314 console-stream.o\
|
771
|
315 data.o $(database_objs) $(debug_objs) device.o dired.o doc.o doprnt.o\
|
851
|
316 dynarr.o \
|
771
|
317 editfns.o elhash.o emacs.o eval.o events.o\
|
|
318 event-stream.o $(event_unixoid_objs) $(extra_objs) extents.o\
|
|
319 faces.o file-coding.o fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o \
|
|
320 font-lock.o frame.o\
|
|
321 general.o $(gif_objs) glyphs.o glyphs-eimage.o glyphs-shared.o\
|
793
|
322 glyphs-widget.o $(gpm_objs) $(gtk_objs) $(gtk_gui_objs) $(gui_objs) \
|
|
323 gutter.o\
|
771
|
324 hash.o imgproc.o indent.o insdel.o intl.o\
|
|
325 keymap.o $(RTC_patch_objs) line-number.o $(ldap_objs) lread.o lstream.o\
|
|
326 macros.o marker.o md5.o minibuf.o $(mswindows_objs) $(mswindows_gui_objs)\
|
|
327 $(mule_objs) $(mule_canna_objs) $(mule_wnn_objs) objects.o opaque.o\
|
|
328 $(postgresql_objs) print.o process.o $(process_objs) $(profile_objs)\
|
|
329 rangetab.o realpath.o redisplay.o redisplay-output.o regex.o\
|
|
330 search.o select.o $(sheap_objs) $(shlib_objs) signal.o sound.o\
|
|
331 specifier.o strftime.o $(sunpro_objs) symbols.o syntax.o sysdep.o\
|
|
332 text.o $(tooltalk_objs) $(tty_objs) undo.o unicode.o $(x_objs) $(x_gui_objs)\
|
|
333 widget.o window.o $(win32_objs)
|
428
|
334
|
|
335 obj_rtl = $(objs:.o=.c.rtl)
|
|
336
|
|
337 #ifdef REL_ALLOC
|
|
338 rallocdocsrc = ralloc.c
|
|
339 rallocobjs = ralloc.o
|
|
340 #endif
|
|
341
|
|
342 malloclib = $(libmcheck)
|
|
343 #ifndef SYSTEM_MALLOC
|
|
344 # ifdef GNU_MALLOC /* GNU malloc */
|
|
345 # ifdef ERROR_CHECK_MALLOC
|
|
346 #ifdef DOUG_LEA_MALLOC
|
|
347 mallocobjs = free-hook.o vm-limit.o
|
|
348 #else
|
|
349 mallocobjs = gmalloc.o free-hook.o vm-limit.o
|
|
350 #endif
|
|
351 mallocdocsrc = free-hook.c
|
|
352 # else /* New GNU malloc, sans error checking */
|
|
353 #ifdef DOUG_LEA_MALLOC
|
|
354 mallocobjs = vm-limit.o
|
|
355 #else
|
|
356 mallocobjs = gmalloc.o vm-limit.o
|
|
357 #endif
|
|
358 mallocdocsrc =
|
|
359 # endif /* ERROR_CHECK_MALLOC */
|
|
360 # else /* Older GNU malloc */
|
|
361 mallocobjs = malloc.o
|
|
362 mallocdocsrc =
|
|
363 # endif /* Older GNU malloc */
|
|
364 #else /* SYSTEM_MALLOC */
|
|
365 mallocobjs =
|
|
366 mallocdocsrc =
|
|
367 #ifdef USE_DEBUG_MALLOC
|
|
368 malloclib = -ldmalloc
|
|
369 #endif /* USE_DEBUG_MALLOC */
|
|
370 #endif /* SYSTEM_MALLOC */
|
|
371
|
|
372 #ifdef HAVE_X_WINDOWS
|
|
373
|
|
374 # ifdef EXTERNAL_WIDGET
|
|
375 external_widget_objs = ExternalShell.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
|
|
376
|
|
377 ## Now we try to figure out how to link a shared library.
|
|
378 ## If we cannot figure it out, leave EXTW_LINK undefined and a shared
|
|
379 ## library will not be created.
|
|
380
|
|
381 # ifdef USE_GCC
|
|
382 # ifdef USG5
|
|
383 # define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output
|
|
384 extw_link_beg = $(CC) -shared
|
|
385 extw_link_mid = -Xlinker -z -Xlinker text -o
|
440
|
386 extw_link_end =
|
428
|
387 ## I cannot figure out how to do shared a.out libraries, so just punt.
|
|
388 # elif !defined (LINUX) || defined (__ELF__)
|
|
389 # define EXTW_LINK(objs, output) $(CC) -shared objs -o output
|
|
390 extw_link_beg = $(CC) -shared
|
|
391 extw_link_mid = -o
|
440
|
392 extw_link_end =
|
428
|
393 # endif
|
|
394 # elif defined (USG5)
|
|
395 # if defined (IRIX)
|
|
396 # define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations objs -o output
|
440
|
397 extw_link_beg = $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations
|
|
398 extw_link_mid = -o
|
|
399 extw_link_end =
|
428
|
400 # else /* not IRIX */
|
|
401 # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output
|
|
402 extw_link_beg = $(CC) -G
|
|
403 extw_link_mid = -z text -o
|
440
|
404 extw_link_end =
|
428
|
405 # endif /* not IRIX */
|
|
406 # else /* not USG5 */
|
|
407 # if defined (DEC_ALPHA) && defined (OSF1)
|
|
408 # define EXTW_LINK(objs, output) $(LD) $(ldflags) $(ld_switch_shared) -d objs -o output $(LIBES)
|
440
|
409 extw_link_beg = $(LD) $(ldflags) $(ld_switch_shared) -d
|
|
410 extw_link_mid = -o
|
428
|
411 extw_link_end = $(LIBES)
|
|
412 # else /* !(DEC_ALPHA && OSF1) */
|
|
413 # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output
|
|
414 extw_link_beg = $(LD) -dc
|
|
415 extw_link_mid = -assert pure-text -o
|
440
|
416 extw_link_end =
|
428
|
417 # endif /* !(DEC_ALPHA && OSF1) */
|
|
418 # endif /* not USG5 */
|
|
419
|
|
420 # ifdef LWLIB_USES_MOTIF
|
|
421 # ifdef EXTW_LINK
|
|
422 motif_other_files = libextcli_Xm.a libextcli_Xm.so.1
|
|
423 # else
|
|
424 motif_other_files = libextcli_Xm.a
|
|
425 # endif
|
|
426 #endif /* LWLIB_USES_MOTIF */
|
|
427
|
|
428 # ifdef EXTW_LINK
|
|
429 shared_other_files = libextcli_Xt.so.1 libextcli_Xlib.so.1
|
|
430 # endif
|
|
431 other_files=\
|
|
432 ${motif_other_files}\
|
|
433 libextcli_Xt.a libextcli_Xlib.a\
|
|
434 ${shared_other_files}
|
|
435
|
|
436 all: ${other_files}
|
|
437 # endif /* EXTERNAL_WIDGET */
|
|
438
|
|
439 # if defined (HAVE_OFFIX_DND) || defined (HAVE_CDE)
|
|
440 dnd_objs = @dnd_objs@
|
|
441 # endif /* HAVE_OFFIX_DND || HAVE_CDE */
|
|
442
|
|
443 X11_objs = EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o $(external_widget_objs) $(dnd_objs)
|
|
444 #endif /* HAVE_X_WINDOWS */
|
|
445
|
|
446 ## define otherobjs as list of object files that make-docfile
|
|
447 ## should not be told about.
|
|
448 otherobjs = lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs)
|
|
449 otherrtls = $(otherobjs:.o=.c.rtl)
|
|
450 othersrcs = $(otherobjs:.o=.c)
|
|
451
|
|
452 LIBES = $(lwlib_libs) $(malloclib) $(ld_libs_all) $(lib_gcc)
|
|
453
|
|
454 #ifdef I18N3
|
|
455 mo_dir = ${etcdir}
|
|
456 mo_file = ${mo_dir}emacs.mo
|
|
457 #endif
|
|
458
|
776
|
459 batch = -no-packages -batch
|
|
460 batch_packages = -vanilla -batch
|
|
461 temacs_loadup = ./${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/loadup.el
|
428
|
462 dump_temacs = ${temacs_loadup} dump
|
|
463 run_temacs = ${temacs_loadup} run-temacs
|
442
|
464 debug_temacs = gdb ${EXE_TARGET}
|
428
|
465
|
442
|
466 release: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files}
|
428
|
467 #ifdef CANNOT_DUMP
|
442
|
468 ln ${EXE_TARGET} ${PROGNAME}
|
428
|
469 #else
|
|
470 -if [ -w ${srcdir}/../lisp ]; then \
|
776
|
471 w=`pwd`; cd ${srcdir} && $${w}/${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/inc-vers; \
|
428
|
472 else true; fi
|
776
|
473 -./${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/loadup.el dump
|
428
|
474 touch release
|
|
475 #endif /* ! defined (CANNOT_DUMP) */
|
|
476
|
442
|
477 ${DUMP_TARGET}: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp
|
428
|
478 #ifdef HEAP_IN_DATA
|
442
|
479 @$(RM) $@ && touch SATISFIED
|
428
|
480 -${dump_temacs}
|
|
481 @if test -f $@; then if test -f SATISFIED; then \
|
|
482 echo "Testing for Lisp shadows ..."; \
|
776
|
483 ./${PROGNAME} ${batch} -f list-load-path-shadows; fi; \
|
428
|
484 $(RM) SATISFIED; exit 0; fi; \
|
|
485 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \
|
442
|
486 $(RM) $@; \
|
428
|
487 $(RECURSIVE_MAKE) $@;
|
|
488 #else
|
442
|
489 @$(RM) $@
|
440
|
490 ${dump_temacs}
|
428
|
491 @echo "Testing for Lisp shadows ..."
|
776
|
492 @./${PROGNAME} ${batch} -f list-load-path-shadows
|
428
|
493 #endif
|
|
494
|
442
|
495 fastdump: ${EXE_TARGET}
|
|
496 @$(RM) ${DUMP_TARGET} && touch SATISFIED
|
428
|
497 -${dump_temacs}
|
776
|
498 @./${PROGNAME} ${batch} -f list-load-path-shadows
|
428
|
499
|
|
500 FRC.update-elc.stamp :
|
|
501
|
442
|
502 update-elc.stamp : ${EXE_TARGET} FRC.update-elc.stamp
|
428
|
503 @touch NOBYTECOMPILE
|
776
|
504 ./${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/update-elc.el
|
428
|
505 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \
|
|
506 $(RM) NOBYTECOMPILE
|
|
507
|
|
508 obj_src = $(objs:.o=.c)
|
|
509
|
|
510 dortl : $(obj_rtl) $(otherrtls)
|
|
511 echo "(defvar source-files '(" > ${srcdir}/../lisp/source-files.el
|
|
512 (for a in $(obj_src) $(othersrcs);do \
|
|
513 echo -n "\""$$a"\"" >> ${srcdir}/../lisp/source-files.el ;\
|
|
514 done)
|
|
515 echo "))" >> ${srcdir}/../lisp/source-files.el
|
|
516
|
|
517 #ifdef DYNODUMP
|
|
518 dynodump_deps = ../dynodump/dynodump.so
|
|
519 ../dynodump/dynodump.so:
|
|
520 cd ../dynodump && $(RECURSIVE_MAKE)
|
|
521 #endif /* DYNODUMP */
|
|
522
|
442
|
523 ${libsrc}DOC: ${EXE_TARGET} update-elc.stamp
|
428
|
524 $(RM) ${libsrc}DOC; \
|
776
|
525 ${DUMPENV} ./${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/make-docfile.el -- \
|
428
|
526 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \
|
462
|
527 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} ${extra_doc_files}
|
428
|
528
|
|
529 dump_elcs: dump-elcs
|
|
530
|
442
|
531 dump-elcs: ${EXE_TARGET}
|
776
|
532 -${DUMPENV} ./${EXE_TARGET} -nd ${batch} -l ${srcdir}/../lisp/update-elc.el
|
428
|
533
|
|
534 all-elc all-elcs:
|
|
535 cd .. && $(RECURSIVE_MAKE) all-elc
|
|
536
|
|
537 #ifdef I18N3
|
|
538
|
|
539 # if defined(SPARC) && !defined(USG)
|
|
540 xgettext= /usr/openwin/bin/xgettext
|
|
541 xgettext_args= -o emacs -m_X messages
|
|
542 msgfmt= /usr/openwin/bin/msgfmt
|
|
543 # else
|
|
544 xgettext= xgettext
|
|
545 xgettext_args= -s -d emacs -M_X messages
|
|
546 msgfmt= msgfmt
|
|
547 #endif
|
|
548
|
|
549 ${mo_dir}emacs.po: ${libsrc}make-msgfile ${libsrc}make-po ${objs}
|
|
550 ${libsrc}make-msgfile -o ${libsrc}messages ${objs}
|
|
551 cd ${libsrc} && ${xgettext} ${xgettext_args}
|
|
552 $(RM) ${mo_dir}emacs.po
|
|
553 cd ${libsrc} && ${libsrc}make-po -a ${mo_dir}emacs.po DOC
|
|
554
|
|
555 ${mo_dir}emacs.mo: ${mo_dir}emacs.po
|
|
556 cd ${mo_dir} && ${msgfmt} -o emacs.mo emacs.po
|
|
557
|
|
558 ${libsrc}make-msgfile:
|
|
559 cd ${libsrc} && $(RECURSIVE_MAKE) make-msgfile
|
|
560
|
|
561 ${libsrc}make-po:
|
|
562 cd ${libsrc} && $(RECURSIVE_MAKE) make-po
|
|
563
|
|
564 #endif /* I18N3 */
|
|
565
|
442
|
566 ${libsrc}make-dump-id:
|
|
567 cd ${libsrc} && $(RECURSIVE_MAKE) make-dump-id
|
|
568
|
428
|
569 ${libsrc}make-docfile:
|
|
570 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile
|
|
571
|
|
572 ## Lint Section
|
|
573 LINT.c=$(LINT) $(LINTFLAGS) $(LINTINCLUDES)
|
|
574 LINTFILES= $(objs:.o=.ln)
|
|
575 LINTINCLUDES = $(cppflags)
|
|
576 ## LINTFLAGS= -fd -m -p -s -u -v -x
|
|
577 LINTFLAGS= -fd -m -s -u -v -x
|
|
578 lint: $(LINTFILES)
|
|
579 $(LINT.c) $(LINTFILES)
|
|
580 ## end of Lint Section
|
|
581
|
442
|
582 link_deps=\
|
428
|
583 $(start_files) ${objs} ${otherobjs}\
|
|
584 $(lwlib_deps) $(dynodump_deps)
|
|
585
|
460
|
586 temacs_deps = $(link_deps) ${DUMP_ID}
|
428
|
587
|
442
|
588 temacs_link_args=\
|
460
|
589 ${start_flags} ${ldflags}\
|
|
590 -o $@ ${start_files} ${objs} ${otherobjs} ${DUMP_ID} ${LIBES}
|
442
|
591
|
|
592 ${EXE_TARGET}: $(temacs_deps)
|
428
|
593 $(LD) $(temacs_link_args)
|
442
|
594
|
|
595 dump-id.c: ${libsrc}make-dump-id ${link_deps}
|
|
596 ${libsrc}make-dump-id
|
428
|
597
|
|
598 .PHONY : run-temacs
|
|
599
|
442
|
600 run-temacs: ${EXE_TARGET}
|
428
|
601 -${run_temacs}
|
|
602
|
|
603 ## We have automated tests!!
|
|
604 testdir = ${srcdir}/../tests/automated
|
826
|
605 batch_test_emacs = ${batch_packages} -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir}
|
428
|
606
|
|
607 .PHONY: check check-temacs
|
|
608 check:
|
|
609 ./${PROGNAME} ${batch_test_emacs}
|
|
610 check-temacs:
|
|
611 ${run_temacs} ${batch_test_emacs}
|
|
612
|
|
613 ## Debugging targets:
|
|
614 ##
|
|
615 ## None of the debugging products work with a dumped xemacs binary,
|
|
616 ## because it does unexpected things like free memory that has been
|
|
617 ## malloc'ed in a *different* process!! So we need to run these on
|
|
618 ## temacs.
|
|
619
|
|
620 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx
|
|
621 rtc_patch.o:
|
|
622 rtc_patch_area -o $@
|
|
623
|
|
624 rtcmacs: $(temacs_deps) rtc_patch.o
|
442
|
625 $(RM) ${EXE_TARGET}; $(RECURSIVE_MAKE) ${EXE_TARGET} RTC_patch_objs=rtc_patch.o
|
|
626 mv ${EXE_TARGET} rtcmacs
|
428
|
627
|
|
628 .PHONY: run-rtcmacs
|
|
629 run-rtcmacs: rtcmacs
|
|
630 dbx -q -C -c \
|
|
631 'dbxenv rtc_error_log_file_name /dev/fd/1; \
|
|
632 dbxenv suppress_startup_message 5.0; \
|
|
633 ignore POLL; \
|
|
634 check -access; \
|
|
635 suppress rui; \
|
776
|
636 runargs ${batch} -l ${srcdir}/../lisp/loadup.el run-temacs -vanilla; \
|
428
|
637 run' rtcmacs
|
|
638
|
442
|
639 debug-temacs: ${EXE_TARGET}
|
434
|
640 -${debug_temacs}
|
|
641
|
428
|
642 ## Purify, Quantify, PureCoverage are software quality products from
|
|
643 ## Rational, formerly Pure Atria, formerly Pure Software.
|
|
644 ##
|
|
645 ## Purify
|
|
646 PURIFY_PROG = purify
|
460
|
647 PURIFY_LIBS =
|
440
|
648 PURIFY_FLAGS =\
|
|
649 #ifdef PDUMP
|
|
650 -search-mmaps=yes\
|
|
651 #endif
|
460
|
652 -chain-length=32 -ignore-signals=SIGPOLL\
|
|
653 -cache-dir=${blddir}/purecache -always-use-cache-dir=yes
|
440
|
654
|
428
|
655 puremacs: $(temacs_deps)
|
|
656 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS)
|
442
|
657 cp $@ ${EXE_TARGET}
|
428
|
658
|
|
659 ## Quantify
|
|
660 #ifdef QUANTIFY
|
|
661 QUANTIFY_PROG = quantify
|
|
662 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir`
|
|
663 QUANTIFY_FLAGS = -cache-dir=./purecache -always-use-cache-dir=yes
|
|
664 cppflags += -I$(QUANTIFY_HOME)
|
|
665 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a
|
|
666
|
|
667 quantmacs: $(temacs_deps)
|
|
668 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args)
|
442
|
669 cp $@ ${EXE_TARGET}
|
428
|
670 #endif /* QUANTIFY */
|
|
671
|
|
672
|
|
673 PURECOV_PROG=purecov
|
|
674 covmacs: $(temacs_deps)
|
|
675 $(PURECOV_PROG) $(LD) $(temacs_link_args)
|
|
676
|
|
677
|
|
678 TopLevelEmacsShell.o : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h
|
|
679 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
|
|
680 mv EmacsShell-sub.o TopLevelEmacsShell.o
|
|
681
|
|
682 TopLevelEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h
|
|
683 $(CC) -dr -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
|
|
684 mv EmacsShell-sub.c.rtl TopLevelEmacsShell.c.rtl
|
|
685
|
|
686 TransientEmacsShell.o : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h
|
|
687 $(CC) -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
|
|
688 mv EmacsShell-sub.o TransientEmacsShell.o
|
|
689
|
|
690 TransientEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h
|
|
691 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
|
|
692 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl
|
|
693
|
442
|
694 ## The above rules are subject to a race condition if using a parallel make.
|
|
695 TransientEmacsShell.o : TopLevelEmacsShell.o
|
|
696 TransientEmacsShell.c.rtl : TopLevelEmacsShell.c.rtl
|
|
697
|
428
|
698 ## Position-independent code for shared library creation
|
|
699 #if USE_GCC
|
|
700 pic_arg = -fpic
|
|
701 #elif defined (IRIX)
|
|
702 pic_arg = -KPIC
|
|
703 # else
|
|
704 pic_arg = -K pic
|
|
705 #endif
|
|
706
|
|
707 #ifdef EXTERNAL_WIDGET
|
|
708
|
|
709 external_client_motif_objs_shared = ExternalClient-Xm-shared.o extw-Xt-shared.o extw-Xlib-shared.o
|
|
710 external_client_xt_objs_shared = ExternalClient-Xt-shared.o extw-Xt-shared.o extw-Xlib-shared.o
|
|
711 external_client_xlib_objs_shared = ExternalClient-Xlib-shared.o extw-Xlib-shared.o
|
|
712 external_client_motif_objs_nonshared = ExternalClient-Xm-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
|
|
713 external_client_xt_objs_nonshared = ExternalClient-Xt-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o
|
|
714 external_client_xlib_objs_nonshared = ExternalClient-Xlib-nonshared.o extw-Xlib-nonshared.o
|
|
715
|
|
716 ## Add dependencies so things work right with a parallel make
|
|
717 ExternalClient-Xm-shared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-shared.o ExternalClient-Xm-nonshared.o
|
|
718 $(CC) -c $(pic_arg) $(cflags) -DEXTW_USES_MOTIF ${srcdir}/ExternalClient.c
|
|
719 mv ExternalClient.o ExternalClient-Xm-shared.o
|
|
720
|
|
721 ExternalClient-Xt-shared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-nonshared.o
|
|
722 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/ExternalClient.c
|
|
723 mv ExternalClient.o ExternalClient-Xt-shared.o
|
|
724
|
|
725 ExternalClient-Xlib-shared.o: ${srcdir}/ExternalClient-Xlib.c ExternalClient-Xlib-nonshared.o
|
|
726 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/ExternalClient-Xlib.c
|
|
727 mv ExternalClient-Xlib.o ExternalClient-Xlib-shared.o
|
|
728
|
|
729 ExternalClient-Xm-nonshared.o: ${srcdir}/ExternalClient.c ExternalClient-Xt-nonshared.o
|
|
730 $(CC) -c $(cflags) -DEXTW_USES_MOTIF ${srcdir}/ExternalClient.c
|
|
731 mv ExternalClient.o ExternalClient-Xm-nonshared.o
|
|
732
|
|
733 ExternalClient-Xt-nonshared.o: ${srcdir}/ExternalClient.c
|
|
734 $(CC) -c $(cflags) ${srcdir}/ExternalClient.c
|
|
735 mv ExternalClient.o ExternalClient-Xt-nonshared.o
|
|
736
|
|
737 ExternalClient-Xlib-nonshared.o: ${srcdir}/ExternalClient-Xlib.c
|
|
738 $(CC) -c $(cflags) ${srcdir}/ExternalClient-Xlib.c
|
|
739 mv ExternalClient-Xlib.o ExternalClient-Xlib-nonshared.o
|
|
740
|
|
741 ## We compile the common files twice (once with PIC and once without)
|
|
742 ## because on some systems, compiling with PIC but not linking into
|
|
743 ## a shared library messes things up.
|
|
744
|
|
745 extw-Xt-shared.o: ${srcdir}/extw-Xt.c extw-Xt-nonshared.o
|
|
746 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/extw-Xt.c
|
|
747 mv extw-Xt.o extw-Xt-shared.o
|
|
748
|
|
749 extw-Xlib-shared.o: ${srcdir}/extw-Xlib.c extw-Xlib-nonshared.o
|
|
750 $(CC) -c $(pic_arg) $(cflags) ${srcdir}/extw-Xlib.c
|
|
751 mv extw-Xlib.o extw-Xlib-shared.o
|
|
752
|
|
753 extw-Xt-nonshared.o: ${srcdir}/extw-Xt.c
|
|
754 $(CC) -c $(cflags) ${srcdir}/extw-Xt.c
|
|
755 mv extw-Xt.o extw-Xt-nonshared.o
|
|
756
|
|
757 extw-Xlib-nonshared.o: ${srcdir}/extw-Xlib.c
|
|
758 $(CC) -c $(cflags) ${srcdir}/extw-Xlib.c
|
|
759 mv extw-Xlib.o extw-Xlib-nonshared.o
|
|
760
|
|
761 libextcli_Xm.a: ${external_client_motif_objs_nonshared}
|
|
762 ar r libextcli_Xm.a ${external_client_motif_objs_nonshared}
|
|
763
|
|
764 libextcli_Xt.a: ${external_client_xt_objs_nonshared}
|
|
765 ar r libextcli_Xt.a ${external_client_xt_objs_nonshared}
|
|
766
|
|
767 libextcli_Xlib.a: ${external_client_xlib_objs_nonshared}
|
|
768 ar r libextcli_Xlib.a ${external_client_xlib_objs_nonshared}
|
|
769
|
|
770 #ifdef EXTW_LINK
|
|
771
|
|
772 libextcli_Xm.so.1: ${external_client_motif_objs_shared}
|
|
773 ${extw_link_beg} ${external_client_motif_objs_shared} ${extw_link_mid} libextcli_Xm.so.1 ${extw_link_end}
|
|
774
|
|
775 libextcli_Xt.so.1: ${external_client_xt_objs_shared}
|
|
776 ${extw_link_beg} ${external_client_xt_objs_shared} ${extw_link_mid} libextcli_Xt.so.1 ${extw_link_end}
|
|
777
|
|
778 libextcli_Xlib.so.1: ${external_client_xlib_objs_shared}
|
|
779 ${extw_link_beg} ${external_client_xlib_objs_shared} ${extw_link_mid} libextcli_Xlib.so.1 ${extw_link_end}
|
|
780
|
|
781 #endif /* EXTW_LINK */
|
|
782
|
|
783 #endif /* EXTERNAL_WIDGET */
|
|
784
|
|
785 config.h: ${srcdir}/config.h.in
|
|
786 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad
|
|
787
|
|
788 config.h sheap-adjust.h paths.h Emacs.ad.h :
|
|
789 @echo "The file $@ needs to be re-generated."
|
|
790 @echo "Please run a make in the top level directory."
|
|
791 @echo "Consult the file \`INSTALL' for instructions for building XEmacs."
|
|
792 @exit 1
|
|
793
|
|
794 ## Some machines have alloca built-in.
|
|
795 ## They should define HAVE_ALLOCA, or may just let alloca.s
|
|
796 ## be used but generate no code.
|
|
797 ## Some have it written in assembler in alloca.s.
|
|
798 ## Some use the C version in alloca.c (these define C_ALLOCA in config.h).
|
851
|
799 ## Nowadays we always compile in the C version and use it to avoid stack
|
|
800 ## overflow.
|
428
|
801
|
|
802 #ifdef C_ALLOCA
|
|
803 #else
|
|
804 #ifndef HAVE_ALLOCA
|
851
|
805 allocax.o : ${srcdir}/alloca.s config.h
|
428
|
806 ## $(CPP) is cc -E, which may get confused by filenames
|
|
807 ## that do not end in .c. So copy file to a safe name. */
|
|
808 ## cp ${srcdir}/alloca.s allocatem.c
|
|
809 ## Remove any ^L, blank lines, and preprocessor comments,
|
|
810 ## since some assemblers barf on them. Use a different basename for the
|
|
811 ## output file, since some stupid compilers (Green Hill) use that
|
|
812 ## name for the intermediate assembler file.
|
|
813 $(CPP) $(cppflags) allocatem.c | \
|
|
814 sed -e 's///' -e 's/^#.*//' | \
|
|
815 sed -n -e '/^..*$$/p' > allocax.s
|
|
816 @$(RM) alloca.o
|
|
817 ## Xenix, in particular, needs to run assembler via cc.
|
|
818 $(CC) -c allocax.s
|
|
819 $(RM) allocax.s allocatem.c
|
|
820 #endif /* HAVE_ALLOCA */
|
|
821 #endif /* ! defined (C_ALLOCA) */
|
|
822
|
|
823 #ifdef HAVE_NATIVE_SOUND
|
442
|
824 sound_cflags=@sound_cflags@
|
428
|
825 sunplay.o: ${srcdir}/sunplay.c
|
|
826 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c
|
|
827 hpplay.o: ${srcdir}/hpplay.c
|
|
828 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c
|
|
829 #endif /* HAVE_NATIVE_SOUND */
|
|
830
|
462
|
831 #if defined(HAVE_GLADE_GLADE_H) || defined(HAVE_GLADE_H)
|
|
832 glade_files=glade.c
|
|
833 #endif
|
|
834
|
|
835 #ifdef HAVE_GTK
|
|
836 extra_doc_files=emacs-widget-accessors.c ui-byhand.c $(glade_files)
|
|
837 #endif
|
|
838
|
442
|
839 xemacs_res.o: ${srcdir}/../nt/xemacs.rc
|
|
840 windres --include-dir ${srcdir}/../nt -i ${srcdir}/../nt/xemacs.rc -o $@
|
|
841
|
428
|
842 ## System-specific programs to be made.
|
|
843 ## ${other_files}, $(objects_system) and $(objects_machine)
|
|
844 ## select which of these should be compiled. */
|
|
845
|
|
846 .PHONY: mostlyclean clean distclean realclean versionclean extraclean
|
|
847 mostlyclean:
|
442
|
848 $(RM) temacs puremacs quantmacs *.o *.i \
|
428
|
849 core temacs.exe sheap-adjust.h
|
|
850 clean: mostlyclean versionclean
|
|
851 $(RM) libextcli* update-elc.stamp
|
|
852 ## This is used in making a distribution.
|
|
853 ## Do not use it on development directories!
|
|
854 distclean: clean
|
|
855 $(RM) config.h paths.h Emacs.ad.h \
|
|
856 GNUmakefile Makefile Makefile.in TAGS ${PROGNAME}.*
|
|
857 realclean: distclean
|
|
858 versionclean:
|
442
|
859 $(RM) ${EXE_TARGET} ${DUMP_TARGET} ${libsrc}DOC
|
428
|
860 extraclean: realclean
|
|
861 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#*
|
|
862
|
|
863 .PHONY : lock unlock
|
|
864 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \
|
|
865 config.h.in README COPYING ChangeLog
|
|
866 unlock:
|
|
867 chmod u+w $(SOURCES)
|
|
868
|
|
869 relock:
|
|
870 chmod -w $(SOURCES)
|
|
871
|
|
872 ## Header files for ellcc
|
|
873 #ifdef HAVE_SHLIB
|
|
874 MAKEPATH=../lib-src/make-path
|
|
875 install: ${PROGNAME}
|
|
876 ${MAKEPATH} ${archlibdir}/include ${archlibdir}/include/m ${archlibdir}/include/s
|
|
877 -@echo "Copying include files for ellcc..."
|
|
878 -@hdir=`pwd`; \
|
|
879 cd ${srcdir}; hdrdir2=`pwd`; cd $$hdir; \
|
|
880 test "$$hdrdir2" != "$$hdir" && hdir="$$hdir $$hdrdir2"; \
|
|
881 (for thisdir in $$hdir; do \
|
448
|
882 cd $$thisdir && \
|
428
|
883 (hdrtars=; \
|
|
884 for hdrfile in *.h; do \
|
|
885 hdrtars="$$hdrtars $$hdrfile"; \
|
|
886 done; \
|
|
887 test -d s && hdrtars="$$hdrtars s/*"; \
|
|
888 test -d m && hdrtars="$$hdrtars m/*"; \
|
|
889 test -n "$$hdrtars" && (tar cf - $$hdrtars) | \
|
|
890 (cd ${archlibdir}/include && umask 022 && tar xf -); \
|
|
891 chmod 755 ${archlibdir}/include; \
|
|
892 test -d ${archlibdir}/include/s && \
|
|
893 chmod 755 ${archlibdir}/include/s; \
|
|
894 test -d ${archlibdir}/include/m && \
|
|
895 chmod 755 ${archlibdir}/include/s;) \
|
|
896 done)
|
|
897 #endif
|
|
898
|
|
899 ## Dependency processing using home-grown script, not makedepend
|
|
900 .PHONY: depend
|
|
901 FRC.depend:
|
|
902 depend: FRC.depend
|
|
903 cd ${srcdir} && $(RM) depend.tmp && \
|
|
904 perl ./make-src-depend > depend.tmp && \
|
|
905 if cmp -s depend depend.tmp; \
|
|
906 then $(RM) depend.tmp; \
|
|
907 else $(RM) depend && mv depend.tmp depend; \
|
|
908 fi
|