# # File: # Makefile # # Description: # Makefile for the JLAB extensions to the LINUXVME Controller API # # # $Date$ # $Rev$ # PROGRAM = TestBench EXESUF = cpp SRCSUF = cc SOURCES = $(wildcard *.$(SRCSUF)) OBJECTS = $(SOURCES:.$(SRCSUF)=.o) SO = libStandalone.so ifndef LINUXVME_LIB LINUXVME_LIB = ${CODA}/linuxvme/lib endif ifndef LINUXVME_INC LINUXVME_INC = ${CODA}/linuxvme/include endif INCSCCDB = -I/home/hdcdcops/ccdb/trunk/include/ \ -I/home/hdcdcops/ccdb/trunk/include/CCDB \ -I/usr/include/mysql -I/home/hdcdcops/ccdb/trunk/ccdb/include -I/home/hdcdcops/ccdb/trunk/ccdb/src/include -I/home/hdcdcops/ccdb/trunk/ccdb/src -I/home/hdcdcops/ccdb/trunk/ccdb/src/src -I/home/hdcdcops/ccdb/trunk/ccdb/include/SQLite -I/home/hdcdcops/ccdb/trunk/ccdb/src/include/SQLite LIBSCCDB = -L/home/hdcdcops/ccdb/trunk/ccdb/lib ROOTCFLAGS = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) ROOTGLIBS = $(shell root-config --glibs) CXX = g++ CFLAGS = -Wall -g -O2 -I${LINUXVME_INC} -I. -I../ -I../lib/ -I/usr/include \ -L${LINUXVME_LIB} -L../ -L../lib/ .$(SRCSUF).o: $(CXX) $(CFLAGS) $(INCSCCDB) -I$(LINUXVME_INC) $(ROOTCFLAGS) -fPIC -c $< all: rootdict $(PROGRAM) clean distclean: @rm -f $(OBJECTS) *~ ../lib/*.so ../bin/* rootdict: rootcint -f GUIDict.cxx -c -p -pthread $(INCSCCDB) -I$(LINUXVME_INC) TestBenchGUI.h LinkDef.h $(CXX) $(CFLAGS) $(INCSCCDB) -I$(LINUXVME_INC) $(ROOTCFLAGS) -fPIC -c TestBenchGUI.cxx $(CXX) $(CFLAGS) $(INCSCCDB) -I$(LINUXVME_INC) $(ROOTCFLAGS) -fPIC -c GUIDict.cxx $(PROGRAM): $(SO) $(CXX) $(CFLAGS) $(ROOTCFLAGS) $(ROOTGLIBS) $(ROOTLIBS) $(INCSCCDB) $(LIBSCCDB) $(+:%=../lib/%) -o $(@:%=../bin/coda_%) $(@:%=%.cpp) -lexpat -lrt -lccdb -ljvme -lfa125 -lti -lts -lsd -lctp $(SO): $(OBJECTS) $(CXX) -m32 -fsignaling-nans -g -shared $+ TestBenchGUI.o GUIDict.o -o $(@:%=../lib/%) .PHONY: all clean distclean