+2008-02-02 Jason Rumney <jasonr@gnu.org>
+
+ * makefile.w32-in (SRC): Define earlier.
+ (CHARPROP, UNIDATA, UNIDATA_SRC, UNIDATA_GEN, UNIDATA_GEN_SRC)
+ (UNIDATA_DEST, RUNTEMACS): New definitions.
+ ($(EMACS)): Depend on $(CHARPROP).
+ (temacs): Bump EMHEAP to 21.
+ ($(CHARPROP), $(UNIDATA), $(UNIDATA_GEN)): New targets.
+
2008-02-01 Jason Rumney <jasonr@gnu.org>
* s/cygwin.h: Define VIRT_ADDR_VARIES.
# Set EMACSLOADPATH correctly (in case already defined in environment).
EMACSLOADPATH=$(CURDIR)/../lisp
+SRC = .
+
#
# HAVE_CONFIG_H is required by some generic gnu sources stuck into
# the emacs source tree.
DOC = $(OBJDIR)/etc/DOC-X
-FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
+FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
+
+CHARPROP = $(SRC)/../lisp/international/charprop.el
+UNIDATA = $(SRC)/$(BLD)/unidata.txt
+UNIDATA_SRC = $(SRC)/../admin/unidata/UnicodeData.txt
+UNIDATA_GEN = $(SRC)/../admin/unidata/unidata-gen.elc
+UNIDATA_GEN_SRC = $(SRC)/../admin/unidata/unidata-gen.el
+UNIDATA_DEST = $(SRC)/../lisp/international
+RUNTEMACS = "$(SRC)/$(BLD)/temacs.exe"
#
# Split up the objects into two sets so that we don't run out of
# The dumped executable
#
emacs: stamp_BLD $(EMACS)
-$(EMACS): $(DOC) $(TEMACS)
+$(EMACS): $(DOC) $(TEMACS) $(CHARPROP)
"$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump
-"$(THISDIR)/$(BLD)/emacs.exe" -q -batch -f list-load-path-shadows
$(TEMACS): $(TLIB0) $(TLIB1) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) \
../nt/$(BLD)/addsection.exe
$(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
- "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 20
+ "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
echo $(OBJ0) > $(BLD)/buildobj.lst
echo $(OBJ1) >> $(BLD)/buildobj.lst
echo $(WIN32OBJ) >> $(BLD)/buildobj.lst
- $(DEL) $@
$(AR) $(AR_OUT)$@ $(ALL_DEPS)
+$(CHARPROP): $(UNIDATA) $(UNIDATA_GEN)
+ $(RUNTEMACS) -batch --load $(UNIDATA_GEN) -f unidata-gen-files $(UNIDATA)
+ $(CP) *.el ../lisp/international
+ $(RM) *.el
+
+$(UNIDATA): $(UNIDATA_SRC)
+ sed -e $(ARGQUOTE)s/\([^;]*\);\(.*\)/(#x\1 $(DQUOTE)\2$(DQUOTE))/$(ARGQUOTE) -e $(ARGQUOTE)s/;/$(DQUOTE) $(DQUOTE)/g$(ARGQUOTE) < $< > $@
+
+$(UNIDATA_GEN): $(UNIDATA_GEN_SRC)
+ $(RUNTEMACS) -batch -f batch-byte-compile $(UNIDATA_GEN_SRC)
+
#
# Assuming INSTALL_DIR is defined, build and install emacs in it.
#
### DEPENDENCIES ###
EMACS_ROOT = ..
-SRC = .
$(BLD)/abbrev.$(O) : \
$(SRC)/abbrev.c \