!if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
USE_INDEXED_LRECORD_IMPLEMENTATION=0
!endif
+!if !defined(GUNG_HO)
+GUNG_HO=0
+!endif
#
# System configuration
!endif
#
-# Compiler command echo control. Define VERBOSECC=1 to get vebose compilation.
+# Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
#
!if !defined(VERBOSECC)
VERBOSECC=0
$(XEMACS)\src\regex.c \
$(XEMACS)\src\scrollbar.c \
$(XEMACS)\src\search.c \
+ $(XEMACS)\src\select.c \
$(XEMACS)\src\signal.c \
$(XEMACS)\src\sound.c
DOC_SRC5=\
$(XEMACS)\src\balloon-x.c \
$(XEMACS)\src\xgccache.c \
$(XEMACS)\src\xmu.c \
- $(XEMACS)\src\xselect.c
+ $(XEMACS)\src\select-x.c
!endif
!if $(HAVE_MSW)
DOC_SRC8=\
$(XEMACS)\src\mule.c \
$(XEMACS)\src\mule-charset.c \
- $(XEMACS)\src\mule-ccl.c \
- $(XEMACS)\src\mule-coding.c
+ $(XEMACS)\src\mule-ccl.c
! if $(HAVE_X)
DOC_SRC8=$(DOC_SRC8) $(XEMACS)\src\input-method-xlib.c
! endif
$(OUTDIR)\scrollbar-x.obj \
$(OUTDIR)\xgccache.obj \
$(OUTDIR)\xmu.obj \
- $(OUTDIR)\xselect.obj
+ $(OUTDIR)\select-x.obj
!endif
!if $(HAVE_MSW)
TEMACS_MULE_OBJS=\
$(OUTDIR)\mule.obj \
$(OUTDIR)\mule-charset.obj \
- $(OUTDIR)\mule-ccl.obj \
- $(OUTDIR)\mule-coding.obj
+ $(OUTDIR)\mule-ccl.obj
! if $(HAVE_X)
TEMACS_MULE_OBJS=\
$(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
$(OUTDIR)\regex.obj \
$(OUTDIR)\scrollbar.obj \
$(OUTDIR)\search.obj \
+ $(OUTDIR)\select.obj \
$(OUTDIR)\signal.obj \
$(OUTDIR)\sound.obj \
$(OUTDIR)\specifier.obj \
$(OUTDIR)\xemacs.res: xemacs.rc
rc -Fo$@ xemacs.rc
+# Section handling automated tests starts here
+
+SRCDIR=../src
+PROGNAME=xemacs
+blddir=$(MAKEDIR:\=\\)\\..
+temacs_loadup=temacs -batch -l $(SRCDIR)/../lisp/loadup.el
+dump_temacs = $(temacs_loadup) dump
+run_temacs = $(temacs_loadup) run-temacs
+## We have automated tests!!
+testdir=../tests/automated
+batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
+
+# .PHONY: check check-temacs
+
+check:
+ @cd $(SRCDIR)
+ $(PROGNAME) $(batch_test_emacs)
+
+check-temacs:
+ cd $(SRCDIR)
+ set EMACSBOOTSTRAPLOADPATH=$(LISP)
+ set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
+ $(run_temacs) $(batch_test_emacs)
+
+# Section handling automated tests ends here
+
#------------------------------------------------------------------------------
# LISP bits 'n bobs
$(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
# This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
-# requirements has changed.
+# requirements have changed.
dump-xemacs: $(TEMACS)
@echo >$(TEMACS_DIR)\SATISFIED
cd $(TEMACS_DIR)
#------------------------------------------------------------------------------
# use this rule to build the complete system
-all: Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
+all: $(XEMACS)\Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
$(TEMACS) update-elc $(DOC) dump-xemacs
temacs: $(TEMACS)
del *.orig
del *.rej
del *.tmp
- del Installation
+ del $(XEMACS)\Installation
cd $(OUTDIR)
del *.lib
del *.obj
depend:
mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) -- $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c $(LIB_SRC)\run.c
-Installation:
- @type > Installation <<
+$(XEMACS)\Installation:
+ @type > $(XEMACS)\Installation <<
!if defined(OS)
OS: $(OS)
!endif
!endif
<<NOKEEP
@echo --------------------------------------------------------------------
- @type Installation
+ @type $(XEMACS)\Installation
@echo --------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- make depend depends on it.