-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
executable file
·35 lines (28 loc) · 1000 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
34
35
OBJDIR = $(GARFIELD_HOME)/Object
SRCDIR = $(GARFIELD_HOME)/Source
INCDIR = $(GARFIELD_HOME)/Include
HEEDDIR = $(GARFIELD_HOME)/Heed
LIBDIR = $(GARFIELD_HOME)/Library
# Compiler flags
CFLAGS = -Wall -Wextra -Wno-long-long \
`root-config --cflags` \
-O3 -fno-common -c \
-I$(INCDIR) -Iinclude \
-std=c++0x \
-fopenmp
# Debug flags
# CFLAGS += -g
LDFLAGS = `root-config --glibs` -lGeom -lgfortran -lm
LDFLAGS += -L$(LIBDIR) -lGarfield -std=c++0x -O3 -fopenmp
#LDFLAGS += -g
all: thgem_chargingup_openMP thgem_chargingup_norim
thgem_chargingup_openMP: src/thgem_chargingup_openMP.cpp
$(CXX) $(CFLAGS) src/thgem_chargingup_openMP.cpp
$(CXX) -o bin/thgem_chargingup_openMP thgem_chargingup_openMP.o $(LDFLAGS)
rm thgem_chargingup_openMP.o
thgem_chargingup_norim: src/thgem_chargingup_norim.cpp
$(CXX) $(CFLAGS) src/thgem_chargingup_norim.cpp
$(CXX) -o bin/thgem_chargingup_norim thgem_chargingup_norim.o $(LDFLAGS)
rm thgem_chargingup_norim.o
clean:
rm -rf bin/thgem_chargingup_*