<commit_before># Makefile for the frege compiler distribution

#
# Make sure you have sensible values for JAVAC, YACC and JAVA
# The standard distribution needs a Java 1.7 JDK.
# Because people may need previous JDKs/JREs for different work,
# there are 2 mechanisms to get the right java:
#
#   - put the JDK7 in your PATH after other JDKs, and make java7 a symbolic link to
#     the JDK7 java binary. (On Windows, just copy java.exe to java7.exe)
#   - For UNIX users: make the following alias:
#         alias fmake='make JAVA="/path/to/jdk7/java" -f frege.mk '
#
# YACC should be a BSD compatible yacc. This can be obtained from the net at various places.
# Windows users look for pbyacc.exe, Ubuntu users use
#
#	sudo apt-get install byacc-j  # byacc and pbyacc should also work
#

.SUFFIXES: .class .fr

JAVAC = javac -source 1.7 -target 1.7 -encoding UTF-8
YACC = /Developer/usr/bin/yacc
# JAVA = java7 -XX:+TieredCompilation "-Dfrege.javac=javac -J-Xmx512m"
# JAVA = java7 -XX:+TieredCompilation -Dfrege.javac=internal
JAVA = java "-Dfrege.javac=internal -nowarn -source 1.7 -target 1.7"


DOC  = ../frege.github.com/doc
DOCF = doc/frege/compiler
DIR1 = build/afrege
PREL1  = $(DIR1)/prelude
COMPF1  = $(DIR1)/compiler
LIBF1   = $(DIR1)/lib
DATA1   = $(DIR1)/data
CONTROL1 = $(DIR1)/control
LIBJ1   = $(DIR1)/j
TOOLSF1 = $(DIR1)/tools
DIR2 = build/bfrege
PREL2   = $(DIR2)/prelude
COMPF2  = $(DIR2)/compiler
LIBF2   = $(DIR2)/lib
DATA2   = $(DIR2)/data
LIBJ2   = $(DIR2)/j
TOOLSF2 = $(DIR2)/tools
DIR  = build/frege
PREL    = $(DIR)/prelude
COMPF   = $(DIR)/compiler
LIBF    = $(DIR)/lib
DATA   = $(DIR)/data
LIBJ    = $(DIR)/j
TOOLSF  = $(DIR)/tools
COMPS   = frege/compiler


FREGE    = $(JAVA) -Xss8m -Xmx1g -cp build

#	compile using the fregec.jar in the working directory
FREGECJ  = $(FREGE)  -jar fregec.jar  -d build -fp build -nocp -hints

#	compile compiler1 with fregec.jar, uses prelude sources from shadow/
FREGEC0  = $(FREGECJ) -prefix a -sp shadow;.

#	compile compiler2 with compiler1
FREGEC1  = $(FREGE) afrege.compiler.Main -d build -hints -inline -prefix b

#	compile final compiler with compiler2
FREGEC2  = $(FREGE) bfrege.compiler.Main -d build -hints -O

#	final compiler
FREGECC  = $(FREGE) frege.compiler.Main  -d build -hints -O

#	shadow Prelude files in the order they must be compiled
SPRELUDE  =  shadow/frege/prelude/PreludeBase.fr \
		shadow/frege/control/Semigroupoid.fr shadow/frege/control/Category.fr \
		shadow/frege/prelude/PreludeList.fr shadow/frege/prelude/PreludeMonad.fr \<commit_msg>Java path separator is :<commit_after># Makefile for the frege compiler distribution

#
# Make sure you have sensible values for JAVAC, YACC and JAVA
# The standard distribution needs a Java 1.7 JDK.
# Because people may need previous JDKs/JREs for different work,
# there are 2 mechanisms to get the right java:
#
#   - put the JDK7 in your PATH after other JDKs, and make java7 a symbolic link to
#     the JDK7 java binary. (On Windows, just copy java.exe to java7.exe)
#   - For UNIX users: make the following alias:
#         alias fmake='make JAVA="/path/to/jdk7/java" -f frege.mk '
#
# YACC should be a BSD compatible yacc. This can be obtained from the net at various places.
# Windows users look for pbyacc.exe, Ubuntu users use
#
#	sudo apt-get install byacc-j  # byacc and pbyacc should also work
#

.SUFFIXES: .class .fr

JAVAC = javac -source 1.7 -target 1.7 -encoding UTF-8
YACC = /Developer/usr/bin/yacc
# JAVA = java7 -XX:+TieredCompilation "-Dfrege.javac=javac -J-Xmx512m"
# JAVA = java7 -XX:+TieredCompilation -Dfrege.javac=internal
JAVA = java "-Dfrege.javac=internal -nowarn -source 1.7 -target 1.7"


DOC  = ../frege.github.com/doc
DOCF = doc/frege/compiler
DIR1 = build/afrege
PREL1  = $(DIR1)/prelude
COMPF1  = $(DIR1)/compiler
LIBF1   = $(DIR1)/lib
DATA1   = $(DIR1)/data
CONTROL1 = $(DIR1)/control
LIBJ1   = $(DIR1)/j
TOOLSF1 = $(DIR1)/tools
DIR2 = build/bfrege
PREL2   = $(DIR2)/prelude
COMPF2  = $(DIR2)/compiler
LIBF2   = $(DIR2)/lib
DATA2   = $(DIR2)/data
LIBJ2   = $(DIR2)/j
TOOLSF2 = $(DIR2)/tools
DIR  = build/frege
PREL    = $(DIR)/prelude
COMPF   = $(DIR)/compiler
LIBF    = $(DIR)/lib
DATA   = $(DIR)/data
LIBJ    = $(DIR)/j
TOOLSF  = $(DIR)/tools
COMPS   = frege/compiler


FREGE    = $(JAVA) -Xss8m -Xmx1g -cp build

#	compile using the fregec.jar in the working directory
FREGECJ  = $(FREGE)  -jar fregec.jar  -d build -fp build -nocp -hints

#	compile compiler1 with fregec.jar, uses prelude sources from shadow/
FREGEC0  = $(FREGECJ) -prefix a -sp shadow:.

#	compile compiler2 with compiler1
FREGEC1  = $(FREGE) afrege.compiler.Main -d build -hints -inline -prefix b

#	compile final compiler with compiler2
FREGEC2  = $(FREGE) bfrege.compiler.Main -d build -hints -O

#	final compiler
FREGECC  = $(FREGE) frege.compiler.Main  -d build -hints -O

#	shadow Prelude files in the order they must be compiled
SPRELUDE  =  shadow/frege/prelude/PreludeBase.fr \
		shadow/frege/control/Semigroupoid.fr shadow/frege/control/Category.fr \
		shadow/frege/prelude/PreludeList.fr shadow/frege/prelude/PreludeMonad.fr \
{'fraction_non_alphanumeric': 0.11941766673224474, 'fraction_numerical': 0.023214637025378713, 'mean_word_length': 3.455740578439965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1801811', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1918, 'n_words': 578}