diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2006-04-24 02:28:12 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2006-04-24 02:28:12 +0000 |
commit | cf308c8cdbc3209f31d45f5ed28929f699d9837c (patch) | |
tree | 5d55fb305c117c7caf1001ac5e89e4c171c6cafa /Makefile | |
parent | aeb110d90df145ac99009c1a7b9e3077d6b457a6 (diff) |
Fixing some formatting issues, added a free_matches function to handle the
freeing of memory allocated in process_document, this function is now used in
the GrockHtml class to fix a memory leak.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -16,7 +16,8 @@ DOTSO = .so # Source files SOURCES = regex/regcomp.c regex/regerror.c regex/regexec.c regex/regfree.c \ - treexpr.c GrokHtml.c + treexpr.c +JNISOURCES = $(SOURCES) GrokHtml.c # libxml2 flags XMLINCL = $(shell xml2-config --cflags) @@ -30,11 +31,11 @@ JAVAINCL = -I/usr/include/sablevm # for freebsd using jdk15 from portage: # JAVAINCL = -I/usr/local/jdk1.5.0/include -I/usr/local/jdk1.5.0/include/freebsd -INCL = -I./regex $(XMLINCL) $(JAVAINCL) +INCL = -I./regex $(XMLINCL) LIBS = $(XMLLIBS) CFLAGS += -O2 -Wall -all: $(LIB)GrokHtml$(DOTSO) +all: $(LIB)GrokHtml$(DOTSO) $(LIB)treexpr$(DOTSO) GrokHtml.h: GrokHtml.class $(JAVAH) -classpath . -jni -o $@ GrokHtml @@ -45,7 +46,10 @@ GrokHtml.class: GrokHtml.java TestIt.class: TestIt.java $(JAVAC) $< -$(LIB)GrokHtml$(DOTSO): $(SOURCES) GrokHtml.h +$(LIB)GrokHtml$(DOTSO): $(JNISOURCES) GrokHtml.h + $(CC) $(LIBS) $(CFLAGS) $(INCL) $(JAVAINCL) -shared -o $@ $(JNISOURCES) + +$(LIB)treexpr$(DOTSO): $(SOURCES) $(CC) $(LIBS) $(CFLAGS) $(INCL) -shared -o $@ $(SOURCES) test: $(LIB)GrokHtml$(DOTSO) TestIt.class @@ -53,5 +57,6 @@ test: $(LIB)GrokHtml$(DOTSO) TestIt.class clean: $(RM) $(LIB)GrokHtml$(DOTSO) + $(RM) $(LIB)treexpr$(DOTSO) $(RM) GrokHtml.h $(RM) *.class |