-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 1.24 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
48
# -----------------------------------------------------------------------------
# Setup...
# -----------------------------------------------------------------------------
# List of executables...
EXC = t8_compress
# Include directories...
INCDIR += -I /home/lars/wrk/t8code/build/local/include -I /home/lars/wrk/t8code/t8code/src/t8_forest -I /home/lars/wrk/t8code/t8code/src/t8_cmesh
# Library directories...
LIBDIR += -L /home/lars/wrk/t8code/build/local/lib
# -----------------------------------------------------------------------------
# Set compiler flags...
# -----------------------------------------------------------------------------
# Set CC and CFLAGS...
CC = g++
CFLAGS = $(INCDIR) -W -Wall -pedantic -O3 -g -static
# Set LDFLAGS...
LDFLAGS = $(LIBDIR) -lt8 -lp4est -lsc -lm -lz
# -----------------------------------------------------------------------------
# Targets...
# -----------------------------------------------------------------------------
.PHONY : all
all: $(EXC)
rm -f *~
$(EXC): %: %.cxx
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
check: all
./t8_compress data/h2o.xyz 6 10e-6 100e-6
clean:
rm -rf $(EXC) *.o *~ forest*
cppcheck:
cppcheck --enable=all ./
indent:
indent -br -brf -brs -bfda -ce -cdw -lp -npcs -npsl *.cxx *.h