2022-08-03 19:00:41 -04:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
CC = g++
|
|
|
|
|
2022-08-04 17:27:33 -04:00
|
|
|
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
|
2022-08-03 19:00:41 -04:00
|
|
|
|
2022-08-04 17:27:33 -04:00
|
|
|
CAENLIBS = -lCAENDigitizer
|
2022-08-03 19:00:41 -04:00
|
|
|
|
|
|
|
ROOTLIBS = `root-config --cflags --glibs`
|
|
|
|
|
2022-11-01 18:38:01 -04:00
|
|
|
OBJS = startStopDialog.o programSetting.o triggerSummary.o registerSetting.o channelSettingPSD.o channelSettingPHA.o boardSetting.o ClassDigitizer.o FSUDAQ.o
|
2022-08-04 17:27:33 -04:00
|
|
|
|
2022-08-03 19:00:41 -04:00
|
|
|
#########################################################################
|
|
|
|
|
2022-10-31 21:53:29 -04:00
|
|
|
all : ../test ../FSUDAQ ../test_indep ../Analysis/EventBuilder
|
2022-08-03 19:00:41 -04:00
|
|
|
|
2022-08-04 17:27:33 -04:00
|
|
|
clean :
|
2022-10-21 18:36:42 -04:00
|
|
|
/bin/rm -f $(OBJS) test FSUDAQ test_indep EventBuilder FSUDAQDict.cxx *.pcm
|
2022-08-05 18:15:50 -04:00
|
|
|
|
2022-08-09 16:02:45 -04:00
|
|
|
ClassDigitizer.o : ClassDigitizer.cpp ClassDigitizer.h RegisterAddress.h macro.h ClassData.h
|
|
|
|
$(CC) $(COPTS) -c ClassDigitizer.cpp
|
2022-08-04 17:27:33 -04:00
|
|
|
|
2022-10-31 21:53:29 -04:00
|
|
|
../test : test.cpp ClassDigitizer.o
|
2022-08-06 01:38:01 -04:00
|
|
|
@echo "--------- making test"
|
2022-10-31 21:26:10 -04:00
|
|
|
$(CC) $(COPTS) -o ../test test.cpp ClassDigitizer.o $(CAENLIBS) $(ROOTLIBS)
|
2022-08-03 19:00:41 -04:00
|
|
|
|
2022-10-31 21:53:29 -04:00
|
|
|
../Analysis/EventBuilder : EventBuilder.cpp ClassData.h
|
2022-10-19 18:14:58 -04:00
|
|
|
@echo "--------- making EventBuilder"
|
2022-10-31 21:26:10 -04:00
|
|
|
$(CC) $(COPTS) -o ../Analysis/EventBuilder EventBuilder.cpp $(ROOTLIBS)
|
2022-10-19 18:14:58 -04:00
|
|
|
|
2022-10-31 21:53:29 -04:00
|
|
|
../test_indep : test_indep.cpp RegisterAddress.h macro.h
|
2022-08-23 13:43:05 -04:00
|
|
|
@echo "--------- making test_indep"
|
2022-10-31 21:26:10 -04:00
|
|
|
$(CC) $(COPTS) -o ../test_indep test_indep.cpp $(CAENLIBS)
|
2022-08-17 16:08:49 -04:00
|
|
|
|
2022-10-31 21:53:29 -04:00
|
|
|
../FSUDAQ : FSUDAQDict.cxx $(OBJS) ClassData.h
|
2022-08-23 13:43:05 -04:00
|
|
|
@echo "----------- creating FSUDAQ"
|
2022-10-31 21:26:10 -04:00
|
|
|
$(CC) $(COPTS) FSUDAQDict.cxx $(OBJS) -o ../FSUDAQ $(CAENLIBS) $(ROOTLIBS)
|
|
|
|
@ln -s -f DAQ/FSUDAQDict_rdict.pcm ../.
|
2022-08-03 19:00:41 -04:00
|
|
|
|
2022-08-04 17:27:33 -04:00
|
|
|
FSUDAQDict.cxx : FSUDAQ.h FSUDAQLinkDef.h
|
|
|
|
@echo "----------- creating pcm and cxx for root"
|
2022-10-31 21:26:10 -04:00
|
|
|
@rootcling -f FSUDAQDict.cxx -c FSUDAQ.h -p FSUDAQLinkDef.h
|
2022-08-03 19:00:41 -04:00
|
|
|
|
2022-08-04 17:27:33 -04:00
|
|
|
FSUDAQ.o : FSUDAQ.h FSUDAQ.cpp FSUDAQDict.cxx
|
|
|
|
@echo "----------- creating FSUDAQ.o"
|
2022-10-03 14:17:15 -04:00
|
|
|
$(CC) $(COPTS) -c FSUDAQ.cpp ClassDigitizer.cpp $(ROOTLIBS)
|
2022-08-04 17:27:33 -04:00
|
|
|
|
2022-08-23 13:43:05 -04:00
|
|
|
boardSetting.o : boardSetting.h boardSetting.cpp
|
|
|
|
@echo "----------- creating boardSetting.o"
|
|
|
|
$(CC) $(COPTS) -c boardSetting.cpp $(ROOTLIBS)
|
2022-08-04 17:27:33 -04:00
|
|
|
|
2022-09-23 17:43:30 -04:00
|
|
|
channelSettingPHA.o : channelSettingPHA.h channelSettingPHA.cpp
|
|
|
|
@echo "----------- creating channelSettingPHA.o"
|
|
|
|
$(CC) $(COPTS) -c channelSettingPHA.cpp $(ROOTLIBS)
|
2022-08-23 13:43:05 -04:00
|
|
|
|
2022-09-26 12:45:52 -04:00
|
|
|
channelSettingPSD.o : channelSettingPSD.h channelSettingPSD.cpp
|
|
|
|
@echo "----------- creating channelSettingPSD.o"
|
|
|
|
$(CC) $(COPTS) -c channelSettingPSD.cpp $(ROOTLIBS)
|
|
|
|
|
2022-10-04 16:54:01 -04:00
|
|
|
registerSetting.o : registerSetting.h registerSetting.cpp
|
|
|
|
@echo "----------- creating registerSetting.o"
|
|
|
|
$(CC) $(COPTS) -c registerSetting.cpp $(ROOTLIBS)
|
|
|
|
|
2022-10-05 14:28:55 -04:00
|
|
|
triggerSummary.o : triggerSummary.h triggerSummary.cpp
|
|
|
|
@echo "----------- creating triggerSummary.o"
|
|
|
|
$(CC) $(COPTS) -c triggerSummary.cpp $(ROOTLIBS)
|
|
|
|
|
2022-10-14 18:27:31 -04:00
|
|
|
programSetting.o : programSetting.h programSetting.cpp
|
|
|
|
@echo "----------- creating programSetting.o"
|
|
|
|
$(CC) $(COPTS) -c programSetting.cpp $(ROOTLIBS)
|
|
|
|
|
2022-11-01 18:38:01 -04:00
|
|
|
startStopDialog.o: startStopDialog.h startStopDialog.cpp
|
|
|
|
@echo "----------- creating startStopDialog.o"
|
|
|
|
$(CC) $(COPTS) -c startStopDialog.cpp $(ROOTLIBS)
|
2022-08-23 13:43:05 -04:00
|
|
|
|
2022-08-03 19:00:41 -04:00
|
|
|
#CutsCreator: $(OBJS3) src/CutsCreator.c
|
|
|
|
# g++ -std=c++17 -pthread src/CutsCreator.c -o CutsCreator $(ROOTLIBS)
|
|
|
|
|
2022-08-09 16:02:45 -04:00
|
|
|
#BoxScore : src/BoxScore.c Class/ClassDigitizer.h Class/FileIO.h Class/GenericPlane.h Class/HelioTarget.h Class/IsoDetect.h Class/HelioArray.h Class/MCPClass.h
|
2022-08-03 19:00:41 -04:00
|
|
|
# g++ -std=c++17 -pthread src/BoxScore.c -o BoxScore $(DEPLIBS) $(ROOTLIBS)
|
|
|
|
|