-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmakefile
42 lines (34 loc) · 1.02 KB
/
makefile
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
40
41
42
PETSC_DIR=/home/wonderfulzzd/opt/petsc-3.10.2
PETSC_ARCH=arch-linux-mpicc-debug
CFLAGS=-I.
FFLAGS=
CXXFLAGS=-I.
FPPFLAGS=
LOCDIR=
EXAMPLESC=
EXAMPLESF=
MANSEC=
CLEANFILES=
NP=
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
include ${PETSC_DIR}/lib/petsc/conf/test
CXXFLAGS+=-std=c++11 -Wall -O0 \
-I./prepost \
-I./prepost/vox \
-I./timer \
-I./compliant\
-I./heat
ADD_SRC=${wildcard ./prepost/*.cc} \
${wildcard ./prepost/vox/*.cc} \
${wildcard ./timer/*.cc} \
${wildcard ./compliant/*.cc} \
${wildcard ./heat/*.cc}
ADD_OBJ=${patsubst %.cc,%.o,${ADD_SRC}}
topopt: main.o TopOpt.o LinearElasticity.o MMA.o Filter.o PDEFilter.o MPIIO.o ${ADD_OBJ} chkopts
rm -rf topopt
-${CLINKER} -o topopt main.o TopOpt.o LinearElasticity.o MMA.o Filter.o PDEFilter.o MPIIO.o ${ADD_OBJ} ${PETSC_SYS_LIB}
${RM} main.o TopOpt.o LinearElasticity.o MMA.o Filter.o PDEFilter.o MPIIO.o ${ADD_OBJ}
rm -rf *.o ${ADD_OBJ}
myclean:
rm -rf topopt *.o output* binary* log* makevtu.pyc Restart* ${ADD_OBJ}