This repository was archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.debug
52 lines (34 loc) · 2.96 KB
/
Makefile.debug
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
43
44
45
46
47
48
49
50
51
ifndef DISPLAYOBJ
DISPLAYOBJ=DISPLAYOBJ
ifndef CLEANFOLDER
CLEANFOLDER=DISPLAYOBJ
endif
R ?= ../..
include $(R)/Makefile-headers/Makefile-header
# the object files to be compiled for these utilities
DISPLAYOBJ_OBJECTS=
# the libraries these utilities depend on
# DISPLAYOBJ_LIBS=loadList integratorDense minivector polarDecomposition getopts sparseMatrix corotationalLinearFEM objMesh openGLHelper volumetricMesh imageIO glslPhong camera matrixIO lighting configFile loadList
DISPLAYOBJ_LIBS=modalMatrix reducedForceModel sceneObject lighting sceneObjectReduced reducedElasticForceModel reducedStvk integratorSparse integratorDense integrator stvk renderVolumetricMesh openGLHelper elasticForceModel isotropicHyperelasticFEM stvk forceModel sparseMatrix loadList matrix insertRows volumetricMesh getopts graph corotationalLinearFEM clothBW polarDecomposition matrixIO massSpringSystem objMesh configFile minivector imageIO sparseSolver
# the headers in this library
DISPLAYOBJ_HEADERS=
DISPLAYOBJ_LINK=$(addprefix -l, $(DISPLAYOBJ_LIBS)) $(ARPACK_LIB) $(SPOOLES_LIB) $(BLASLAPACK_LIB) $(PARDISO_LIB) $(FORTRAN_LIB) $(GLEW_LIB) $(STANDARD_LIBS) $(GLUI_LIB)
DISPLAYOBJ_OBJECTS_FILENAMES=$(addprefix $(R)/utilities/computeDeformationStress/, $(DISPLAYOBJ_OBJECTS))
DISPLAYOBJ_HEADER_FILENAMES=$(addprefix $(R)/utilities/computeDeformationStress/, $(DISPLAYOBJ_HEADERS))
DISPLAYOBJ_LIB_MAKEFILES=$(call GET_LIB_MAKEFILES, $(DISPLAYOBJ_LIBS))
DISPLAYOBJ_LIB_FILENAMES=$(call GET_LIB_FILENAMES, $(DISPLAYOBJ_LIBS))
include $(DISPLAYOBJ_LIB_MAKEFILES)
all: $(R)/utilities/computeDeformationStress/solve #$(R)/utilities/3dfea/objMergeFiles
$(R)/utilities/computeDeformationStress/solve: $(R)/utilities/computeDeformationStress/main.cpp /home/sourav/Experimentation/VegaFEM-v3.1/utilities/largeModalDeformationFactory/StVKReducedInternalForcesWX.cpp ./src/SimulatorApp.cpp ./src/FEASolve.cpp ./src/Optimizer.cpp $(DISPLAYOBJ_LIB_FILENAMES) $(DISPLAYOBJ_HEADER_FILENAMES)
$(CXXLD) $(LDFLAGS) $(INCLUDE) $(GLUI_INCLUDE) $(BLASLAPACK_INCLUDE) -I/usr/include/eigen3 $(DISPLAYOBJ_OBJECTS) $^ $(DISPLAYOBJ_LINK) -std=c++11 -g -lThea -lboost_system -lboost_thread -lboost_filesystem -lboost_program_options -lm -Wl,-rpath,$(GLUI_DIR)/lib $(IMAGE_LIBS) `$(WX_CONFIG) --cxxflags --libs core,base,gl` -o $@; cp $@ $(R)/utilities/bin/
# $(R)/utilities/3dfea/objMergeFiles: $(R)/utilities/3dfea/objMergeFiles.cpp $(DISPLAYOBJ_LIB_FILENAMES) $(DISPLAYOBJ_HEADER_FILENAMES)
# $(CXXLD) $(LDFLAGS) $(INCLUDE) $(GLUI_INCLUDE) $(DISPLAYOBJ_OBJECTS) $^ $(DISPLAYOBJ_LINK) -Wl,-rpath,$(GLUI_DIR)/lib $(IMAGE_LIBS) -o $@; cp $@ $(R)/utilities/bin/
$(DISPLAYOBJ_OBJECTS_FILENAMES): %.o: %.cpp $(DISPLAYOBJ_LIB_FILENAMES) $(DISPLAYOBJ_HEADER_FILENAMES)
$(CXX) $(CXXFLAGS) `$(WX_CONFIG) --cxxflags` -c $(PARDISO_INCLUDE) $(INCLUDE) $(IMAGE_INCLUDE) $(GLUI_INCLUDE) $< -o $@
ifeq ($(CLEANFOLDER), DISPLAYOBJ)
clean: cleandisplayObj
endif
deepclean: cleandisplayObj
cleandisplayObj:
$(RM) $(R)/utilities/computeDeformationStress/solve
endif