<commit_before># Copyright (c) 2010 <NAME> <<EMAIL>>
# All rights reserved.
#
# See the file LICENSE included in this distribution for details.

all: Sqlite.class Sqlite3C.class libscalaqlite.dylib

clean:
	rm -f *.class Sqlite3C.h libscalaqlite.dylib

test: all
	scala test.scala

.PHONY: all, clean, test

libscalaqlite.dylib: Sqlite3C.cc Sqlite3C.h
	g++ -dynamiclib -o $@ \
		-I /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers \
		-L/opt/local/lib \
		$< -lsqlite3

Sqlite.class: Sqlite.scala Sqlite3C.class
	scalac $<

Sqlite3C.class: Sqlite3C.java
	javac $<<commit_msg>get makefile working on linux<commit_after># Copyright (c) 2010 <NAME> <<EMAIL>>
# All rights reserved.
#
# See the file LICENSE included in this distribution for details.

ifeq ($(shell uname),Darwin)
LIBEXT=dylib
else
LIBEXT=so
endif

all: SqliteDb.class Sqlite3C.class libscalaqlite.$(LIBEXT)

clean:
	rm -f *.class Sqlite3C.h libscalaqlite.$(LIBEXT)

test: all
	LD_LIBRARY_PATH=. scala test.scala

.PHONY: all, clean, test

libscalaqlite.so: Sqlite3C.cc Sqlite3C.h
	g++ -o $@ -shared -Wl,-soname,$@ \
		-I/usr/lib/jvm/java-1.5.0-sun-1.5.0.22/include \
		-I/usr/lib/jvm/java-1.5.0-sun-1.5.0.22/include/linux \
		$< -static -lc -lsqlite3

libscalaqlite.dylib: Sqlite3C.cc Sqlite3C.h
	g++ -dynamiclib -o $@ \
		-I /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers \
		-L/opt/local/lib \
		$< -lsqlite3

SqliteDb.class: Sqlite.scala Sqlite3C.class
	scalac $<

Sqlite3C.class: Sqlite3C.java
	javac $<
{'fraction_non_alphanumeric': 0.14210178453403832, 'fraction_numerical': 0.028420356906807668, 'mean_word_length': 3.73125, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '839590', 'n_tokens_mistral': 672, 'n_tokens_neox': 627, 'n_words': 132}