2023-04-11 14:16:22 -04:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
CC = g++
|
|
|
|
|
2023-05-23 14:52:23 -04:00
|
|
|
#COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
|
2023-05-25 18:50:42 -04:00
|
|
|
COPTS = -fPIC -DLINUX -g -O2 -Wall -std=c++17 -lpthread
|
2023-04-11 14:16:22 -04:00
|
|
|
|
|
|
|
CAENLIBS = -lCAENDigitizer
|
|
|
|
|
|
|
|
ROOTLIBS = `root-config --cflags --glibs`
|
|
|
|
|
2023-06-14 16:32:49 -04:00
|
|
|
OBJS = ClassDigitizer.o MultiBuilder.o
|
2023-04-11 14:16:22 -04:00
|
|
|
|
2023-08-16 14:16:02 -04:00
|
|
|
ALL = test test_indep DataGenerator EventBuilder DataReaderScript
|
2023-04-11 14:16:22 -04:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
all : $(ALL)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
/bin/rm -f $(OBJS) $(ALL)
|
|
|
|
|
2023-06-14 15:20:15 -04:00
|
|
|
MultiBuilder.o : MultiBuilder.cpp MultiBuilder.h
|
|
|
|
$(CC) $(COPTS) -c MultiBuilder.cpp
|
|
|
|
|
2023-04-11 14:16:22 -04:00
|
|
|
ClassDigitizer.o : ClassDigitizer.cpp ClassDigitizer.h RegisterAddress.h macro.h ClassData.h
|
|
|
|
$(CC) $(COPTS) -c ClassDigitizer.cpp
|
|
|
|
|
2023-06-14 16:32:49 -04:00
|
|
|
test : test.cpp ClassDigitizer.o
|
2023-04-11 14:16:22 -04:00
|
|
|
@echo "--------- making test"
|
2023-06-14 16:32:49 -04:00
|
|
|
$(CC) $(COPTS) -o test test.cpp ClassDigitizer.o $(CAENLIBS) $(ROOTLIBS)
|
2023-04-11 14:16:22 -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-05-17 17:05:27 -04:00
|
|
|
|
2023-06-14 16:32:49 -04:00
|
|
|
DataGenerator : DataGenerator.cpp ClassDigitizer.o
|
2023-05-26 13:12:00 -04:00
|
|
|
@echo "--------- making DataGenerator"
|
2023-06-14 16:32:49 -04:00
|
|
|
$(CC) $(COPTS) -o DataGenerator DataGenerator.cpp ClassDigitizer.o $(CAENLIBS)
|
2023-06-14 15:20:15 -04:00
|
|
|
|
2023-06-19 12:48:17 -04:00
|
|
|
DataReaderScript : DataReaderScript.cpp ClassData.h MultiBuilder.o
|
|
|
|
@echo "--------- making DataReaderScript"
|
|
|
|
$(CC) $(COPTS) -o DataReaderScript DataReaderScript.cpp ClassData.h MultiBuilder.o $(CAENLIBS)
|
|
|
|
|
2023-08-16 14:16:02 -04:00
|
|
|
EventBuilder : EventBuilder.cpp ClassData.h MultiBuilder.o
|
|
|
|
@echo "--------- making EventBuilder"
|
|
|
|
$(CC) $(COPTS) -o EventBuilder EventBuilder.cpp MultiBuilder.o $(CAENLIBS) $(ROOTLIBS)
|