options 1.06 KB
Newer Older
Franjo's avatar
Franjo committed
1 2 3 4 5 6
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType
    else
        CFMESH_MACROS =
    endif
7 8 9 10

    ifeq (OpenFOAM-dev,$(findstring OpenFOAM-dev,$(WM_PROJECT_DIR)))
        CFMESH_LIBS = -lmeshTools -ltriSurface -lfiniteVolume 
    else
11
        CFMESH_LIBS = -lmeshTools -lfiniteVolume
12
    endif
Franjo's avatar
Franjo committed
13 14 15 16 17 18
endif

ifeq ($(WM_PROJECT), foam)
    VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
    ifeq ($(VER), 1)
        CFMESH_LIBS = -lmeshTools -lfiniteVolume -ledgeMesh
19
        CFMESH_MACROS = -DExtendSpecific -std=c++11
Franjo's avatar
Franjo committed
20 21 22 23 24 25
    else
        CFMESH_LIBS = -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh
        CFMESH_MACROS =
    endif
endif

26
EXE_INC = \
Franjo's avatar
Franjo committed
27 28
    $(CFMESH_MACROS) \
    -I$(LIB_SRC)/triSurface/lnInclude \
29
    -I$(LIB_SRC)/surfMesh/lnInclude \
Franjo's avatar
Franjo committed
30
    -I$(LIB_SRC)/meshTools/lnInclude \
Franjo's avatar
Franjo committed
31 32 33
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/edgeMesh/lnInclude \
    -I../../meshLibrary/lnInclude
34 35

EXE_LIBS = \
Franjo's avatar
Franjo committed
36
    $(CFMESH_LIBS) \
37
    -L$(FOAM_USER_LIBBIN) \
Franjo Juretic's avatar
Franjo Juretic committed
38
    -lmeshLibrary