-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (25 loc) · 857 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
ODIR = obj
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
CXX = g++
CXXFLAGS = -fPIC -O3
LD = g++
LDFLAGS = -O3
FFLAGS = -fPIC $(ROOTCFLAGS) -O3
CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS) $(SYSLIBS)
GLIBS = $(ROOTGLIBS) $(SYSLIBS)
_HYDROO = DecayChannel.o ParticlePDG2.o DatabasePDG2.o UKUtility.o gen.o \
particle.o main.o
# VPATH = src:../UKW
HYDROO = $(patsubst %,$(ODIR)/%,$(_HYDROO))
TARGET = calc
#------------------------------------------------------------------------------
$(TARGET): $(HYDROO)
$(LD) $(LDFLAGS) $^ -o $@ $(LIBS)
@echo "$@ done"
clean:
@rm -f $(ODIR)/*.o $(TARGET)
$(ODIR)/%.o: src/%.cpp src/const.h
$(CXX) $(CXXFLAGS) -c $< -o $@