CC = g++ LD = g++ OPT += -pg CCFLAGS = $(OPT) -g -Wall -fPIC INCLUDES = $(shell root-config --cflags) -I/data/qft++/include LIBS = -L/data/qft++/lib LDFLAGS = $(OPT) SOFLAGS = -shared ROOTLIBS = $(shell root-config --libs) ROOTGLIBS = $(shell root-config --glibs) EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) -lEG TARGET = libAmpHel.so all: $(TARGET) DalitzPlotFor3Particle SRCS = FullAmp Intensity Resonance Particle QNCooking OBJS = $(patsubst %, %.o, $(SRCS)) DICTS = $(patsubst %, %Dict.o, $(SRCS)) OBJS += $(DICTS) $(TARGET): $(OBJS) @echo " [LD] $@" @$(LD) $(SOFLAGS) $(LDFLAGS) $(LIBS) -lqft++ $(EXPLLINKLIBS) $^ -o $@ DalitzPlotFor3Particle: DalitzPlotFor3Particle.o @echo " [LD] $@" @$(LD) -o DalitzPlotFor3Particle $(LIBS) -lqft++ -L. -lAmpHel $(EXPLLINKLIBS) $(INCLUDES) $^ -o $@ DalitzPlotFor3Particle.o: @echo " [LD] $@" @$(LD) -c DalitzPlotFor3Particle.cc $(LIBS) -lqft++ -L. -lAmpHel $(EXPLLINKLIBS) $(INCLUDES) $^ -o $@ # ---------------------------------------------------------------------- .cc.o: @echo " [CC] $@" @$(CC) $(CCFLAGS) $(INCLUDES) -c -o $@ $< %Dict.cc: %.h %LinkDef.h @echo " [ROOTCINT] $@" @rootcint -f $@ -c $^ # ---------------------------------------------------------------------- clean: @echo " [CLEAN]" rm -f *.o realclean: clean @echo " [REALCLEAN]" rm -f $(TARGET) testMain distclean: realclean @echo " [DISTCLEAN]" rm -f *~