Rev 5 | Blame | Compare with Previous | Last modification | View Log | RSS feed
ROOTINC=$(shell root-config --incdir )
ROOTLIB=$(shell root-config --libs )
INC=-I. -I$(ROOTINC)
LIBS=$(ROOTLIB) -L./ -lm
LIBS1=$(shell root-config --libs --glibs )
SRC = .
INC1 = -I. -I../lib -I/usr/include
DBG =
CFLAGS = $(DBG) $(INC1) -Wall
TARGET1 = daq
FILES1 = $(SRC)/daq.C
VMELIB = libf9vme.a
SHLIB = $(VMELIB) -lusb -lz
OBJ_FILES = VMEModule.o CAENV965.o libxxusb.o wienvmeusb_dll.o VmUsbStack.o
all: vme $(TARGET1)
libxxusb.o: libxxusb.cpp libxxusb.h
.cpp.o:
$(CXX) -c -g $<
ar r $(VMELIB) $@
.C.o:
$(CXX) -c -g $<
ar r $(VMELIB) $@
.cc.o:
$(CXX) -c -g $<
ar r $(VMELIB) $@
.c.o:
$(CXX) -c -g $<
ar r $(VMELIB) $@
vme: $(OBJ_FILES)
wienvme_dll.o: wienvme_dll.c
VMEModule.o: VMEModule.hh VMEModule.cc
CAENV965.o: CAENV965.h CAENV965_DEF.h CAENV965.c
$(TARGET1): $(FILES1) vme
$(CXX) -DMAIN $(FILES1) $(CFLAGS) -o $(TARGET1) $(SHLIB) -lstdc++
libdaq.so: $(FILES1)
@echo "Generating dictionary Dict.C..."
rootcint -f Dict.C -c $(INC) $(CPPFLAGS) daq.h LinkDef.h
$(CXX) -DG__DICTIONARY $(CPPFLAGS) $(INC) -fPIC -g -Wall $(FILES1) Dict.C -L. $(SHLIB) -shared -o libdaq.so
clean:
rm Dict.C libdaq.so $(TARGET1)
tgz:
tar czvf vme.tgz Makefile *.c *.h *.C *.cc *.hh