<commit_before># Module.mk for ftgl module
# Copyright (c) 2000 <NAME> and <NAME>
#
# Author: <NAME>, 15/11/2006

MODDIR       := ftgl
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

FTGLDIR      := $(MODDIR)
FTGLDIRS     := $(FTGLDIR)/src
FTGLDIRI     := $(FTGLDIR)/inc

##### libFTGL #####
FTGLH        := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
FTGLS        := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
FTGLO        := $(FTGLS:.cxx=.o)

FTGLDEP      := $(FTGLO:.o=.d)

FTGLLIB      := $(LPATH)/libFTGL.$(SOEXT)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/%.h,$(FTGLH))
ALLLIBS     += $(FTGLLIB)

# include all dependency files
INCLUDEFILES += $(FTGLDEP)

ifeq ($(ARCH),win32)
GLLIBS       := opengl32.lib glu32.lib
endif

##### local rules #####
include/%.h:    $(FTGLDIRI)/%.h
		cp $< $@

$(FTGLLIB):     $(FTGLO) $(FREETYPEDEP) $(ORDER_) $(MAINLIBS) $(FTGLLIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libFTGL.$(SOEXT) $@ \
		   "$(FTGLO)" \
		   "$(FREETYPELDFLAGS) $(FREETYPELIB) \
		    $(FTGLLIBEXTRA) $(XLIBS) $(GLLIBS)"

all-ftgl:     $(FTGLLIB)

clean-ftgl:
		@rm -f $(FTGLO)

clean::         clean-ftgl

distclean-ftgl: clean-ftgl
		@rm -f $(FTGLDEP) $(FTGLLIB)

distclean::     distclean-ftgl

##### extra rules ######
$(FTGLO):     $(FREETYPEDEP)
$(FTGLO):     CXXFLAGS += $(FREETYPEINC)


<commit_msg>on Mac OS X 10.3 we need to link explicitly with -lz.<commit_after># Module.mk for ftgl module
# Copyright (c) 2000 <NAME> and <NAME>
#
# Author: <NAME>, 15/11/2006

MODDIR       := ftgl
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

FTGLDIR      := $(MODDIR)
FTGLDIRS     := $(FTGLDIR)/src
FTGLDIRI     := $(FTGLDIR)/inc

##### libFTGL #####
FTGLH        := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
FTGLS        := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
FTGLO        := $(FTGLS:.cxx=.o)

FTGLDEP      := $(FTGLO:.o=.d)

FTGLLIB      := $(LPATH)/libFTGL.$(SOEXT)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/%.h,$(FTGLH))
ALLLIBS     += $(FTGLLIB)

# include all dependency files
INCLUDEFILES += $(FTGLDEP)

ifeq ($(ARCH),win32)
GLLIBS       := opengl32.lib glu32.lib
endif
ifeq ($(MACOSX_MINOR),3)
FTGLLIBEXTRA += -lz
endif

##### local rules #####
include/%.h:    $(FTGLDIRI)/%.h
		cp $< $@

$(FTGLLIB):     $(FTGLO) $(FREETYPEDEP) $(ORDER_) $(MAINLIBS) $(FTGLLIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libFTGL.$(SOEXT) $@ \
		   "$(FTGLO)" \
		   "$(FREETYPELDFLAGS) $(FREETYPELIB) \
		    $(FTGLLIBEXTRA) $(XLIBS) $(GLLIBS)"

all-ftgl:     $(FTGLLIB)

clean-ftgl:
		@rm -f $(FTGLO)

clean::         clean-ftgl

distclean-ftgl: clean-ftgl
		@rm -f $(FTGLDEP) $(FTGLLIB)

distclean::     distclean-ftgl

##### extra rules ######
$(FTGLO):     $(FREETYPEDEP)
$(FTGLO):     CXXFLAGS += $(FREETYPEINC)



{'fraction_non_alphanumeric': 0.22312648355374703, 'fraction_numerical': 0.01356391997287216, 'mean_word_length': 3.2142857142857144, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '4175303', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1248, 'n_words': 234}