<commit_before>TOP=../..
include $(TOP)/mk/boilerplate.mk

ALL_DIRS = \
	Data \
	Compat \
	Distribution \
	Distribution/Compat \
	System \
	System/Directory \
	cbits

LIBRARY = libghccompat.a

# Just to silence warnings
MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)

# Needed so that the libraries can #include relative to this directory.
SRC_HC_OPTS += -I.

UseGhcForCc = YES

# This library is linked to the compiler, at least in stage1, so we
# better make sure it is built the same "way".
#
# BUT, if GhcHcOpts includes -DDEBUG we *don't* want to compile
# lib/compat with -DDEBUG, because the preprocessor symbols used
# by the compiler may be understood differently by library code.
# In this particular case, it turned out that -DDEBUG made Cabal 
# import HUnit, which might not be installed for the compiler we are
# compiling with (e.g. 6.2.1). Hence the filter-out.
SRC_HC_OPTS += $(filter-out -D%, $(GhcHcOpts)) 

ifeq "$(ghc_ge_603)" "YES"
# These modules are all provided in GHC 6.3+
EXCLUDED_SRCS += \
	System/Directory/Internals.hs \
	Distribution/Compat/ReadP.hs \
	Distribution/Extension.hs \
	Distribution/GetOpt.hs \
	Distribution/InstalledPackageInfo.hs \
	Distribution/License.hs \
	Distribution/Package.hs \
	Distribution/ParseUtils.hs \<commit_msg>[project @ 2005-02-10 13:38:50 by simonmar] NO_INSTALL_LIBRARY=YES<commit_after>TOP=../..
include $(TOP)/mk/boilerplate.mk

ALL_DIRS = \
	Data \
	Compat \
	Distribution \
	Distribution/Compat \
	System \
	System/Directory \
	cbits

LIBRARY = libghccompat.a

# We don't want this installed
NO_INSTALL_LIBRARY = YES

# Just to silence warnings
MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)

# Needed so that the libraries can #include relative to this directory.
SRC_HC_OPTS += -I.

UseGhcForCc = YES

# This library is linked to the compiler, at least in stage1, so we
# better make sure it is built the same "way".
#
# BUT, if GhcHcOpts includes -DDEBUG we *don't* want to compile
# lib/compat with -DDEBUG, because the preprocessor symbols used
# by the compiler may be understood differently by library code.
# In this particular case, it turned out that -DDEBUG made Cabal 
# import HUnit, which might not be installed for the compiler we are
# compiling with (e.g. 6.2.1). Hence the filter-out.
SRC_HC_OPTS += $(filter-out -D%, $(GhcHcOpts)) 

ifeq "$(ghc_ge_603)" "YES"
# These modules are all provided in GHC 6.3+
EXCLUDED_SRCS += \
	System/Directory/Internals.hs \
	Distribution/Compat/ReadP.hs \
	Distribution/Extension.hs \
	Distribution/GetOpt.hs \
	Distribution/InstalledPackageInfo.hs \
	Distribution/License.hs \
	Distribution/Package.hs \
	Distribution/ParseUtils.hs \
{'fraction_non_alphanumeric': 0.10113636363636364, 'fraction_numerical': 0.012121212121212121, 'mean_word_length': 3.8817005545286505, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5864967', 'n_tokens_mistral': 939, 'n_tokens_neox': 875, 'n_words': 288}