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`
|
2023-01-23 14:44:27 -05:00
|
|
|
GTK4LIBS =`pkg-config --cflags --libs gtk4`
|
|
|
|
CURLLIBS = -lcurl
|
2022-12-02 17:33:02 -05:00
|
|
|
|
2023-01-23 14:44:27 -05:00
|
|
|
OBJS = ClassDigitizer2Gen.o influxdb.o
|
|
|
|
|
|
|
|
ALL = SOLARISDAQ test test_indep
|
|
|
|
|
|
|
|
###############################################################
|
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
/bin/rm -f $(OBJS) $(ALL)
|
|
|
|
|
|
|
|
SOLARISDAQ : SOLARISDAQ.cpp $(OBJS)
|
|
|
|
$(CC) $(COPTS) $(OBJS) -o SOLARISDAQ SOLARISDAQ.cpp $(GTK4LIBS) $(CAENLIBS) $(CURLLIBS)
|
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
|
2023-01-23 14:44:27 -05:00
|
|
|
$(CC) $(COPTS) $(OBJS) -o test test.cpp $(CAENLIBS) $(CURLLIBS)
|
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
|
2023-01-23 14:44:27 -05:00
|
|
|
$(CC) $(COPTS) -c influxdb.cpp $(CURLLIBS)
|