-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile.transport
52 lines (40 loc) · 906 Bytes
/
makefile.transport
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
IDIR =../include
ODIR=obj
#LDIR =../lib
CC=mpic++
CFLAGS=-I$(IDIR)
#CFLAGS +=-I$(LDIR)
CFLAGS +=-Wall# Turn on all warning notifications
CFLAGS +=-std=c++0x # Using lastest C++ standards
LDFLAGS=-lm# Link the math library
LDFLAGS +=-larmadillo # Link the armadillo linear algebra library
_DEPS = \
Graphene.h \
MoS2.h \
Material.h \
Parameters.h \
CentralRegionEdgeContact.h \
Lead.h \
DeviceEdgeContact.h \
FixedChargeProfile.h \
ChargeProfile.h \
PotentialProfile.h \
OneDimRange.h \
EnergyRange.h \
ChargeSolver.h \
PoissonSolver.h \
SelfConsistentSolver.h \
TransportSolver.h \
Output.h \
Utils.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = $(_DEPS:.h=.o)
_OBJ += transport.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.cpp $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
transport: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~