<commit_before>#
# Makefile for annotated pure functionality
#

# For compiling all the source files of the folder
#INSTR_SRCS = $(wildcard ./fun/*.cpp)

# For compiling only the selected source files
#INSTR_SRCS = gen_data.cpp process_data.cpp
#INSTR_OBJS = $(INSTR_SRCS:.cpp=.o)

#exported from root Makefile
#LIB_FUN_NAME=task_funcs

SCOPE_CC = scope-g++ --scope-method=op-cost --scope-noicache
ANNOTATION_FLAGS = -D_USE_AUTOMATIC_CODE_ANNOTATION -fPIC

CC = g++ $(SCO)

OPT = -O2
#CFLAGS = $(COMPILATION_TYPE_FLAG) $(OPT)

# -srd=C++0x os for using 2011 standard. For instance, to use to_string functions
CFLAGS = $(COMPILATION_TYPE_FLAGS) -g -std=c++0x -Wall

# This is related to the type of host installation platform
# For linux 32 bits
#LIB = lib-linux
# For linux 64 bits 
LIB = lib-linux64

DEFINES = $(COMPILATION_TYPE_FLAG)

ADD_INCDIR = -I$(SYSTEMC_PATH)/include -I$(KISTA)/include
ADD_LIBDIR = -L$(SYSTEMC_PATH)/$(LIB) -L$(KISTA)/lib
ADD_LIBS = -lsystemc -lkista

#ADD_INCDIR = -I$(SYSTEMC_PATH)/include -I/home/nando/soft/ucsoft/hetsc_v1.3/include
#ADD_LIBDIR = -L$(SYSTEMC_PATH)/$(LIB) -I/home/nando/soft/ucsoft/hetsc_v1.3/lib
#ADD_LIBS = -lsystemc -lhetsc

# Target prefix: none = native compilation
TARGET_PREFIX = 


INCDIR = $(BASIC_INCDIR) $(ADD_INCDIR)
LIBDIR = $(BASIC_LIBDIR) $(ADD_LIBDIR)

LIBS = $(ADD_LIBS)


#.SUFFIXES: .cc .cpp .o .x

all: $(INSTR_OBJS)
	@echo Generating libraries for Instrumented System Functionality
	@g++ -shared -Wl,-soname,$(LIB_FUN_NAME).so -o $(LIB_FUN_NAME).so *.o
	@ar rcs -o lib$(LIB_FUN_NAME).a *.o
	@cp -f lib$(LIB_FUN_NAME).a $(EXDIR)
#	@cp -f lib$(LIB_FUN_NAME).so $(EXDIR)

%.o: %.cpp
	@echo Compiling and Instrumenting $<
	@$(SCOPE_CC) $(ANNOTATION_FLAGS) $(CFLAGS) $(INCDIR) -c $<

clean:
	rm -rf *.o

ultraclean: clean
	rm -f $(LIB_FUN_NAME).a
	rm -f $(LIB_FUN_NAME).so
	rm -rf *~

CFLAGS +=  -DSC_INCLUDE_DYNAMIC_PROCESSES<commit_msg>minor fix in a makefile of the VAD example<commit_after>#
# Makefile for annotated pure functionality
#

# For compiling all the source files of the folder
#INSTR_SRCS = $(wildcard ./fun/*.cpp)

# For compiling only the selected source files
#INSTR_SRCS = gen_data.cpp process_data.cpp
#INSTR_OBJS = $(INSTR_SRCS:.cpp=.o)

#exported from root Makefile
#LIB_FUN_NAME=task_funcs

SCOPE_CC = scope-g++ --scope-method=op-cost --scope-noicache
ANNOTATION_FLAGS = -D_USE_AUTOMATIC_CODE_ANNOTATION -fPIC

CC = g++ $(SCO)

OPT = -O2
#CFLAGS = $(COMPILATION_TYPE_FLAG) $(OPT)

# -srd=C++0x os for using 2011 standard. For instance, to use to_string functions
CFLAGS = $(COMPILATION_TYPE_FLAGS) -g -std=c++0x -Wall

# This is related to the type of host installation platform
# For linux 32 bits
#LIB = lib-linux
# For linux 64 bits 
LIB = lib-linux64

DEFINES = $(COMPILATION_TYPE_FLAG)

ADD_INCDIR = -I$(SYSTEMC_PATH)/include -I$(KISTA)/include
ADD_LIBDIR = -L$(SYSTEMC_PATH)/$(LIB) -L$(KISTA)/lib
ADD_LIBS = -lsystemc -lkista

#ADD_INCDIR = -I$(SYSTEMC_PATH)/include -I/home/nando/soft/ucsoft/hetsc_v1.3/include
#ADD_LIBDIR = -L$(SYSTEMC_PATH)/$(LIB) -I/home/nando/soft/ucsoft/hetsc_v1.3/lib
#ADD_LIBS = -lsystemc -lhetsc

# Target prefix: none = native compilation
TARGET_PREFIX = 


INCDIR = $(BASIC_INCDIR) $(ADD_INCDIR)
LIBDIR = $(BASIC_LIBDIR) $(ADD_LIBDIR)

LIBS = $(ADD_LIBS)


#.SUFFIXES: .cc .cpp .o .x

all: $(INSTR_OBJS)
	@echo Generating libraries for Instrumented System Functionality
	@g++ -shared -Wl,-soname,$(LIB_FUN_NAME).so -o $(LIB_FUN_NAME).so *.o
	@ar rcs -o lib$(LIB_FUN_NAME).a *.o
	@cp -f lib$(LIB_FUN_NAME).a $(EXDIR)
#	@cp -f lib$(LIB_FUN_NAME).so $(EXDIR)

%.o: %.cpp
	@echo Compiling and Instrumenting $<
	@$(SCOPE_CC) $(ANNOTATION_FLAGS) $(CFLAGS) $(INCDIR) -c $<

clean:
	rm -rf *.o

ultraclean: clean
	rm -f lib$(LIB_FUN_NAME).a
	rm -f $(LIB_FUN_NAME).so
	rm -rf *~

CFLAGS +=  -DSC_INCLUDE_DYNAMIC_PROCESSES
{'fraction_non_alphanumeric': 0.14814814814814814, 'fraction_numerical': 0.008868022952529996, 'mean_word_length': 4.533910533910534, 'pattern_counts': {'":': 0, '<': 7, '<?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': '630640', 'n_tokens_mistral': 1657, 'n_tokens_neox': 1561, 'n_words': 373}