Makefile.am patch for libxmlj
David Neary <[email protected]>
| Newsgroups | gmane.comp.java.classpath.extensions.xml |
|---|---|
| Message-ID | <D0511E8CBAEBD611A92600B0D0791811381A7B@APOLLO> |
Hi all, I got sidetracked from this for a couple of days, but here's the patch I promised. This should run through clean. A few notes on the changes: 1) The dependencies for JARFILE have changed to just 1 of the classes. Since all of the classes are recompiled at the same time, this should be OK. The only danger, I guess, is that another of the classes is out of date, and the class that's a dependency is up to date. A couple of tests seemed to verify that this doesn't pose a problem, at least with gnu make. 2) The javac line has changed to just $JAVAC $JAVACFLAGS path/*.java. At least my jdk complained about duplicate class names before. 3) The jarfile takes all the .class files, not just the ones in the dependency list. Before, it was missing the anonymous inner classes in TransformerFactoryImpl. I'm hoping to plug some of the leaks which are currently preventing me from using this on Win32 in the next couple of days - hopefully valgrind and efence will help locate them. Anyone have any tips on debugging shared libraries that get loaded by a JVM? Also, I haven't looked at the problems with make dist yet. I may do this in the future, but since I don't immediately need it, I may not get around to it :) Ok - I have also written a very dumb implementation of LinkedHashMap so that I could compile the java with a jdk 1.3.1 - I'll attach that here too. Improvements are happily accepted for that :) Thanks for the code, by the way. Cheers, Dave. -- David Neary Phenix Engineering 110 ave Jean Jaures, 69007 Lyon _______________________________________________ Classpathx-xml mailing list [email protected] http://mail.gnu.org/mailman/listinfo/classpathx-xml
LinkedHashMap.java
(application/octet-stream, 1.6 KB) - not displayed
am.patch
(application/octet-stream, 1.7 KB)
? .deps
? .libs
? Makefile
? Makefile.in
? aclocal.m4
? am.patch
? autom4te-2.53.cache
? config.log
? config.status
? configure
? gnu
? gnu_xml_libxmlj_transform_JavaContext.h
? gnu_xml_libxmlj_transform_LibxmlDocument.h
? gnu_xml_libxmlj_transform_LibxsltStylesheet.h
? gnu_xml_libxmlj_transform_TransformerFactoryImpl.h
? gnujaxp.jar
? javax_xml_transform_OutputKeys.h
? libtool
? libxmlj-0.1.1.tar.gz
? libxmlj.jar
? libxmlj.la
? libxmlj_la-libxsltj.lo
? libxmlj_la-xmlj_error.lo
? libxmlj_la-xmlj_io.lo
Index: Makefile.am
===================================================================
RCS file: /cvsroot/classpathx/libxmlj/Makefile.am,v
retrieving revision 1.3
diff -r1.3 Makefile.am
61,62c61
< @srcdir@/src/gnu/xml/libxmlj/transform/*.java \
< @srcdir@/src/gnu/xml/libxmlj/transform/LibxsltStylesheet.java
---
> @srcdir@/src/gnu/xml/libxmlj/transform/*.java
66,77c65,66
< ${JARFILE}: \
< gnu/xml/libxmlj/transform/TransformerFactoryImpl.class \
< gnu/xml/libxmlj/transform/TransformerImpl.class \
< gnu/xml/libxmlj/transform/DefaultErrorListenerImpl.class \
< gnu/xml/libxmlj/transform/DefaultURIResolverImpl.class \
< gnu/xml/libxmlj/transform/JavaContext.class \
< gnu/xml/libxmlj/transform/IOToolkit.class \
< gnu/xml/libxmlj/transform/SourceLocatorImpl.class \
< gnu/xml/libxmlj/transform/TemplatesImpl.class \
< gnu/xml/libxmlj/transform/SourceWrapper.class \
< gnu/xml/libxmlj/transform/LibxsltStylesheet.class
< @JAR@ cf ${JARFILE} $^
---
> ${JARFILE}: gnu/xml/libxmlj/transform/LibxsltStylesheet.class
> @JAR@ cf ${JARFILE} gnu/xml/libxmlj/transform/*.class
101c90
< cp $(srcdir)/testdocs/* $(distdir)/testdocs
---
> cp -r $(srcdir)/testdocs/* $(distdir)/testdocs