-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 975 Bytes
/
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
OBJECTS=TransducingLayer.o Matrix.o CharacteristicMatrix.o HomogeneousCharacteristicMatrix.o LaserBeam.o CapSimulation.o HomogeneousCharacteristicMatrix.o CapMaterialInterface.o ThreadedCapSimulationRunner.o
CPPFLAGS=-O3 -Wall -Winvalid-pch
cap-sim: main.cpp $(OBJECTS)
g++ $(CPPFLAGS) $^ -o $@
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
%.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