<commit_before>include ../../makefile.conf

DIRS = minc
SRCS = parse_with_minc.c
OBJS = parse_with_minc.o

ifeq ($(PERL_SUPPORT), TRUE)
	DIRS += perl
	OBJS += parse_with_perl.o
	SRCS += parse_with_perl.c
endif
ifeq ($(PYTHON_SUPPORT), TRUE)
	DIRS += python
	OBJS += parse_with_python.o
	SRCS += parse_with_python.c
   PYTHON_INCLUDE_DIR = `$(PYTHON) python/print_python_includedir.py`
   ifeq ($(PYTHON_EXT_STATIC_LINK), TRUE)
      PYDEF = -DPYEXT_INIT
   endif
endif

all: $(DIRS) $(OBJS)
	@for DIR in $(DIRS); \
	do \
	  ( cd $$DIR; $(MAKE) $(MFLAGS) all; ) \
	done

parse_with_minc.o: parse_with_minc.c rtcmix_parse.h
	$(CC) $(CFLAGS) -c parse_with_minc.c

parse_with_perl.o: parse_with_perl.c rtcmix_parse.h

ifeq ($(ARCH),MACOSX)
ifeq ($(BUILD_ARCH),ppc)
	$(CC) $(CFLAGS) `$(PERL) -MExtUtils::Embed -e ccopts | sed 's/-arch i386//' | sed 's/-arch x86_64//'` \
		-DSHAREDLIBDIR=\"$(LIBDESTDIR)\" -c parse_with_perl.c
endif
ifeq ($(BUILD_ARCH),i386)
	$(CC) $(CFLAGS) `$(PERL) -MExtUtils::Embed -e ccopts | sed 's/-arch x86_64//' | sed 's/-arch ppc//'` \
		-DSHAREDLIBDIR=\"$(LIBDESTDIR)\" -c parse_with_perl.c
endif
ifeq ($(BUILD_ARCH),x86_64)<commit_msg>Be explicit about how to make parse_with_perl.o<commit_after>include ../../makefile.conf

DIRS = minc
SRCS = parse_with_minc.c
OBJS = parse_with_minc.o

ifeq ($(PERL_SUPPORT), TRUE)
	DIRS += perl
	OBJS += parse_with_perl.o
	SRCS += parse_with_perl.c
endif
ifeq ($(PYTHON_SUPPORT), TRUE)
	DIRS += python
	OBJS += parse_with_python.o
	SRCS += parse_with_python.c
   PYTHON_INCLUDE_DIR = `$(PYTHON) python/print_python_includedir.py`
   ifeq ($(PYTHON_EXT_STATIC_LINK), TRUE)
      PYDEF = -DPYEXT_INIT
   endif
endif

all: $(DIRS) $(OBJS)
	@for DIR in $(DIRS); \
	do \
	  ( cd $$DIR; $(MAKE) $(MFLAGS) all; ) \
	done

parse_with_minc.o: parse_with_minc.c rtcmix_parse.h
	$(CC) $(CFLAGS) -c parse_with_minc.c

parse_with_perl.o: parse_with_perl.c rtcmix_parse.h
	$(CC) $(CFLAGS) -c parse_with_perl.c

ifeq ($(ARCH),MACOSX)
ifeq ($(BUILD_ARCH),ppc)
	$(CC) $(CFLAGS) `$(PERL) -MExtUtils::Embed -e ccopts | sed 's/-arch i386//' | sed 's/-arch x86_64//'` \
		-DSHAREDLIBDIR=\"$(LIBDESTDIR)\" -c parse_with_perl.c
endif
ifeq ($(BUILD_ARCH),i386)
	$(CC) $(CFLAGS) `$(PERL) -MExtUtils::Embed -e ccopts | sed 's/-arch x86_64//' | sed 's/-arch ppc//'` \
		-DSHAREDLIBDIR=\"$(LIBDESTDIR)\" -c parse_with_perl.c
endif
ifeq ($(BUILD_ARCH),x86_64)
{'fraction_non_alphanumeric': 0.17782426778242677, 'fraction_numerical': 0.01506276150627615, 'mean_word_length': 4.2319474835886215, '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': '2929048', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1049, 'n_words': 211}