2024-04-11 19:29:23 -04:00
|
|
|
CC=g++
|
2024-07-04 18:30:21 -04:00
|
|
|
CFLAG= -O2
|
2024-07-03 14:09:23 -04:00
|
|
|
#CFLAG= -g -O0
|
2024-04-11 19:29:23 -04:00
|
|
|
ROOTFLAG=`root-config --cflags --glibs`
|
2024-07-31 15:02:12 -04:00
|
|
|
|
|
|
|
OBJS = ClassDigitizer.o ClassInfluxDB.o
|
|
|
|
|
2024-04-11 19:29:23 -04:00
|
|
|
all: EventBuilder
|
|
|
|
|
|
|
|
EventBuilder: EventBuilder.cpp SolReader.h ../Hit.h
|
|
|
|
$(CC) $(CFLAG) EventBuilder.cpp -o EventBuilder ${ROOTFLAG}
|
|
|
|
|
2024-07-31 15:02:12 -04:00
|
|
|
ClassDigitizer.o : ../ClassDigitizer.cpp ../ClassDigitizer.h ../RegisterAddress.h ../macro.h ../ClassData.h
|
|
|
|
$(CC) $(COPTS) -c ../ClassDigitizer.cpp
|
|
|
|
|
|
|
|
ClassInfluxDB.o : ../ClassInfluxDB.cpp ../ClassInfluxDB.h
|
|
|
|
$(CC) $(COPTS) -c ../ClassInfluxDB.cpp -lcurl
|
|
|
|
|
|
|
|
test: test.cpp ../ClassDigitizer2Gen.o ../ClassInfluxDB.o
|
|
|
|
$(CC) $(CFLAG) test.cpp ../ClassDigitizer2Gen.o ../ClassInfluxDB.o -o test -lcurl -lCAEN_FELib -lX11
|
2024-04-11 19:29:23 -04:00
|
|
|
|
|
|
|
clean:
|
2024-07-31 15:02:12 -04:00
|
|
|
-rm EventBuilder test
|