updated VC makefiles to compile expat

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-05 18:06:16 +00:00
parent daa084c239
commit a2cf862156

View File

@ -19,28 +19,17 @@ THISDIR = $(WXDIR)\contrib\src\xml
DOCDIR=$(WXDIR)\contrib\docs DOCDIR=$(WXDIR)\contrib\docs
LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml
# Do not specify the 'libxml' directory on NOPCH=1
# this -I line, as the #includes use
# <libxml/xxxx.h>. If your libxml is installed
# in "d:\libxml\libxml2-2.1.1\libxml" you would use:
# wxLIBXMLDIR=-Id:\libxml\libxml2-2.1.1
wxLIBXMLDIR=
!if "$(wxLIBXMLDIR)" == "" EXPAT_DIR=$(THISDIR)\expat
!message E1=$(EXPAT_DIR)\xmlparse
!message SETUP REQUIRED E2=$(EXPAT_DIR)\xmltok
!message
!message You must set the wxLIBXMLDIR variable in makefile.vc before compiling EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok
!message EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj
!message If you do not have the libxml library, you will need to obtain & install
!message it before compiling the wxXML code. You can obtain libxml from:
!message http://www.xmlsoft.org
!message
!error
!endif
# Set this to where your libxml directory is # Set this to where your libxml directory is
EXTRAFLAGS=$(wxLIBXMLDIR) EXTRAFLAGS=$(EXPAT_INCS)
# Unfortunately we need this _before_ we include makelib.vc # Unfortunately we need this _before_ we include makelib.vc
!if "$(FINAL)" == "1" !if "$(FINAL)" == "1"
@ -53,17 +42,32 @@ LIBEXT=d
LIBTARGET=$(WXDIR)\lib\wxxml$(LIBEXT).lib LIBTARGET=$(WXDIR)\lib\wxxml$(LIBEXT).lib
EXTRATARGETS=$(D) EXTRATARGETS=$(D)
OBJECTS=$(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlpars.obj $(D)\xmlres.obj $(D)\xmlrsall.obj \ OBJECTS=$(EXPAT_OBJS) \
$(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \ $(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlres.obj \
$(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \ $(D)\xmlrsall.obj $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj \
$(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \ $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
$(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj \
$(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
$(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj \
$(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
$(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \ $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
$(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \ $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
$(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \ $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
$(D)\xh_unkwn.obj $(D)\xh_unkwn.obj $(D)\xmlwrite.obj $(D)\xmlexpat.obj
!include $(WXDIR)\src\makelib.vc !include $(WXDIR)\src\makelib.vc
{$(E1)}.c{$(D)}.obj:
$(cc) @<<
$(CPPFLAGS) /c /Fo$@ /Tc $<
<<
{$(E2)}.c{$(D)}.obj:
$(cc) @<<
$(CPPFLAGS) /c /Fo$@ /Tc $<
<<
DOCSOURCES=$(LOCALDOCDIR)\xml.tex \ DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
$(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\ $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
$(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\ $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\