<commit_before>GCC = 0 
RPI = 0
PORT = 22
HOST = pi-la
NAME = main    
GFX=1
PLATFORM=$(shell uname)

ifeq ($(PLATFORM),Linux)
	GCC = 1
endif

PIROOT = $(HOME)/code/pi/root/

CLANG = /usr/local/bin/

#COMPILER VERSION  

ifeq ($(GCC),1) 
ifeq ($(RPI),1)
   CXX = arm-linux-gnueabihf-g++ -std=c++0x
else
   CXX = g++ -std=c++0x 
endif
else  
ifeq ($(CLANG),0) 
	CXX = /Users/wolftype/code/clangbuild2/Release+Asserts/bin/clang++ -std=c++11  
else 
	CXX = clang++ -std=c++11 -v  
endif 
	CXX += -arch x86_64
endif
CXX += -O3 -fpeel-loops  -ftemplate-depth-1200 
AR 	= ar crs 

IPATH = -Ivsr/ 
LDFLAGS =
#INCLUDES AND LINKS
ifeq ($(RPI),0)  
IPATH += -I/usr/include/ 
LDFLAGS += -Lbuild/lib/ -Lext/glv/build/lib/ 
LDFLAGS += -lm  
else
IPATH += -I$(PIROOT)usr/include
IPATH += -I$(PIROOT)usr/local/include
IPATH += -I$(PIROOT)opt/vc/include
IPATH += -I$(PIROOT)opt/vc/include/interface/vcos/pthreads
IPATH += -I$(PIROOT)opt/vc/include/interface/vmcs_host/linux  
LDFLAGS += -L$(PIROOT)lib
LDFLAGS += -L$(PIROOT)usr/lib
LDFLAGS += -L$(PIROOT)usr/local/lib
LDFLAGS += -L$(PIROOT)opt/vc/lib
LDFLAGS += -lbcm_host
LDFLAGS += -llo
LDFLAGS += -lm
LDFLAGS += -lrt
LDFLAGS += -lstdc++
LDFLAGS += -lvchiq_arm
LDFLAGS += -lvcos
endif

ifeq ($(GFX),1) 
IPATH += -Iext/glv/ -Iext/gfx/ 
ifeq ($(PLATFORM),Linux)
	LDFLAGS += -lglv -lGL -lglut 
else
	LDFLAGS += -lglv -framework OpenGL -framework GLUT 
endif
endif
                           
LDFLAGS := $(LDFLAGS)  

SRC_DIR = src/
INCLUDE_DIR = vsr/
 
VPATH = $(SRC_DIR):\
		$(INCLUDE_DIR) 

EXEC = tests/%.cpp 

OBJ = vsr_cga3D.o 

OBJ_DIR = build/obj/
LIB_DIR = build/lib/
BIN_DIR = build/bin/

LIB_NAME = vsr
LIB_FILE = libvsr.a

#LDFLAGS += -l$(LIB_NAME)  

$(OBJ_DIR)%.o: %.cpp 
	@echo hey compiling $@ using $< 
	$(CXX) $(IPATH) -c $< -o $@ 
<commit_msg>Fixed linking flags for Linux.<commit_after>GCC = 0 
RPI = 0
PORT = 22
HOST = pi-la
NAME = main    
GFX=1
PLATFORM=$(shell uname)

ifeq ($(PLATFORM),Linux)
	GCC = 1
endif

PIROOT = $(HOME)/code/pi/root/

CLANG = /usr/local/bin/

#COMPILER VERSION  

ifeq ($(GCC),1) 
ifeq ($(RPI),1)
   CXX = arm-linux-gnueabihf-g++ -std=c++0x
else
   CXX = g++ -std=c++0x 
endif
else  
ifeq ($(CLANG),0) 
	CXX = /Users/wolftype/code/clangbuild2/Release+Asserts/bin/clang++ -std=c++11  
else 
	CXX = clang++ -std=c++11 -v  
endif 
	CXX += -arch x86_64
endif
CXX += -O3 -fpeel-loops  -ftemplate-depth-1200 
AR 	= ar crs 

IPATH = -Ivsr/ 
LDFLAGS =
#INCLUDES AND LINKS
ifeq ($(RPI),0)  
IPATH += -I/usr/include/ 
LDFLAGS += -Lbuild/lib/ -Lext/glv/build/lib/ 
LDFLAGS += -lm  
else
IPATH += -I$(PIROOT)usr/include
IPATH += -I$(PIROOT)usr/local/include
IPATH += -I$(PIROOT)opt/vc/include
IPATH += -I$(PIROOT)opt/vc/include/interface/vcos/pthreads
IPATH += -I$(PIROOT)opt/vc/include/interface/vmcs_host/linux  
LDFLAGS += -L$(PIROOT)lib
LDFLAGS += -L$(PIROOT)usr/lib
LDFLAGS += -L$(PIROOT)usr/local/lib
LDFLAGS += -L$(PIROOT)opt/vc/lib
LDFLAGS += -lbcm_host
LDFLAGS += -llo
LDFLAGS += -lm
LDFLAGS += -lrt
LDFLAGS += -lstdc++
LDFLAGS += -lvchiq_arm
LDFLAGS += -lvcos
endif

ifeq ($(GFX),1) 
IPATH += -Iext/glv/ -Iext/gfx/ 
ifeq ($(PLATFORM),Linux)
	LDFLAGS += -lGLV -lGLEW -lGLU -lGL -lglut 
else
	LDFLAGS += -lglv -framework OpenGL -framework GLUT 
endif
endif
                           
LDFLAGS := $(LDFLAGS)  

SRC_DIR = src/
INCLUDE_DIR = vsr/
 
VPATH = $(SRC_DIR):\
		$(INCLUDE_DIR) 

EXEC = tests/%.cpp 

OBJ = vsr_cga3D.o 

OBJ_DIR = build/obj/
LIB_DIR = build/lib/
BIN_DIR = build/bin/

LIB_NAME = vsr
LIB_FILE = libvsr.a

#LDFLAGS += -l$(LIB_NAME)  

$(OBJ_DIR)%.o: %.cpp 
	@echo hey compiling $@ using $< 
	$(CXX) $(IPATH) -c $< -o $@ 

{'fraction_non_alphanumeric': 0.18325041459369817, 'fraction_numerical': 0.015478164731896076, 'mean_word_length': 3.1125, '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': '2686829', 'n_tokens_mistral': 1711, 'n_tokens_neox': 1633, 'n_words': 332}