DISTNAME = Convert ObjSuf = o SrcSuf = cxx HedSuf = h ExeSuf = DllSuf = so OutPutOpt = -o ROOTCFLAGS := $(shell root-config --cflags) # root 5.34 returns relative path? (not absolute) ROOTLIBS := $(shell root-config --libs) ROOTGLIBS := $(shell root-config --glibs) MAJOR = 0 MINOR = 1.1 LN = ln -sf MAKEDEP = rmkdepend # Linux with egcs CXX = g++ CC = gcc #CC = egcs CXXFLAGS = -g -Wall -DR__THREAD -fPIC -D_REENTRANT CXXFLAGS += $(ROOTCFLAGS) -I. -I$(ROOTSYS)/root/include LD = g++ LDFLAGS = -O SOFLAGS = -shared -Wl,-soname, LIBS = -L$(ROOTSYS)/root/lib $(ROOTLIBS) GLIBS = $(ROOTGLIBS) $(SYSLIBS) THREADLIBS = -lpthread -lThread LIBS += $(THREADLIBS) GLIBS += $(THREADLIBS) OTHERLIBS = all: ps_client fcal_client bcal_client st_client tof_client trig_client tagm_client tagh_client tpol_client trig_client_busy calib_client ccal_client ps_client.o: ps_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c ps_client.cxx $(ROOTCFLAGS) ps_client: ps_client.o $(CXX) -o ps_client ps_client.o $(ROOTGLIBS) $(LIBS) fcal_client.o: fcal_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c fcal_client.cxx $(ROOTCFLAGS) fcal_client: fcal_client.o $(CXX) -o fcal_client fcal_client.o $(ROOTGLIBS) $(LIBS) bcal_client.o: bcal_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c bcal_client.cxx $(ROOTCFLAGS) bcal_client: bcal_client.o $(CXX) -o bcal_client bcal_client.o $(ROOTGLIBS) $(LIBS) tof_client.o: tof_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c tof_client.cxx $(ROOTCFLAGS) tof_client: tof_client.o $(CXX) -o tof_client tof_client.o $(ROOTGLIBS) $(LIBS) st_client.o: st_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c st_client.cxx $(ROOTCFLAGS) st_client: st_client.o $(CXX) -o st_client st_client.o $(ROOTGLIBS) $(LIBS) tagm_client.o: tagm_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c tagm_client.cxx $(ROOTCFLAGS) tagm_client: tagm_client.o $(CXX) -o tagm_client tagm_client.o $(ROOTGLIBS) $(LIBS) tagh_client.o: tagh_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c tagh_client.cxx $(ROOTCFLAGS) tagh_client: tagh_client.o $(CXX) -o tagh_client tagh_client.o $(ROOTGLIBS) $(LIBS) tpol_client.o: tpol_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c tpol_client.cxx $(ROOTCFLAGS) tpol_client: tpol_client.o $(CXX) -o tpol_client tpol_client.o $(ROOTGLIBS) $(LIBS) trig_client.o: trig_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c trig_client.cxx $(ROOTCFLAGS) trig_client: trig_client.o $(CXX) -o trig_client trig_client.o $(ROOTGLIBS) $(LIBS) trig_client_busy.o: trig_client_busy.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c trig_client_busy.cxx $(ROOTCFLAGS) calib_client.o: calib_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c calib_client.cxx $(ROOTCFLAGS) trig_client_busy: trig_client_busy.o $(CXX) -o trig_client_busy trig_client_busy.o $(ROOTGLIBS) $(LIBS) calib_client: calib_client.o $(CXX) -o calib_client calib_client.o $(ROOTGLIBS) $(LIBS) ccal_client.o: ccal_client.cxx VMERemote.h $(CXX) $(CXXFLAGS) -c ccal_client.cxx $(ROOTCFLAGS) ccal_client: ccal_client.o $(CXX) -o ccal_client ccal_client.o $(ROOTGLIBS) $(LIBS) install: @cp -v ps_client $(DAQ_BIN) @cp -v fcal_client $(DAQ_BIN) @cp -v bcal_client $(DAQ_BIN) @cp -v st_client $(DAQ_BIN) @cp -v tagm_client $(DAQ_BIN) @cp -v tagh_client $(DAQ_BIN) @cp -v tof_client $(DAQ_BIN) @cp -v trig_client $(DAQ_BIN) @cp -v trig_client_busy $(DAQ_BIN) @cp -v calib_client $(DAQ_BIN) @cp -v ccal_client $(DAQ_BIN) clean: @rm -f $(OBJS) @rm -f *.o @rm ps_client @rm fcal_client @rm bcal_client @rm tof_client @rm st_client @rm tagm_client @rm tagh_client @rm trig_client @rm trig_client_busy @rm calib_client @rm ccal_client