-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
47 lines (32 loc) · 1.61 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
MULTICORE=true
CC = g++ -std=c++14 -O3 -fopenmp
OBJ1 = dec.o simplicial_complex.o utilities.o geometry.o discrete_exterior_calculus.o finite_element_exterior_calculus.o
HEADER = src/core/simplicial_complex.h src/core/definitions.h src/core/core_utils.h src/core/geometry.h src/core/discrete_exterior_calculus.h src/core/finite_element_exterior_calculus.h lib/Eigen
ifeq ($(MULTICORE), true)
CFLAGS = -c -Wall -Isrc/core -Ilib -DMULTICORE
else
CFLAGS = -c -Wall -Isrc/core -Ilib
endif
DOXYGEN = doxygen
doxyfile = decagt.inc
all: doc dec
doc: $(doxyfile)
$(DOXYGEN) $(doxyfile)
dec: $(OBJ1)
$(CC) $(OBJ1) -o $@
dec.o: dec.cpp $(HEADER)
$(CC) $(CFLAGS) $< -o $@
simplicial_complex.o: src/core/simplicial_complex.cc src/core/definitions.h src/core/core_utils.h
$(CC) $(CFLAGS) $< -o $@
utilities.o: src/core/core_utils.cc src/core/definitions.h src/core/core_utils.h
$(CC) $(CFLAGS) $< -o $@
geometry.o: src/core/geometry.cc src/core/definitions.h src/core/core_utils.h src/core/simplicial_complex.h src/core/geometry.h
$(CC) $(CFLAGS) $< -o $@
discrete_exterior_calculus.o: src/core/discrete_exterior_calculus.cc src/core/definitions.h src/core/core_utils.h src/core/simplicial_complex.h src/core/geometry.h src/core/discrete_exterior_calculus.h
$(CC) $(CFLAGS) $< -o $@
finite_element_exterior_calculus.o: src/core/finite_element_exterior_calculus.cc src/core/definitions.h src/core/core_utils.h src/core/simplicial_complex.h src/core/geometry.h src/core/discrete_exterior_calculus.h src/core/finite_element_exterior_calculus.h
$(CC) $(CFLAGS) $< -o $@
clean:
rm -rf *.o
cleanall:
rm -rf test[0-9] *.o doc/latex/ doc/html/