mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
update from Tobias Peters for 2.4.5 generate line nubers in elements
* win32/Makefile.mingw: update from Tobias Peters for 2.4.5 * DOCBparser.c: generate line nubers in elements Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Oct 11 08:44:01 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* win32/Makefile.mingw: update from Tobias Peters for 2.4.5
|
||||||
|
* DOCBparser.c: generate line nubers in elements
|
||||||
|
|
||||||
Wed Oct 10 11:35:45 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
Wed Oct 10 11:35:45 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* configure.in: preparing 2.4.6 release
|
* configure.in: preparing 2.4.6 release
|
||||||
|
@ -5029,6 +5029,7 @@ docbInitParserCtxt(docbParserCtxtPtr ctxt)
|
|||||||
ctxt->userData = ctxt;
|
ctxt->userData = ctxt;
|
||||||
ctxt->myDoc = NULL;
|
ctxt->myDoc = NULL;
|
||||||
ctxt->wellFormed = 1;
|
ctxt->wellFormed = 1;
|
||||||
|
ctxt->linenumbers = 1;
|
||||||
ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
|
ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
|
||||||
ctxt->html = 2;
|
ctxt->html = 2;
|
||||||
ctxt->record_info = 0;
|
ctxt->record_info = 0;
|
||||||
|
@ -2,40 +2,28 @@
|
|||||||
# DLL-import library, and the test executables using the "mingw" gcc
|
# DLL-import library, and the test executables using the "mingw" gcc
|
||||||
# compiler environment. This Makefile is based on Alfred Reibenschuh's
|
# compiler environment. This Makefile is based on Alfred Reibenschuh's
|
||||||
# version for 2.1.1, and was modified by Wayne Davison.
|
# version for 2.1.1, and was modified by Wayne Davison.
|
||||||
|
# Modified 2001/10/10 Tobias Peters for libxml2-2.4.5
|
||||||
|
|
||||||
# Set "PREFIX" to the root of the mingw installed files.
|
# Set "PREFIX" to the root of the mingw installed files.
|
||||||
|
|
||||||
PREFIX = /mingw
|
PREFIX = /mingw
|
||||||
|
|
||||||
CC=gcc
|
CC = gcc
|
||||||
CFLAGS=-O -Iinclude -I$(PREFIX)/include -D_WINSOCKAPI_ -fnative-struct
|
CFLAGS = -Iinclude -fnative-struct -D_WINSOCKAPI_ \
|
||||||
LDFLAGS=-L. -L$(PREFIX)/lib
|
-Dsnprintf=_snprintf -Dvsnprintf=_vsnprintf
|
||||||
LIBS=-lwsock32 -lz
|
LDFLAGS = -L. -L$(PREFIX)/lib
|
||||||
|
LIBS = -lwsock32 -lz
|
||||||
|
|
||||||
AR=ar rc
|
AR=ar rc
|
||||||
DLLTOOL=dlltool
|
DLLTOOL=dlltool
|
||||||
DLLWRAP=dllwrap
|
DLLWRAP=dllwrap
|
||||||
|
|
||||||
LIBSRCS=HTMLparser.c \
|
|
||||||
HTMLtree.c \
|
LIBSRCS=SAX.c entities.c encoding.c error.c parserInternals.c \
|
||||||
SAX.c \
|
parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
|
||||||
debugXML.c \
|
valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
|
||||||
encoding.c \
|
xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
|
||||||
entities.c \
|
catalog.c strio.c
|
||||||
error.c \
|
|
||||||
nanoftp.c \
|
|
||||||
nanohttp.c \
|
|
||||||
parser.c \
|
|
||||||
parserInternals.c \
|
|
||||||
tree.c \
|
|
||||||
valid.c \
|
|
||||||
xlink.c \
|
|
||||||
xmlIO.c \
|
|
||||||
xmlmemory.c \
|
|
||||||
xpath.c \
|
|
||||||
xpointer.c \
|
|
||||||
hash.c \
|
|
||||||
uri.c
|
|
||||||
|
|
||||||
LIBOBJS=$(LIBSRCS:.c=.o)
|
LIBOBJS=$(LIBSRCS:.c=.o)
|
||||||
|
|
||||||
@ -55,6 +43,8 @@ EXE3=$(OBJ3:.o=.exe)
|
|||||||
IMPBASE=$(LIBBASE)_dll
|
IMPBASE=$(LIBBASE)_dll
|
||||||
IMP=lib$(IMPBASE).a
|
IMP=lib$(IMPBASE).a
|
||||||
|
|
||||||
|
DLLFLAGS = --shared -o $(DLL) -Wl,--out-implib,$(IMP)
|
||||||
|
|
||||||
DEF=$(DLL:.dll=.def)
|
DEF=$(DLL:.dll=.def)
|
||||||
|
|
||||||
all: $(LIB) $(DLL) $(DEF) $(IMP) $(EXE1) $(EXE2) $(EXE3)
|
all: $(LIB) $(DLL) $(DEF) $(IMP) $(EXE1) $(EXE2) $(EXE3)
|
||||||
@ -63,8 +53,9 @@ dll: $(DLL)
|
|||||||
|
|
||||||
lib: $(LIB)
|
lib: $(LIB)
|
||||||
|
|
||||||
$(DLL): $(LIB) $(DEF) $(IMP)
|
$(DLL) $(IMP): $(LIBOBJS)
|
||||||
$(DLLWRAP) --def $(DEF) --dllname $@ --output-lib $@ $(LIB) $(LDFLAGS) $(LIBS) -mwindows
|
$(CC) $(DLLFLAGS) $(LIBOBJS) $(LDFLAGS) $(LIBS)
|
||||||
|
# -mwindows
|
||||||
|
|
||||||
$(LIB): $(LIBOBJS)
|
$(LIB): $(LIBOBJS)
|
||||||
$(AR) $@ $^
|
$(AR) $@ $^
|
||||||
@ -72,23 +63,29 @@ $(LIB): $(LIBOBJS)
|
|||||||
$(DEF): $(LIBOBJS)
|
$(DEF): $(LIBOBJS)
|
||||||
$(DLLTOOL) --kill-at --export-all -D $(DLL) --output-def $@ $^
|
$(DLLTOOL) --kill-at --export-all -D $(DLL) --output-def $@ $^
|
||||||
|
|
||||||
$(IMP): $(DEF)
|
$(EXE1): $(OBJ1) $(DLL)
|
||||||
$(DLLTOOL) -d $< -l $@ -D $(DLL)
|
|
||||||
|
|
||||||
$(EXE1): $(OBJ1) $(LIBOBJS) $(DLL)
|
|
||||||
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(IMPBASE) $(LIBS)
|
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(IMPBASE) $(LIBS)
|
||||||
strip $@
|
strip $@
|
||||||
|
|
||||||
$(EXE2): $(OBJ2) $(LIBOBJS) $(DLL)
|
$(EXE2): $(OBJ2) $(DLL)
|
||||||
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(IMPBASE) $(LIBS)
|
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(IMPBASE) $(LIBS)
|
||||||
strip $@
|
strip $@
|
||||||
|
|
||||||
$(EXE3): $(OBJ3) $(LIBOBJS) $(LIB)
|
$(EXE3): $(OBJ3) $(LIB)
|
||||||
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(LIBBASE) $(LIBS)
|
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) -l$(LIBBASE) $(LIBS)
|
||||||
strip $@
|
strip $@
|
||||||
|
|
||||||
|
$(OBJ1): $(OBJ1:.o=.c)
|
||||||
|
$(CC) $(CFLAGS) -DLIBXML_DLL_IMPORT=__declspec'(dllimport)' -c $< -o $@
|
||||||
|
|
||||||
|
$(OBJ2): $(OBJ2:.o=.c)
|
||||||
|
$(CC) $(CFLAGS) -DLIBXML_DLL_IMPORT=__declspec'(dllimport)' -c $< -o $@
|
||||||
|
|
||||||
|
$(OBJ3): $(OBJ3:.o=.c)
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -DIN_LIBXML -c $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.o *.a *.dll *.def
|
rm *.o *.a *.dll *.def
|
||||||
|
Reference in New Issue
Block a user