mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
fixed for mingw
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Thu Aug 28 12:23:51 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
|
||||||
|
|
||||||
|
* win32/Makefile.* win32/configure.js: fixed for mingw
|
||||||
|
|
||||||
Thu Aug 28 10:01:44 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
Thu Aug 28 10:01:44 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* globals.c threads.c: fixing bug #120870 try to avoid problem
|
* globals.c threads.c: fixing bug #120870 try to avoid problem
|
||||||
|
@@ -139,6 +139,7 @@ endif
|
|||||||
XML_OBJS = $(XML_INTDIR)/c14n.o\
|
XML_OBJS = $(XML_INTDIR)/c14n.o\
|
||||||
$(XML_INTDIR)/catalog.o\
|
$(XML_INTDIR)/catalog.o\
|
||||||
$(XML_INTDIR)/debugXML.o\
|
$(XML_INTDIR)/debugXML.o\
|
||||||
|
$(XML_INTDIR)/dict.o\
|
||||||
$(XML_INTDIR)/DOCBparser.o\
|
$(XML_INTDIR)/DOCBparser.o\
|
||||||
$(XML_INTDIR)/encoding.o\
|
$(XML_INTDIR)/encoding.o\
|
||||||
$(XML_INTDIR)/entities.o\
|
$(XML_INTDIR)/entities.o\
|
||||||
@@ -154,6 +155,7 @@ XML_OBJS = $(XML_INTDIR)/c14n.o\
|
|||||||
$(XML_INTDIR)/parserInternals.o\
|
$(XML_INTDIR)/parserInternals.o\
|
||||||
$(XML_INTDIR)/relaxng.o\
|
$(XML_INTDIR)/relaxng.o\
|
||||||
$(XML_INTDIR)/SAX.o\
|
$(XML_INTDIR)/SAX.o\
|
||||||
|
$(XML_INTDIR)/SAX2.o\
|
||||||
$(XML_INTDIR)/threads.o\
|
$(XML_INTDIR)/threads.o\
|
||||||
$(XML_INTDIR)/tree.o\
|
$(XML_INTDIR)/tree.o\
|
||||||
$(XML_INTDIR)/uri.o\
|
$(XML_INTDIR)/uri.o\
|
||||||
@@ -176,6 +178,7 @@ XML_SRCS = $(subst .o,.c,$(subst $(XML_INTDIR)/,$(XML_SRCDIR)/,$(XML_OBJS)))
|
|||||||
XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\
|
XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\
|
||||||
$(XML_INTDIR_A)/catalog.o\
|
$(XML_INTDIR_A)/catalog.o\
|
||||||
$(XML_INTDIR_A)/debugXML.o\
|
$(XML_INTDIR_A)/debugXML.o\
|
||||||
|
$(XML_INTDIR_A)/dict.o\
|
||||||
$(XML_INTDIR_A)/DOCBparser.o\
|
$(XML_INTDIR_A)/DOCBparser.o\
|
||||||
$(XML_INTDIR_A)/encoding.o\
|
$(XML_INTDIR_A)/encoding.o\
|
||||||
$(XML_INTDIR_A)/entities.o\
|
$(XML_INTDIR_A)/entities.o\
|
||||||
@@ -191,6 +194,7 @@ XML_OBJS_A = $(XML_INTDIR_A)/c14n.o\
|
|||||||
$(XML_INTDIR_A)/parserInternals.o\
|
$(XML_INTDIR_A)/parserInternals.o\
|
||||||
$(XML_INTDIR_A)/relaxng.o\
|
$(XML_INTDIR_A)/relaxng.o\
|
||||||
$(XML_INTDIR_A)/SAX.o\
|
$(XML_INTDIR_A)/SAX.o\
|
||||||
|
$(XML_INTDIR_A)/SAX2.o\
|
||||||
$(XML_INTDIR_A)/threads.o\
|
$(XML_INTDIR_A)/threads.o\
|
||||||
$(XML_INTDIR_A)/tree.o\
|
$(XML_INTDIR_A)/tree.o\
|
||||||
$(XML_INTDIR_A)/uri.o\
|
$(XML_INTDIR_A)/uri.o\
|
||||||
@@ -245,27 +249,27 @@ libxmla : $(BINDIR)/$(XML_A)
|
|||||||
utils : $(UTILS)
|
utils : $(UTILS)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR)
|
cmd.exe /C if exist $(XML_INTDIR) rmdir /S /Q $(XML_INTDIR)
|
||||||
if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A)
|
cmd.exe /C if exist $(XML_INTDIR_A) rmdir /S /Q $(XML_INTDIR_A)
|
||||||
if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR)
|
cmd.exe /C if exist $(UTILS_INTDIR) rmdir /S /Q $(UTILS_INTDIR)
|
||||||
if exist $(BINDIR) rmdir /S /Q $(BINDIR)
|
cmd.exe /C if exist $(BINDIR) rmdir /S /Q $(BINDIR)
|
||||||
if exist depends.mingw del depends.mingw
|
cmd.exe /C if exist depends.mingw del depends.mingw
|
||||||
|
|
||||||
distclean : clean
|
distclean : clean
|
||||||
if exist config.* del config.*
|
cmd.exe /C if exist config.* del config.*
|
||||||
if exist Makefile del Makefile
|
cmd.exe /C if exist Makefile del Makefile
|
||||||
|
|
||||||
rebuild : clean all
|
rebuild : clean all
|
||||||
|
|
||||||
install : all
|
install : all
|
||||||
if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml
|
cmd.exe /C if not exist $(INCPREFIX)\libxml mkdir $(INCPREFIX)\libxml
|
||||||
if not exist $(BINPREFIX) mkdir $(BINPREFIX)
|
cmd.exe /C if not exist $(BINPREFIX) mkdir $(BINPREFIX)
|
||||||
if not exist $(LIBPREFIX) mkdir $(LIBPREFIX)
|
cmd.exe /C if not exist $(LIBPREFIX) mkdir $(LIBPREFIX)
|
||||||
copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml
|
cmd.exe /C copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml
|
||||||
copy $(BINDIR)\$(XML_SO) $(SOPREFIX)
|
cmd.exe /C copy $(BINDIR)\$(XML_SO) $(SOPREFIX)
|
||||||
copy $(BINDIR)\$(XML_A) $(LIBPREFIX)
|
cmd.exe /C copy $(BINDIR)\$(XML_A) $(LIBPREFIX)
|
||||||
copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX)
|
cmd.exe /C copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX)
|
||||||
copy $(BINDIR)\*.exe $(BINPREFIX)
|
cmd.exe /C copy $(BINDIR)\*.exe $(BINPREFIX)
|
||||||
|
|
||||||
# This is a target for me, to make a binary distribution. Not for the public use,
|
# This is a target for me, to make a binary distribution. Not for the public use,
|
||||||
# keep your hands off :-)
|
# keep your hands off :-)
|
||||||
@@ -283,16 +287,16 @@ dep :
|
|||||||
|
|
||||||
# Makes the output directory.
|
# Makes the output directory.
|
||||||
$(BINDIR) :
|
$(BINDIR) :
|
||||||
if not exist $(BINDIR) mkdir $(BINDIR)
|
cmd.exe /C if not exist $(BINDIR) mkdir $(BINDIR)
|
||||||
|
|
||||||
|
|
||||||
# Makes the libxml intermediate directory.
|
# Makes the libxml intermediate directory.
|
||||||
$(XML_INTDIR) :
|
$(XML_INTDIR) :
|
||||||
if not exist $(XML_INTDIR) mkdir $(XML_INTDIR)
|
cmd.exe /C if not exist $(XML_INTDIR) mkdir $(XML_INTDIR)
|
||||||
|
|
||||||
# Makes the static libxml intermediate directory.
|
# Makes the static libxml intermediate directory.
|
||||||
$(XML_INTDIR_A) :
|
$(XML_INTDIR_A) :
|
||||||
if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A)
|
cmd.exe /C if not exist $(XML_INTDIR_A) mkdir $(XML_INTDIR_A)
|
||||||
|
|
||||||
# An implicit rule for libxml compilation.
|
# An implicit rule for libxml compilation.
|
||||||
$(XML_INTDIR)/%.o : $(XML_SRCDIR)/%.c
|
$(XML_INTDIR)/%.o : $(XML_SRCDIR)/%.c
|
||||||
@@ -321,7 +325,7 @@ $(BINDIR)/$(XML_A) : $(BINDIR) $(XML_OBJS_A)
|
|||||||
|
|
||||||
# Makes the utils intermediate directory.
|
# Makes the utils intermediate directory.
|
||||||
$(UTILS_INTDIR) :
|
$(UTILS_INTDIR) :
|
||||||
if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR)
|
cmd.exe /C if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR)
|
||||||
|
|
||||||
# An implicit rule for xmllint and friends.
|
# An implicit rule for xmllint and friends.
|
||||||
ifeq ($(STATIC),1)
|
ifeq ($(STATIC),1)
|
||||||
|
@@ -77,7 +77,7 @@ CPPFLAGS = $(CPPFLAGS) /D "_REENTRANT"
|
|||||||
|
|
||||||
# The compiler and its options.
|
# The compiler and its options.
|
||||||
CC = cl.exe
|
CC = cl.exe
|
||||||
CFLAGS = /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W3 /MD
|
CFLAGS = /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W1 /MD
|
||||||
CFLAGS = $(CFLAGS) /I$(XML_SRCDIR) /I$(XML_SRCDIR)\include /I$(INCPREFIX)
|
CFLAGS = $(CFLAGS) /I$(XML_SRCDIR) /I$(XML_SRCDIR)\include /I$(INCPREFIX)
|
||||||
!if "$(WITH_THREADS)" != "no"
|
!if "$(WITH_THREADS)" != "no"
|
||||||
CFLAGS = $(CFLAGS) /D "_REENTRANT"
|
CFLAGS = $(CFLAGS) /D "_REENTRANT"
|
||||||
|
@@ -47,14 +47,15 @@ var withSchemas = true;
|
|||||||
var withRegExps = true;
|
var withRegExps = true;
|
||||||
var withPython = false;
|
var withPython = false;
|
||||||
/* Win32 build options. */
|
/* Win32 build options. */
|
||||||
|
var dirSep = "/";
|
||||||
var compiler = "msvc";
|
var compiler = "msvc";
|
||||||
var buildDebug = 0;
|
var buildDebug = 0;
|
||||||
var buildStatic = 0;
|
var buildStatic = 0;
|
||||||
var buildPrefix = ".";
|
var buildPrefix = ".";
|
||||||
var buildBinPrefix = "$(PREFIX)\\bin";
|
var buildBinPrefix = "$(PREFIX)" + dirSep + "bin";
|
||||||
var buildIncPrefix = "$(PREFIX)\\include";
|
var buildIncPrefix = "$(PREFIX)" + dirSep + "include";
|
||||||
var buildLibPrefix = "$(PREFIX)\\lib";
|
var buildLibPrefix = "$(PREFIX)" + dirSep + "lib";
|
||||||
var buildSoPrefix = "$(PREFIX)\\lib";
|
var buildSoPrefix = "$(PREFIX)" + dirSep + "lib";
|
||||||
var buildInclude = ".";
|
var buildInclude = ".";
|
||||||
var buildLib = ".";
|
var buildLib = ".";
|
||||||
/* Local stuff */
|
/* Local stuff */
|
||||||
@@ -479,6 +480,12 @@ else if (compiler == "bcb")
|
|||||||
makefile = ".\\Makefile.bcb";
|
makefile = ".\\Makefile.bcb";
|
||||||
fso.CopyFile(makefile, ".\\Makefile", true);
|
fso.CopyFile(makefile, ".\\Makefile", true);
|
||||||
WScript.Echo("Created Makefile.");
|
WScript.Echo("Created Makefile.");
|
||||||
|
// Create the config.h.
|
||||||
|
var confighsrc = "..\\include\\win32config.h";
|
||||||
|
var configh = "..\\config.h";
|
||||||
|
fso.CopyFile(confighsrc, configh, true);
|
||||||
|
WScript.Echo("Created config.h.");
|
||||||
|
|
||||||
|
|
||||||
// Display the final configuration.
|
// Display the final configuration.
|
||||||
var txtOut = "\nXML processor configuration\n";
|
var txtOut = "\nXML processor configuration\n";
|
||||||
|
Reference in New Issue
Block a user