EXE_INC = \
    -I$(OBJECTS_DIR)

LIB_LIBS = \
    $(FOAM_LIBBIN)/libOSspecific.o

/* libz: (not disabled) */
ifeq (,$(findstring ~libz,$(WM_COMPILE_CONTROL)))
    EXE_INC  += -DHAVE_LIBZ
    LIB_LIBS += -lz
endif

/* extrae profiling hooks [https://tools.bsc.es/extrae] */
ifeq (,$(findstring windows,$(WM_OSTYPE)))
ifeq (,$(findstring ~extrae,$(WM_COMPILE_CONTROL)))
    EXE_INC  += -DHAVE_EXTRAE
endif
endif

/* Never self-link (WM_PROJECT == OpenFOAM), but do link to Pstream */

PROJECT_LIBS =

ifeq (libo,$(FOAM_LINK_DUMMY_PSTREAM))
    LIB_LIBS += $(FOAM_LIBBIN)/dummy/libPstream.o
else
    LIB_LIBS += -L$(FOAM_LIBBIN)/dummy -lPstream
endif

/* umpire memory pool source files */
include $(WM_PROJECT_DIR)/src/OpenFOAM/Make/umpireFiles

ifneq (,$(findstring true,$(have_umpire)))
    LIB_LIBS += -L$(UMPIRE_HOME)/lib -L$(UMPIRE_HOME)/lib64 -lumpire
    EXE_INC += -Dhave_umpire -I$(UMPIRE_HOME)/include
endif

/* platform specific source files */
include $(WM_PROJECT_DIR)/src/OpenFOAM/Make/deviceFiles

ifneq (,$(findstring true,$(have_cuda)))
    LIB_LIBS += -lcudart
    EXE_INC += -Dhave_cuda
endif


