-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
34 lines (25 loc) · 1014 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
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
CXX = g++
CXXFLAGS = -Wall -fPIC -O3
LD = g++
LDFLAGS = -O3
CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS) $(SYSLIBS)
vpath %.cpp src
objdir = obj
SRC = cll.cpp eos.cpp eo3.cpp eo1.cpp eoChiral.cpp eoCMF.cpp eoCMFe.cpp eoHadron.cpp eoAZH.cpp eoSmash.cpp trancoeff.cpp fld.cpp hdo.cpp s95p.cpp icurqmd.cpp ic.cpp ickw.cpp icPartUrqmd.cpp icPartSMASH.cpp main.cpp rmn.cpp cornelius.cpp \
icGlauber.cpp icGubser.cpp icGlissando.cpp icSuperMC.cpp icTrento.cpp icTrento3d.cpp vtk.cpp
OBJS = $(patsubst %.cpp,$(objdir)/%.o,$(SRC))
TARGET = hlle_visc
#------------------------------------------------------------------------------
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) $^ -o $@ $(LIBS)
@echo "$@ done"
clean:
@rm -f $(OBJS) $(TARGET)
$(OBJS): | $(objdir)
$(objdir):
@mkdir -p $(objdir)
obj/%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@