# $Id: Makefile 1385 2026-07-09 13:01:37Z ge $
# \author Gerald Weber <gweberbh@gmail.com>

#the dash means Makefile will not fail if /etc/os-release does not exists
-include /etc/os-release

#we use g++
CXX=g++

LBOOST=-lboost_filesystem  -lboost_system -lboost_regex -lboost_iostreams


ifeq ($(PRETTY_NAME),"Ubuntu 26.04 LTS")
#Ubuntu 26.04 no longer has -lboost_system 
LBOOST=-lboost_filesystem  -lboost_regex -lboost_iostreams
endif

# collect all *.cpp in directory
CPPSRC=$(wildcard src/*.cpp)

MACROFLAG = -DBUILDTIME=\"$(shell date --iso=seconds)\" -DSVNVERSION=\"5.0\" -DLINUXSYSTEM=\"${PRETTY_NAME}\"

vargibbs: ${CPPSRC} 
	${CXX} -std=c++11 ${MACROFLAG} -g -O3 -o $@ -Isrc ${CPPSRC} -lz -lgsl -lgslcblas -lm ${LBOOST}
