Commit 71bbef63 authored by Jan Zapletal's avatar Jan Zapletal

unified makefiles, updated gitignore, working on readme

parent 0c68c81b
Examples/testHeatDtN
Examples/build/*
Examples/dist/*
build/*
dist/*
.dep.inc
.DS_Store
*.o
NAME=testHeatDtN
HEATDTN_LIB_PATH=../dist/heatdtn_lib/
HEATDTN_INC_PATH=../
CXX=icpc
CXXFLAGS=-m64 -w2 -O3 -std=c++11 -I${HEATDTN_INC_PATH}
#CXX=g++
#CXXFLAGS=-m64 -Wall -O3 -std=c++11 -I${HEATDTN_INC_PATH}
LDLIBSOPTIONS=-L${HEATDTN_LIB_PATH} -Wl,-rpath,'${HEATDTN_LIB_PATH}' -lheatdtn
EXE=$(NAME)
CXXFILES=$(wildcard *.cpp)
OBJECTS=$(CXXFILES:.cpp=.o)
build : $(EXE)
@echo "...."
@echo "Build complete"
@echo "Run : ./${NAME}"
$(EXE) : $(OBJECTS)
$(CXX) -o $@ $^ $(LDLIBSOPTIONS)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean :
rm -rf $(EXE) $(OBJECTS)
HEATDTN_LIB_PATH=../dist/
HEATDTN_INC_PATH=../
CXX=icpc
CXXFLAGS=-m64 -O3 -std=c++11 -w2 -I${HEATDTN_INC_PATH}
LDLIBSOPTIONS=-L${HEATDTN_LIB_PATH} -Wl,-rpath,'${HEATDTN_LIB_PATH}' -lheatdtn
#CXX=g++
#CXXFLAGS=-m64 -O3 -std=c++11 -Wall -I${HEATDTN_INC_PATH}
#LDLIBSOPTIONS=-L${HEATDTN_LIB_PATH} -Wl,-rpath,'${HEATDTN_LIB_PATH}' -lheatdtn
#########################DO NOT MODIFY BELOW THIS LINE##########################
################################################################################
COMPILELINE=${CXX} ${CXXFLAGS} -c
build: build/testHeatDtN.o
mkdir -p dist
${CXX} -o dist/testHeatDtN build/testHeatDtN.o ${LDLIBSOPTIONS}
build/testHeatDtN.o: testHeatDtN.cpp
mkdir -p build
rm -f "$@.d"
${COMPILELINE} -MMD -MP -MF "$@.d" -o build/testHeatDtN.o testHeatDtN.cpp
clean:
rm -rf build
rm -rf dist
help:
@echo "This makefile supports the following targets:"
@echo " build (default target)"
@echo " clean"
@echo " help"
@echo ""
@echo "Makefile Usage:"
@echo " make build"
@echo " make clean"
@echo " make help"
@echo ""
@echo ""
# USER
EIGEN_INC=/home/zap150/eigen-eigen-b3f3d4950030
SIMD=4
......@@ -11,16 +9,13 @@ LDLIBSOPTIONS=-qopenmp -L${MKLROOT}/lib/intel64 -Wl,-rpath,'${MKLROOT}/lib/intel
#CXXFLAGS=-m64 -fopenmp -O3 -std=c++11 -DDATA_WIDTH=${SIMD} -Wall -Wno-sign-compare -I${MKLROOT}/include -I${EIGEN_INC}
#LDLIBSOPTIONS=-fopenmp -L${MKLROOT}/lib/intel64 -Wl,-rpath,'${MKLROOT}/lib/intel64' -lmkl_core -lmkl_gnu_thread -lmkl_intel_lp64
#########################DO NOT MODIFY BELOW THIS LINE##########################
################################################################################
# Environment
CC=${CXX}
CCC=${CXX}
COMPILELINE=${CXX} ${CXXFLAGS} -c
# Object Directory
OBJECTDIR=build/heatdtn_lib
OBJECTDIR=build
# Object Files
OBJECTFILES= \
${OBJECTDIR}/BEBilinearForm.o \
${OBJECTDIR}/BEBilinearFormLaplace1Layer.o \
......@@ -43,121 +38,118 @@ OBJECTFILES= \
${OBJECTDIR}/Vector.o \
${OBJECTDIR}/heatdtn.o
build: ${OBJECTFILES}
mkdir -p dist/heatdtn_lib
$(CXX) -o dist/heatdtn_lib/libheatdtn.so ${OBJECTFILES} ${LDLIBSOPTIONS} -shared -fPIC
mkdir -p dist
$(CXX) -o dist/libheatdtn.so ${OBJECTFILES} ${LDLIBSOPTIONS} -shared -fPIC
${OBJECTDIR}/BEBilinearForm.o: BEBilinearForm.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearForm.o BEBilinearForm.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearForm.o BEBilinearForm.cpp
${OBJECTDIR}/BEBilinearFormLaplace1Layer.o: BEBilinearFormLaplace1Layer.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace1Layer.o BEBilinearFormLaplace1Layer.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace1Layer.o BEBilinearFormLaplace1Layer.cpp
${OBJECTDIR}/BEBilinearFormLaplace2Layer.o: BEBilinearFormLaplace2Layer.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace2Layer.o BEBilinearFormLaplace2Layer.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplace2Layer.o BEBilinearFormLaplace2Layer.cpp
${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o: BEBilinearFormLaplaceHypersingular.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o BEBilinearFormLaplaceHypersingular.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEBilinearFormLaplaceHypersingular.o BEBilinearFormLaplaceHypersingular.cpp
${OBJECTDIR}/BEIntegrator.o: BEIntegrator.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegrator.o BEIntegrator.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegrator.o BEIntegrator.cpp
${OBJECTDIR}/BEIntegratorLaplace.o: BEIntegratorLaplace.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegratorLaplace.o BEIntegratorLaplace.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BEIntegratorLaplace.o BEIntegratorLaplace.cpp
${OBJECTDIR}/BESpace.o: BESpace.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BESpace.o BESpace.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/BESpace.o BESpace.cpp
${OBJECTDIR}/CompoundLinearOperator.o: CompoundLinearOperator.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/CompoundLinearOperator.o CompoundLinearOperator.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/CompoundLinearOperator.o CompoundLinearOperator.cpp
${OBJECTDIR}/FullMatrix.o: FullMatrix.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/FullMatrix.o FullMatrix.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/FullMatrix.o FullMatrix.cpp
${OBJECTDIR}/IdentityOperator.o: IdentityOperator.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/IdentityOperator.o IdentityOperator.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/IdentityOperator.o IdentityOperator.cpp
${OBJECTDIR}/InverseLinearOperator.o: InverseLinearOperator.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/InverseLinearOperator.o InverseLinearOperator.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/InverseLinearOperator.o InverseLinearOperator.cpp
${OBJECTDIR}/LaplaceHypersingularOperator.o: LaplaceHypersingularOperator.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/LaplaceHypersingularOperator.o LaplaceHypersingularOperator.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/LaplaceHypersingularOperator.o LaplaceHypersingularOperator.cpp
${OBJECTDIR}/Matrix.o: Matrix.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Matrix.o Matrix.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Matrix.o Matrix.cpp
${OBJECTDIR}/Mesh.o: Mesh.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Mesh.o Mesh.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Mesh.o Mesh.cpp
${OBJECTDIR}/PotentialsLaplace.o: PotentialsLaplace.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/PotentialsLaplace.o PotentialsLaplace.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/PotentialsLaplace.o PotentialsLaplace.cpp
${OBJECTDIR}/RepresentationFormula.o: RepresentationFormula.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormula.o RepresentationFormula.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormula.o RepresentationFormula.cpp
${OBJECTDIR}/RepresentationFormulaLaplace.o: RepresentationFormulaLaplace.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormulaLaplace.o RepresentationFormulaLaplace.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/RepresentationFormulaLaplace.o RepresentationFormulaLaplace.cpp
${OBJECTDIR}/SparseMatrix.o: SparseMatrix.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SparseMatrix.o SparseMatrix.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SparseMatrix.o SparseMatrix.cpp
${OBJECTDIR}/SurfaceMesh3D.o: SurfaceMesh3D.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SurfaceMesh3D.o SurfaceMesh3D.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/SurfaceMesh3D.o SurfaceMesh3D.cpp
${OBJECTDIR}/Vector.o: Vector.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Vector.o Vector.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/Vector.o Vector.cpp
${OBJECTDIR}/heatdtn.o: heatdtn.cpp
mkdir -p ${OBJECTDIR}
${RM} "$@.d"
$(COMPILE.cc) -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/heatdtn.o heatdtn.cpp
rm -f "$@.d"
${COMPILELINE} -fPIC -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/heatdtn.o heatdtn.cpp
clean:
${RM} -rf build/heatdtn_lib
${RM} -rf dist/heatdtn_lib
rm -rf build
rm -rf dist
help:
@echo "This makefile supports the following targets:"
......
File mode changed from 100644 to 100755
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