SOLARIS_GTK4_DAQ/Makefile

33 lines
922 B
Makefile
Raw Permalink Normal View History

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
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
test_indep : test_indep.cpp
$(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
test : test.cpp ClassDigitizer2Gen.o influxdb.o
2023-01-23 14:44:27 -05:00
$(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
2023-01-23 14:44:27 -05:00
$(CC) $(COPTS) -c influxdb.cpp $(CURLLIBS)