forked from yukarpenko/vhlle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 887 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
CXX = g++
CXXFLAGS = -Wall -fPIC -O3
LD = g++
LDFLAGS = -O3
LIBS = $(SYSLIBS) -lgsl
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 $@