-
Notifications
You must be signed in to change notification settings - Fork 1
/
definitions.mk
executable file
·19 lines (18 loc) · 991 Bytes
/
definitions.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
OBJS := FoodWebModel
COMPS := FoodWebModel ReadProcessedData ParameterReader AnimalBiomassDynamics AuxFunctions GrazerBiomassDynamics FishBiomassDynamics truncated_normal
SRC := src/main.cpp $(foreach d, $(COMPS), src/${d}.cpp)
HEADERS := headers/ModelConstants.hpp headers/SimulationModes.hpp $(foreach d, $(COMPS), headers/${d}.hpp)
ifeq ($(OS),Windows_NT)
GDAL_INCLUDE := -IC:/OSGeo4W64/include
GDAL_LIBRARIES := -LC:/OSGeo4W64/lib
NETCDF_INCLUDE := -I"C:/Users/manu_/Downloads/netcdf/netcdf-cxx4-master/cxx4"
NETCDF_LIBRARIES := -L"C:/Users/manu_/Downloads/netcdf/netcdf-cxx4-master/cxx4"
PREP_COMMAND := "peflags --cygwin-heap=100 ./bin/$(OBJS)"
else
GDAL_INCLUDE := `gdal-config --cflags`
GDAL_LIBRARIES := `gdal-config --libs`
NETCDF_INCLUDE := -I"/usr/local/share/netcdf/include"
NETCDF_LIBRARIES := -L"/usr/local/share/netcdf/lib" -L"/usr/local/share/netcdf-c/netcdf-4.4.1.1/liblib" -lnetcdf_c++4 -lnetcdf
PREP_COMMAND := ""
endif
COMPILATION_OPTIONS = -std=c++11