Commit 8039a627 authored by Jan Zapletal's avatar Jan Zapletal

MAINT: simplified makefiles

parent 0472b738
......@@ -14,14 +14,20 @@ LDLIBSOPTIONS=-fopenmp -L${MKLROOT}/lib/intel64 -Wl,-rpath,'${MKLROOT}/lib/intel
COMPILELINE=${CXX} ${CXXFLAGS} -c
build: build/testHeatDtN.o
OBJECTDIR=build
CXXFILES=$(wildcard *.cpp)
OBJECTFILES=$(addprefix ${OBJECTDIR}/,$(CXXFILES:.cpp=.o))
build: ${OBJECTFILES}
mkdir -p dist
${CXX} -o dist/testHeatDtN build/testHeatDtN.o ${LDLIBSOPTIONS}
$(CXX) -o dist/testHeatDtN ${OBJECTFILES} ${LDLIBSOPTIONS}
build/testHeatDtN.o: testHeatDtN.cpp
mkdir -p build
${OBJECTDIR}/%.o: %.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -MMD -MP -MF "$@.d" -o build/testHeatDtN.o testHeatDtN.cpp
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o $@ $<
clean:
rm -rf build
......
......@@ -16,136 +16,18 @@ COMPILELINE=${CXX} ${CXXFLAGS} -c
OBJECTDIR=build
OBJECTFILES= \
${OBJECTDIR}/BEBilinearForm.o \
${OBJECTDIR}/BEBilinearFormLaplace1Layer.o \
${OBJECTDIR}/BEBilinearFormLaplace2Layer.o \
${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o \
${OBJECTDIR}/BEIntegrator.o \
${OBJECTDIR}/BEIntegratorLaplace.o \
${OBJECTDIR}/BESpace.o \
${OBJECTDIR}/CompoundLinearOperator.o \
${OBJECTDIR}/FullMatrix.o \
${OBJECTDIR}/IdentityOperator.o \
${OBJECTDIR}/InverseLinearOperator.o \
${OBJECTDIR}/Matrix.o \
${OBJECTDIR}/Mesh.o \
${OBJECTDIR}/PotentialsLaplace.o \
${OBJECTDIR}/RepresentationFormula.o \
${OBJECTDIR}/RepresentationFormulaLaplace.o \
${OBJECTDIR}/SparseMatrix.o \
${OBJECTDIR}/SurfaceMesh3D.o \
${OBJECTDIR}/Vector.o \
${OBJECTDIR}/heatdtn.o
CXXFILES=$(wildcard *.cpp)
OBJECTFILES=$(addprefix ${OBJECTDIR}/,$(CXXFILES:.cpp=.o))
build: ${OBJECTFILES}
mkdir -p dist
$(CXX) -o dist/libheatdtn.so ${OBJECTFILES} ${LDLIBSOPTIONS} -shared -fPIC
${OBJECTDIR}/BEBilinearForm.o: BEBilinearForm.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearForm.o BEBilinearForm.cpp
${OBJECTDIR}/BEBilinearFormLaplace1Layer.o: BEBilinearFormLaplace1Layer.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace1Layer.o BEBilinearFormLaplace1Layer.cpp
${OBJECTDIR}/BEBilinearFormLaplace2Layer.o: BEBilinearFormLaplace2Layer.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace2Layer.o BEBilinearFormLaplace2Layer.cpp
${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o: BEBilinearFormLaplaceHypersingular.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o BEBilinearFormLaplaceHypersingular.cpp
${OBJECTDIR}/BEIntegrator.o: BEIntegrator.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegrator.o BEIntegrator.cpp
${OBJECTDIR}/BEIntegratorLaplace.o: BEIntegratorLaplace.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegratorLaplace.o BEIntegratorLaplace.cpp
${OBJECTDIR}/BESpace.o: BESpace.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BESpace.o BESpace.cpp
${OBJECTDIR}/CompoundLinearOperator.o: CompoundLinearOperator.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/CompoundLinearOperator.o CompoundLinearOperator.cpp
${OBJECTDIR}/FullMatrix.o: FullMatrix.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/FullMatrix.o FullMatrix.cpp
${OBJECTDIR}/IdentityOperator.o: IdentityOperator.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/IdentityOperator.o IdentityOperator.cpp
${OBJECTDIR}/InverseLinearOperator.o: InverseLinearOperator.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/InverseLinearOperator.o InverseLinearOperator.cpp
${OBJECTDIR}/LaplaceHypersingularOperator.o: LaplaceHypersingularOperator.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/LaplaceHypersingularOperator.o LaplaceHypersingularOperator.cpp
${OBJECTDIR}/Matrix.o: Matrix.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Matrix.o Matrix.cpp
${OBJECTDIR}/Mesh.o: Mesh.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Mesh.o Mesh.cpp
${OBJECTDIR}/PotentialsLaplace.o: PotentialsLaplace.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/PotentialsLaplace.o PotentialsLaplace.cpp
${OBJECTDIR}/RepresentationFormula.o: RepresentationFormula.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormula.o RepresentationFormula.cpp
${OBJECTDIR}/RepresentationFormulaLaplace.o: RepresentationFormulaLaplace.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormulaLaplace.o RepresentationFormulaLaplace.cpp
${OBJECTDIR}/SparseMatrix.o: SparseMatrix.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SparseMatrix.o SparseMatrix.cpp
${OBJECTDIR}/SurfaceMesh3D.o: SurfaceMesh3D.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SurfaceMesh3D.o SurfaceMesh3D.cpp
${OBJECTDIR}/Vector.o: Vector.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Vector.o Vector.cpp
${OBJECTDIR}/heatdtn.o: heatdtn.cpp
${OBJECTDIR}/%.o: %.cpp
mkdir -p ${OBJECTDIR}
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/heatdtn.o heatdtn.cpp
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o $@ $<
clean:
rm -rf build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment