]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/makefile.g95
removed libxpm dependencies from makefiles
[wxWidgets.git] / contrib / src / xml / makefile.g95
index 99e1ed3d352c11888992561373a813a42b934398..44a0025a336c6042ca299536f141906e303d860d 100644 (file)
@@ -9,10 +9,20 @@
 
 WXDIR = ../../..
 
 
 WXDIR = ../../..
 
-EXTRACPPFLAGS=/Id:/libxml/libxml2-2.1.1
+expat_dir = $(WXDIR)/contrib/src/xml/expat
+XMLPARSEDIR = $(expat_dir)/xmlparse
+XMLTOKDIR=$(expat_dir)/xmltok
+
+EXPAT_DEFS=-I$(expat_dir)/xmlparse -I$(expat_dir)/xmltok
+
+EXTRACPPFLAGS=$(EXPAT_DEFS)
+XMLPARSEDIR_OBJECTS=xmlparse.o
+XMLTOKDIR_OBJECTS=xmltok.o xmlrole.o
+
 LIBTARGET=$(WXDIR)/lib/libwxxml.a
 
 LIBTARGET=$(WXDIR)/lib/libwxxml.a
 
-OBJECTS=xml.o xmlbin.o xmlbinz.o xmlpars.o xmlres.o xmlrsall.o \
+OBJECTS= $(XMLPARSEDIR_OBJECTS) $(XMLTOKDIR_OBJECTS) \
+        xml.o xmlbin.o xmlbinz.o xmlexpat.o xmlwrite.o xmlres.o xmlrsall.o \
         xh_bttn.o xh_chckb.o xh_chckl.o xh_choic.o xh_combo.o xh_dlg.o \
         xh_gauge.o xh_html.o xh_menu.o xh_notbk.o xh_panel.o xh_radbt.o \
         xh_radbx.o xh_sizer.o xh_slidr.o xh_spin.o xh_stbmp.o xh_sttxt.o \
         xh_bttn.o xh_chckb.o xh_chckl.o xh_choic.o xh_combo.o xh_dlg.o \
         xh_gauge.o xh_html.o xh_menu.o xh_notbk.o xh_panel.o xh_radbt.o \
         xh_radbx.o xh_sizer.o xh_slidr.o xh_spin.o xh_stbmp.o xh_sttxt.o \
@@ -22,3 +32,9 @@ OBJECTS=xml.o xmlbin.o xmlbinz.o xmlpars.o xmlres.o xmlrsall.o \
 
 include $(WXDIR)/src/makelib.g95
 
 
 include $(WXDIR)/src/makelib.g95
 
+$(XMLPARSEDIR_OBJECTS):
+       $(CC) -g $(EXPAT_DEFS) -c -o $@ $(XMLPARSEDIR)/$(patsubst %.o,%.c, $@)
+
+$(XMLTOKDIR_OBJECTS):
+       $(CC) -g $(EXPAT_DEFS) -c -o $@ $(XMLTOKDIR)/$(patsubst %.o,%.c, $@)