SOLARIS_GTK4_DAQ/Makefile
2023-01-23 14:44:27 -05:00

33 lines
922 B
Makefile

CC = g++
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
CAENLIBS = -lCAEN_FELib
ROOTLIBS = `root-config --cflags --glibs`
GTK4LIBS =`pkg-config --cflags --libs gtk4`
CURLLIBS = -lcurl
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)
test_indep : test_indep.cpp
$(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
test : test.cpp ClassDigitizer2Gen.o influxdb.o
$(CC) $(COPTS) $(OBJS) -o test test.cpp $(CAENLIBS) $(CURLLIBS)
ClassDigitizer2Gen.o : ClassDigitizer2Gen.cpp ClassDigitizer2Gen.h Event.h
$(CC) $(COPTS) -c ClassDigitizer2Gen.cpp $(CAENLIBS)
influxdb.o : influxdb.cpp influxdb.h
$(CC) $(COPTS) -c influxdb.cpp $(CURLLIBS)