2022-12-02 17:33:02 -05:00
|
|
|
CC = g++
|
|
|
|
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
|
|
|
|
CAENLIBS = -lCAEN_FELib
|
2023-01-23 13:56:12 -05:00
|
|
|
ROOTLIBS = `root-config --cflags --glibs`
|
2022-12-02 17:33:02 -05:00
|
|
|
|
2023-01-18 18:10:31 -05:00
|
|
|
all: test test_indep ClassDigitizer2Gen.o influxdb.o
|
2023-01-09 18:22:33 -05:00
|
|
|
|
2022-12-02 17:33:02 -05:00
|
|
|
test_indep : test_indep.cpp
|
|
|
|
$(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
|
|
|
|
|
2023-01-18 18:10:31 -05:00
|
|
|
test : test.cpp ClassDigitizer2Gen.o influxdb.o
|
|
|
|
$(CC) $(COPTS) ClassDigitizer2Gen.o influxdb.o -o test test.cpp $(CAENLIBS) -lcurl
|
2022-12-02 17:33:02 -05:00
|
|
|
|
2023-01-11 16:14:12 -05:00
|
|
|
ClassDigitizer2Gen.o : ClassDigitizer2Gen.cpp ClassDigitizer2Gen.h Event.h
|
2022-12-02 17:33:02 -05:00
|
|
|
$(CC) $(COPTS) -c ClassDigitizer2Gen.cpp $(CAENLIBS)
|
|
|
|
|
2023-01-18 18:10:31 -05:00
|
|
|
influxdb.o : influxdb.cpp influxdb.h
|
|
|
|
$(CC) $(COPTS) -c influxdb.cpp -lcurl
|