2023-02-22 20:07:39 -05:00
|
|
|
CC = g++
|
2023-09-22 15:58:28 -04:00
|
|
|
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread -g
|
2023-02-22 20:07:39 -05:00
|
|
|
CAENLIBS = -lCAEN_FELib
|
|
|
|
CURLLIBS = -lcurl
|
|
|
|
|
|
|
|
OBJS= ClassDigitizer2Gen.o influxdb.o
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
################################################################
|
2023-03-10 14:42:29 -05:00
|
|
|
all : test windowID
|
2023-02-22 20:07:39 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
test : test.cpp ClassDigitizer2Gen.o influxdb.o
|
|
|
|
@echo "------- test"
|
|
|
|
$(CC) $(COPTS) $(OBJS) -o test test.cpp $(CAENLIBS) $(CURLLIBS)
|
|
|
|
#
|
2023-09-26 10:41:24 -04:00
|
|
|
ClassDigitizer2Gen.o : ClassDigitizer2Gen.cpp ClassDigitizer2Gen.h Hit.h DigiParameters.h
|
2023-02-22 20:07:39 -05:00
|
|
|
@echo "------- ClassDigitizer2Gen.o"
|
|
|
|
$(CC) $(COPTS) -c ClassDigitizer2Gen.cpp $(CAENLIBS)
|
|
|
|
#
|
|
|
|
influxdb.o : influxdb.cpp influxdb.h
|
|
|
|
@echo "------- influxdb.o"
|
|
|
|
$(CC) $(COPTS) -c influxdb.cpp $(CURLLIBS)
|
|
|
|
#
|
|
|
|
windowID : windowID.cpp
|
|
|
|
@echo "------- windowID"
|
|
|
|
${CC} ${COPTS} -o windowID windowID.cpp -lX11 -lpng
|
2023-02-23 16:08:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f $(ALL) $(OBJS)
|