2023-11-16 19:24:16 -05:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
CC = g++
|
|
|
|
|
2024-07-17 15:30:27 -04:00
|
|
|
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
|
|
|
|
# COPTS = -fPIC -DLINUX -g -O0 -Wall -std=c++17 -lpthread
|
2023-11-16 19:24:16 -05:00
|
|
|
|
2024-03-22 14:25:51 -04:00
|
|
|
CAENLIBS = -lCAENDigitizer -lCAENVME
|
2023-11-16 19:24:16 -05:00
|
|
|
|
|
|
|
ROOTLIBS = `root-config --cflags --glibs`
|
|
|
|
|
2024-03-01 16:58:27 -05:00
|
|
|
OBJS = ClassDigitizer.o MultiBuilder.o ClassInfluxDB.o
|
2023-11-16 19:24:16 -05:00
|
|
|
|
2024-06-18 13:45:08 -04:00
|
|
|
ALL = test EventBuilder DataReader DumpFSU2ROOT SettingsExplorer FSU2CAEN
|
2023-11-16 19:24:16 -05:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
all : $(ALL)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
/bin/rm -f $(OBJS) $(ALL)
|
|
|
|
|
2024-01-12 19:12:37 -05:00
|
|
|
MultiBuilder.o : ../MultiBuilder.cpp ../MultiBuilder.h ../Hit.h
|
2023-11-16 19:24:16 -05:00
|
|
|
$(CC) $(COPTS) -c ../MultiBuilder.cpp
|
|
|
|
|
|
|
|
ClassDigitizer.o : ../ClassDigitizer.cpp ../ClassDigitizer.h ../RegisterAddress.h ../macro.h ../ClassData.h
|
|
|
|
$(CC) $(COPTS) -c ../ClassDigitizer.cpp
|
|
|
|
|
2024-03-01 16:58:27 -05:00
|
|
|
ClassInfluxDB.o : ../ClassInfluxDB.cpp ../ClassInfluxDB.h
|
|
|
|
$(CC) $(COPTS) -c ../ClassInfluxDB.cpp -lcurl
|
|
|
|
|
|
|
|
test : test.cpp ../ClassDigitizer.o ../MultiBuilder.o ../ClassInfluxDB.o
|
2023-11-16 19:24:16 -05:00
|
|
|
@echo "--------- making test"
|
2024-03-01 16:58:27 -05:00
|
|
|
$(CC) $(COPTS) -o test test.cpp ../ClassDigitizer.o ../MultiBuilder.o ../ClassInfluxDB.o $(CAENLIBS) $(ROOTLIBS) -lcurl
|
2023-11-16 19:24:16 -05:00
|
|
|
|
2024-03-12 17:11:04 -04:00
|
|
|
# test_indep : test_indep.cpp ../RegisterAddress.h ../macro.h
|
|
|
|
# @echo "--------- making test_indep"
|
|
|
|
# $(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
|
2023-11-16 19:24:16 -05:00
|
|
|
|
|
|
|
DataReader : DataReaderScript.cpp ../ClassData.h MultiBuilder.o
|
|
|
|
@echo "--------- making DataReader"
|
|
|
|
$(CC) $(COPTS) -o DataReader DataReaderScript.cpp ../ClassData.h MultiBuilder.o
|
|
|
|
|
2024-03-12 17:11:04 -04:00
|
|
|
EventBuilder : EventBuilder.cpp ../ClassData.h fsuReader.h ../Hit.h
|
2024-01-19 19:52:14 -05:00
|
|
|
@echo "--------- making EventBuilder"
|
|
|
|
$(CC) $(COPTS) -o EventBuilder EventBuilder.cpp $(ROOTLIBS)
|
2024-01-18 18:55:37 -05:00
|
|
|
|
2024-06-18 13:45:08 -04:00
|
|
|
FSU2CAEN : FSU2CAEN.cpp ../ClassData.h fsuReader.h ../Hit.h
|
|
|
|
@echo "--------- making FSU2CAEN"
|
|
|
|
$(CC) $(COPTS) -o FSU2CAEN FSU2CAEN.cpp
|
2024-01-12 19:12:37 -05:00
|
|
|
|
2023-11-16 19:24:16 -05:00
|
|
|
DumpFSU2ROOT : DumpFSU2ROOT.cpp ../ClassData.h MultiBuilder.o
|
|
|
|
@echo "--------- making DumpFSU2ROOT"
|
|
|
|
$(CC) $(COPTS) -o DumpFSU2ROOT DumpFSU2ROOT.cpp ../ClassData.h MultiBuilder.o $(ROOTLIBS)
|
2023-11-20 17:47:12 -05:00
|
|
|
|
|
|
|
SettingsExplorer : SettingsExplorer.cpp ../ClassDigitizer.o ../RegisterAddress.h
|
|
|
|
@echo "--------- making SettingsExplorer"
|
|
|
|
$(CC) $(COPTS) -o SettingsExplorer SettingsExplorer.cpp ../ClassDigitizer.o $(CAENLIBS)
|