Rev 15 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
CC = gcc
INC=-I. -I$(ROOTINC)
LIBS=$(ROOTLIB) -L./ -lm
SRC = .
INC1 = -I. -I../lib -I/usr/include
DBG =
CFLAGS = $(DBG) $(INC) -fPIC -DLINUX -Wall
TARGET = daq
FILES = $(SRC)/daq.C
VMELIB = libf9vme.a
SHLIB = -lpcivme -lz
OBJ_FILES = PtsModule.o
all: pts
pts: PtsModule.c wienvme_dll.c
$(CXX) $(CFLAGS) PtsModule.c wienvme_dll.c $(SHLIB) -o pts
# cp sa02_ctrl ../bin
.cpp.o:
$(CXX) -c $(CFLAGS) $<
ar r $(VMELIB) $@
.C.o:
$(CXX) -c $(CFLAGS) $<
ar r $(VMELIB) $@
.cc.o:
$(CXX) -c $(CFLAGS) $<
ar r $(VMELIB) $@
.c.o:
$(CXX) -c $(CFLAGS) $<
ar r $(VMELIB) $@
vme: $(OBJ_FILES)
VMEModule.o: VMEModule.hh VMEModule.cc
CAENV965.o: CAENV965.h CAENV965_DEF.h CAENV965.c
$(TARGET): $(FILES) $(OBJ_FILES)
$(CXX) -DMAIN $(CFLAGS) $(FILES) $(OBJ_FILES) $(SHLIB) -o $(TARGET)
clean:
rm Dict.C libdaq.so $(TARGET1)
tgz:
tar czvf vme.tgz Makefile *.c *.h *.C *.cc *.hh