XEmacs 21.2.9
[chise/xemacs-chise.git.1] / src / Makefile.in.in
index c8d7c2d..723d739 100644 (file)
@@ -2,6 +2,7 @@
 ##   Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
 ##   Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
 ##   Copyright (C) 1996, 1997 Sun Microsystems, Inc.
+##   Copyright (C) 1998, 1999 J. Kean Johnston.
 
 ## This file is part of XEmacs.
 
@@ -42,6 +43,7 @@ SHELL=/bin/sh
 RM = rm -f
 
 lispdir = ${srcdir}/../lisp/
+moduledir = ${srcdir}/../modules/
 libsrc = ../lib-src/
 etcdir = ../etc/
 
@@ -174,8 +176,8 @@ objs=\
  eval.o events.o $(extra_objs)\
  event-stream.o extents.o faces.o\
  fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\
- frame.o general.o getloadavg.o glyphs.o glyphs-eimage.o\
- $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\
+ frame.o general.o getloadavg.o glyphs.o glyphs-eimage.o glyphs-widget.o\
+ gui.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\
  keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\
  macros.o marker.o md5.o minibuf.o objects.o opaque.o\
  print.o process.o profile.o\
@@ -308,8 +310,9 @@ mo_dir = ${etcdir}
 mo_file = ${mo_dir}emacs.mo
 #endif
 
-LOADPATH =  EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}"
-DUMPENV = $(LOADPATH)
+LOADPATH   =  EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}"
+MODULEPATH =  EMACSBOOTSTRAPMODULEPATH="${moduledir}:${blddir}"
+DUMPENV = $(LOADPATH) $(MODULEPATH)
 temacs_loadup = $(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el
 dump_temacs   = ${temacs_loadup} dump
 run_temacs    = ${temacs_loadup} run-temacs
@@ -350,7 +353,7 @@ ${PROGNAME}: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp
 
 fastdump: temacs 
        @$(RM) ${PROGNAME} && touch SATISFIED
-       -${dumpp_temacs}
+       -${dump_temacs}
        @if test -f ${PROGNAME}; then if test -f SATISFIED; then \
                ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \
                $(RM) SATISFIED; exit 0; fi; \
@@ -454,10 +457,11 @@ run-temacs: temacs
 ## We have automated tests!!
 testdir = ${srcdir}/../tests/automated
 tests   = \
-       ${testdir}/hash-table-tests.el \
-       ${testdir}/lisp-tests.el \
-       ${testdir}/database-tests.el \
-       ${testdir}/byte-compiler-tests.el
+       ${testdir}/hash-table-tests.el    \
+       ${testdir}/lisp-tests.el          \
+       ${testdir}/database-tests.el      \
+       ${testdir}/byte-compiler-tests.el \
+       ${testdir}/md5-tests.el
 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${tests}
 
 .PHONY: check check-temacs
@@ -692,7 +696,7 @@ clean: mostlyclean versionclean
 ## Do not use it on development directories!
 distclean: clean
        $(RM) config.h paths.h Emacs.ad.h \
-         Makefile Makefile.in GNUmakefile TAGS ${PROGNAME}.*
+         GNUmakefile Makefile Makefile.in TAGS ${PROGNAME}.*
 realclean: distclean
 versionclean:
        $(RM) ${PROGNAME} ${PROGNAME}.exe ${libsrc}DOC
@@ -708,6 +712,33 @@ unlock:
 relock:
        chmod -w $(SOURCES)
 
+## Header files for ellcc
+#ifdef HAVE_SHLIB
+MAKEPATH=../lib-src/make-path
+install: ${PROGNAME}
+       ${MAKEPATH} ${archlibdir}/include ${archlibdir}/include/m ${archlibdir}/include/s
+       -@echo "Copying include files for ellcc..."
+       -@hdir=`pwd`; \
+       cd ${srcdir}; hdrdir2=`pwd`; cd $$hdir; \
+       test "$$hdrdir2" != "$$hdir" && hdir="$$hdir $$hdrdir2"; \
+       (for thisdir in $$hdir; do \
+               cd $$hdir && \
+               (hdrtars=; \
+               for hdrfile in *.h; do \
+                       hdrtars="$$hdrtars $$hdrfile"; \
+               done; \
+               test -d s && hdrtars="$$hdrtars s/*"; \
+               test -d m && hdrtars="$$hdrtars m/*"; \
+               test -n "$$hdrtars" && (tar cf - $$hdrtars) | \
+                       (cd ${archlibdir}/include && umask 022 && tar xf -); \
+               chmod 755 ${archlibdir}/include; \
+               test -d ${archlibdir}/include/s && \
+                 chmod 755 ${archlibdir}/include/s; \
+               test -d ${archlibdir}/include/m && \
+                 chmod 755 ${archlibdir}/include/s;) \
+       done)
+#endif
+
 ## Dependency processing using home-grown script, not makedepend
 .PHONY: depend
 FRC.depend: