options 1.01 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
Franjo's avatar
Franjo committed
11
        CFMESH_LIBS = -lmeshTools -lfiniteVolume
12
    endif
Franjo's avatar
Franjo committed
13
14
15
16
17
18
19
20
21
22
23
24
25
endif

ifeq ($(WM_PROJECT), foam)
    VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
    ifeq ($(VER), 1)
        CFMESH_LIBS = -lmeshTools -lfiniteVolume -ledgeMesh
        CFMESH_MACROS = -DExtendSpecific
    else
        CFMESH_LIBS = -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh
        CFMESH_MACROS =
    endif
endif

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

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