<commit_before>include ../../config.mak

vpath %.c $(SRC_PATH)/modules/accessor_dec

CFLAGS= $(OPTFLAGS) $(CXXFLAGS) -I"$(SRC_PATH)/include" $(llvm_cxxflags)
LDFLAGS= $(llvm_ldflags)

ifeq ($(DEBUGBUILD), yes)
CFLAGS+=-g
CXXFLAGS+=-g
LDFLAGS+=-g
endif

ifeq ($(GPROFBUILD), yes)
CFLAGS+=-pg
CXXFLAGS+=-pg
LDFLAGS+=-pg
endif

EXTRALIBS+=-L../../bin/gcc -lgpac $(llvm_libs)

#common obj
#OBJS_C= 
OBJS_CPP= accessor_dec.o accessor_comp.o

SRCS_C := $(OBJS_C:.o=.c) 
SRCS_CPP := $(OBJS_CPP:.o=.cpp)

LIB=gm_accessor_dec$(DYN_LIB_SUFFIX)


all: $(LIB)


$(LIB): $(OBJS_CPP)
	$(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS_CPP) $(EXTRALIBS) -lstdc++ -lz -lffi -lcurses


clean: 
	rm -f $(OBJS_C) $(OBJS_CPP) '$(OUT_PATH)'/$(LIB)

dep: depend

depend:
	rm -f .depend	
	$(CXX) -MM $(CFLAGS) $(SRCS) 1>.depend

distclean: clean
	rm -f Makefile.bak .depend



# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend<commit_msg>Fix linux compilation for accessor_dec<commit_after>include ../../config.mak

vpath %.c $(SRC_PATH)/modules/accessor_dec

CFLAGS= $(OPTFLAGS) $(CXXFLAGS) -I"$(SRC_PATH)/include" $(llvm_cxxflags)
LDFLAGS= $(llvm_ldflags)

ifeq ($(DEBUGBUILD), yes)
CFLAGS+=-g
CXXFLAGS+=-g
LDFLAGS+=-g
endif

ifeq ($(GPROFBUILD), yes)
CFLAGS+=-pg
CXXFLAGS+=-pg
LDFLAGS+=-pg
endif

EXTRALIBS+=-L../../bin/gcc -lgpac $(llvm_libs)

#darwin needs bz2
ifeq ($(CONFIG_DARWIN),yes)
EXTRALIBS+=-lstdc++ -lz -lffi -lcurses
endif

#common obj
#OBJS_C= 
OBJS_CPP= accessor_dec.o accessor_comp.o

SRCS_C := $(OBJS_C:.o=.c) 
SRCS_CPP := $(OBJS_CPP:.o=.cpp)

LIB=gm_accessor_dec$(DYN_LIB_SUFFIX)


all: $(LIB)


$(LIB): $(OBJS_CPP)
	$(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS_CPP) $(EXTRALIBS)


clean: 
	rm -f $(OBJS_C) $(OBJS_CPP) '$(OUT_PATH)'/$(LIB)

dep: depend

depend:
	rm -f .depend	
	$(CXX) -MM $(CFLAGS) $(SRCS) 1>.depend

distclean: clean
	rm -f Makefile.bak .depend



# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
{'fraction_non_alphanumeric': 0.20399002493765586, 'fraction_numerical': 0.0014962593516209476, 'mean_word_length': 4.451086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1051699', 'n_tokens_mistral': 926, 'n_tokens_neox': 877, 'n_words': 187}