add Makefile_test
This commit is contained in:
parent
a66033d3d8
commit
a54b2921f2
34
Makefile_test
Executable file
34
Makefile_test
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
########################################################################
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
|
||||||
|
CC = g++
|
||||||
|
|
||||||
|
COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
|
||||||
|
|
||||||
|
CAENLIBS = -lCAENDigitizer
|
||||||
|
|
||||||
|
ROOTLIBS = `root-config --cflags --glibs`
|
||||||
|
|
||||||
|
OBJS = ClassDigitizer.o
|
||||||
|
|
||||||
|
ALL = test test_indep
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
|
||||||
|
all : $(ALL)
|
||||||
|
|
||||||
|
clean :
|
||||||
|
/bin/rm -f $(OBJS) $(ALL)
|
||||||
|
|
||||||
|
ClassDigitizer.o : ClassDigitizer.cpp ClassDigitizer.h RegisterAddress.h macro.h ClassData.h
|
||||||
|
$(CC) $(COPTS) -c ClassDigitizer.cpp
|
||||||
|
|
||||||
|
test : test.cpp ClassDigitizer.o
|
||||||
|
@echo "--------- making test"
|
||||||
|
$(CC) $(COPTS) -o test test.cpp ClassDigitizer.o $(CAENLIBS) $(ROOTLIBS)
|
||||||
|
|
||||||
|
test_indep : test_indep.cpp RegisterAddress.h macro.h
|
||||||
|
@echo "--------- making test_indep"
|
||||||
|
$(CC) $(COPTS) -o test_indep test_indep.cpp $(CAENLIBS)
|
Loading…
Reference in New Issue
Block a user