-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.in.info
39 lines (29 loc) · 1.19 KB
/
Makefile.in.info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Do not modify this file. Copy this file to Makefile.in and then modify it.
# the full path to the root directory
EGADS_DIR = ${HOME}/git/egads4py
CC = mpicc
CXX = mpicxx
RM = rm -f
PYTHON=python3
# Flags for debugging and regular compilation versions
EGADS_DEBUG_FLAGS = -fPIC -g
EGADS_FLAGS = -fPIC -O3
# Set the linking command - use either static/dynamic linking
# EGADS_LD_CMD=${EGADS_DIR}/lib/libegads.a
EGADS_LD_CMD=-L${EGADS_DIR}/lib/ -Wl,-rpath,${EGADS_DIR}/lib -legads
# Set up for parallel make
MAKE = make -j 8
# Set the ar flags
AR_FLAGS = rcs
# For linux systems, use the following settings:
SO_EXT=so
SO_LINK_FLAGS=-fPIC -shared
# For MAC OS X, use the following settings:
# SO_EXT=so
# SO_LINK_FLAGS=-fPIC -dynamiclib
OPENCASCADE_INCLUDE = -I${CASROOT}/${CASARCH}/include/opencascade
OPENCASCADE_LIB_PATH = -L${CASROOT}/${CASARCH}/lib -Wl,-rpath,${CASROOT}/${CASARCH}/lib
# find all libraries in $CASROOT/lib
OPENCASCADE_LIBS = $(shell cd $(CASROOT)/lib && ls lib*.so | sed -E "s/lib(.*)\.so/-l\1/g") -ldl
# For Mac OS, use the following command
# OPENCASCADE_LIBS = $(shell cd $(CASROOT)/lib && ls lib*.dylib | sed -E "s/[a-zA-Z0-9]*\.[0-9].*//g" | sed -E "s/lib(.*)\.dylib/-l\1/g") -ldl