-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 1.78 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
43
44
45
46
47
OBJECTS=TransducingLayer.o Matrix.o CharacteristicMatrix.o HomogeneousCharacteristicMatrix.o LaserBeam.o CapSimulation.o HomogeneousCharacteristicMatrix.o CapMaterialInterface.o ImplantedDiamond.o ThreadedCapSimulationRunner.o TrimFileVacancyConcentrationCalculator.o DamageModelInterface.o DamageModelFactory.o
MODELS=OliveroDamageModel.o LagomarsinoDamageModel.o UndamagedDiamondModel.o PreviousDamagedDiamondModel.o IndependentExponentialModel.o
CPPFLAGS=-O3 -Wall -Winvalid-pch
.PHONY: all
all: cap-sim FitCapData PrintModelOutput
cap-sim: main.cpp $(OBJECTS) $(MODELS)
g++ $(CPPFLAGS) $^ -o $@ -include stdafx.h
FitCapData: FitCapData.cpp $(OBJECTS) $(MODELS)
g++ $(CPPFLAGS) -I/opt/local/include `gsl-config --libs` $^ -o $@ -include stdafx.h
PrintModelOutput: PrintModelOutput.cpp DamageModelInterface.o DamageModelFactory.o $(MODELS)
g++ $(CPPFLAGS) $^ -o $@ -include stdafx.h
CapSimulation.o: CharacteristicMatrix.h HomogeneousCharacteristicMatrix.h DefaultCapMaterial.h LaserBeam.h TransducingLayer.h CapMaterialInterface.h Exception.h
CharacteristicMatrix.o: Matrix.h
HomogeneousCharacteristicMatrix.o: CharacteristicMatrix.h Matrix.h
ImplantedDiamond.o: CapMaterialInterface.h TrimFileVacancyConcentrationCalculator.h TransducingLayer.h
CapMaterialInterface.o: TransducingLayer.h
DamageModelFactory.o: DamageModelInterface.h $(subst .o,.h,$(MODELS))
%Model.o: DamageModelInterface.h
%.o: %.cpp %.h stdafx.h.gch
g++ $(CPPFLAGS) -include stdafx.h -c $< -o $@
stdafx.h.gch: stdafx.h
g++ $(CPPFLAGS) -c $< -o $@
.PHONY: clean
clean:
@-rm *~
@-rm *.o
@-rm cap-sim
@-rm stdafx.h.gch
@cd test && make clean
@-rm \#*\#
.PHONY: test check
test check:
@cd test && make
@cppcheck --enable=all -i Stephanie-ErAs -i test . > /dev/null
.PHONY: env
env:
emacs ./*.cpp ./*.h ./Makefile ./.gitignore