12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #========================================
- # Makefile for MpdRoot Analysis team
- # by V. Kireyeu and A. Mudrokh
- # v2017-04-18
- #
- # This Makefile uses for analysis script
- # compilation via the system compiler.
- # Please do not forget to run config.sh
- # script from MpdRoot build directory!!!
- # =======================================
- # Used compiler
- CC=g++
- # Makefile will proceed all files with .cc suffix
- # SOURCES=$(wildcard src/*.cc)
- # Output executable has the same name without suffix
- # OBJECTS=$(patsubst src/%.cc,%, $(SOURCES))
- #SOURCES=$(wildcard *.c)
- SOURCES=get_dca.c
- OBJECTS=$(patsubst %.c,%, $(SOURCES))
- ROOTCONFIG := root-config
- # Path to the MpdRoot installation
- MPDROOTDIR := /lustre/nyx/hades/user/parfenov/Soft/MPDROOT/mpdroot_dev_260719/
- FAIRINCDIR := $(shell $(ROOTCONFIG) --prefix)/include/
- FAIRROOTDIR := /lustre/nyx/hades/user/parfenov/Soft/FAIRROOT/fairroot_18_04
- CFLAGS := $(shell $(ROOTCONFIG) --cflags)
- CFLAGS += -I${FAIRROOTDIR}/install/include
- CFLAGS += -I$(FAIRROOTDIR)/base/event
- CFLAGS += -I$(FAIRROOTDIR)/base/source
- CFLAGS += -I$(FAIRROOTDIR)/base/steer
- CFLAGS += -I$(FAIRROOTDIR)/base/field
- CFLAGS += -I$(FAIRROOTDIR)/base/sim
- CFLAGS += -I$(FAIRROOTDIR)/geobase
- CFLAGS += -I$(MPDROOTDIR)/tpc
- CFLAGS += -I$(MPDROOTDIR)/kalman
- CFLAGS += -I$(MPDROOTDIR)/lhetrack
- CFLAGS += -I$(MPDROOTDIR)/mcstack
- CFLAGS += -I$(MPDROOTDIR)/strawendcap
- CFLAGS += -I$(MPDROOTDIR)/etof
- CFLAGS += -I$(MPDROOTDIR)/tof
- CFLAGS += -I$(MPDROOTDIR)/sft
- CFLAGS += -I$(MPDROOTDIR)/sts
- CFLAGS += -I$(MPDROOTDIR)/mpddst
- CFLAGS += -I$(MPDROOTDIR)/mpdbase
- CFLAGS += -I$(MPDROOTDIR)/mpdpid
- CFLAGS += -I$(FAIRROOTDIR)/parbase
- LDFLAGS += $(shell $(ROOTCONFIG) --glibs)
- LDFLAGS += -L$(MPDROOTDIR)/build/lib
- LDFLAGS += -lMCStack -lPassive -lMpdField
- LDFLAGS += -lMpdBase -lMpdDst -lMpdGeneralGenerator
- LDFLAGS += -lKalman -lCluster -ltpc -lTof -lEtof -lStrawendcap
- LDFLAGS += -lZdc -lFfd -lCpc -lStrawECT -lLHETrack -lSts -lMpdPid -g -O2
- all: $(OBJECTS)
- # $(OBJECTS): % : src/%.cc
- $(OBJECTS): % : %.c
- $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
- clean:
- rm -vf $(OBJECTS)
|