FSUDAQ/Makefile

63 lines
2.1 KiB
Makefile
Raw Normal View History

2022-08-03 19:00:41 -04:00
########################################################################
#
#
#########################################################################
CC = g++
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
2022-08-03 19:00:41 -04:00
CAENLIBS = -lCAENDigitizer
2022-08-03 19:00:41 -04:00
ROOTLIBS = `root-config --cflags --glibs`
2022-08-09 16:02:45 -04:00
OBJS = ClassDigitizer.o DigitizerPHA.o DigitizerPSD.o FSUDAQ.o
2022-08-03 19:00:41 -04:00
#########################################################################
2022-08-17 16:08:49 -04:00
all : test FSUDAQ test_indep
2022-08-03 19:00:41 -04:00
clean :
/bin/rm -f $(OBJS) test FSUDAQ FSUDAQDict.cxx *.pcm
2022-08-09 16:02:45 -04:00
#ClassData.o : ClassData.h macro.h
# $(CC) $(COPTS) -c ClassData.h -o ClassData.o
2022-08-09 16:02:45 -04:00
ClassDigitizer.o : ClassDigitizer.cpp ClassDigitizer.h RegisterAddress.h macro.h ClassData.h
$(CC) $(COPTS) -c ClassDigitizer.cpp
2022-08-09 16:02:45 -04:00
DigitizerPHA.o : DigitizerPHA.cpp DigitizerPHA.h ClassDigitizer.o
$(CC) $(COPTS) -c DigitizerPHA.cpp
2022-08-09 16:02:45 -04:00
DigitizerPSD.o : DigitizerPSD.cpp DigitizerPSD.h ClassDigitizer.o
$(CC) $(COPTS) -c DigitizerPSD.cpp
2022-08-09 16:02:45 -04:00
test : test.cpp ClassDigitizer.o DigitizerPHA.o DigitizerPSD.o
2022-08-06 01:38:01 -04:00
@echo "--------- making test"
2022-08-09 16:02:45 -04:00
$(CC) $(COPTS) -o test test.cpp ClassDigitizer.o DigitizerPHA.o DigitizerPSD.o $(CAENLIBS)
2022-08-03 19:00:41 -04:00
2022-08-17 16:08:49 -04:00
test_indep : test_indep.cpp RegisterAddress.h macro.h
$(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
2022-08-03 19:00:41 -04:00
FSUDAQDict.cxx : FSUDAQ.h FSUDAQLinkDef.h
@echo "----------- creating pcm and cxx for root"
2022-08-04 18:02:03 -04:00
# @rootcling -f FSUDAQDict.cxx -c FSUDAQ.h -p FSUDAQLinkDef.h $(CAENLIBS)
@rootcling -f FSUDAQDict.cxx -c FSUDAQ.h -p FSUDAQLinkDef.h
2022-08-03 19:00:41 -04:00
FSUDAQ.o : FSUDAQ.h FSUDAQ.cpp FSUDAQDict.cxx
@echo "----------- creating FSUDAQ.o"
2022-08-09 16:02:45 -04:00
$(CC) $(COPTS) -c FSUDAQ.cpp ClassDigitizer.cpp DigitizerPHA.cpp DigitizerPSD.cpp $(ROOTLIBS)
FSUDAQ : FSUDAQDict.cxx $(OBJS)
@echo "----------- creating FSUDAQ"
$(CC) $(COPTS) FSUDAQDict.cxx $(OBJS) -o FSUDAQ $(CAENLIBS) $(ROOTLIBS)
2022-08-03 19:00:41 -04:00
#CutsCreator: $(OBJS3) src/CutsCreator.c
# g++ -std=c++17 -pthread src/CutsCreator.c -o CutsCreator $(ROOTLIBS)
2022-08-09 16:02:45 -04:00
#BoxScore : src/BoxScore.c Class/ClassDigitizer.h Class/FileIO.h Class/GenericPlane.h Class/HelioTarget.h Class/IsoDetect.h Class/HelioArray.h Class/MCPClass.h
2022-08-03 19:00:41 -04:00
# g++ -std=c++17 -pthread src/BoxScore.c -o BoxScore $(DEPLIBS) $(ROOTLIBS)