-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (36 loc) · 1.25 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
49
50
51
52
53
54
# This is the Makefile for the anisotropic codes
CCPP = g++
CC = gcc
INCLUDE = .
LIBS = .
CFLAGS = -O5
CPPFLAGS = -O5
# bcc map removed, as well as nnpair.H drawfig.H
TARGET = make-slab
INCLUDES = cell.H dcomp.H drawfig.H elastic.H integrate.H io.H matrix.H nnpair.H slab.H
all: ${TARGET}
make-slab: make-slab.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
anisotropic: anisotropic.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
anisotropic-xyz: anisotropic-xyz.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
anisotropic-xyz-ref: anisotropic-xyz-ref.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
anisotropic-xyz-ref-outputstrain: anisotropic-xyz-ref-outputstrain.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
anisotropic-xyz-strain: anisotropic-xyz-strain.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
map: map.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
map-edge: map-edge.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
bcc: bcc.C ${INCLUDES}
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) $< -o $@ -lm
.SUFFIXES: .C .c .o
.c.o:
$(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@ -lm
.C.o:
$(CCPP) $(CPPFLAGS) -I$(INCLUDE) -c $< -o $@ -lm
clean:
rm -f *.o *.a