Subversion Repositories f9daq

Rev

Rev 2 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


ROOTINC=$(shell root-config  --incdir ) 
ROOTLIB=$(shell root-config  --libs ) 
ROOTGLIBS=$(shell root-config  --libs  --glibs ) 

LIBS=$(ROOTLIB) -L./ -lm 


XMLCFLAGS =$(shell xml2-config --cflags  ) 
XMLLIBS   =$(shell xml2-config --libs ) 


INC=-I.  -I$(ROOTINC) $(XMLCFLAGS)
LIBS=$(ROOTGLIBS)  $(XMLLIBS)

SRC     = .
INC1     = -I. -I../lib -I/usr/include
DBG     = 
CFLAGS  = $(DBG) $(INC1) -Wall -g




BIN= bin
LIB=lib

TARGET = $(BIN)/petreco
FILES  = $(SRC)/readdata.C $(SRC)/PETProjDataMgr.C

LIBFILE = $(LIB)/libfmfpetreco.a



OBJ_FILES = $(SRC)/readdata.o

$(TARGET): $(FILES) 
        $(CXX) $(INC) -DMAIN $(FILES) $(CFLAGS) -o $(TARGET) $(LIBS) -lstdc++



.C.o:
        $(CXX) $(INC) -c $<
        ar r $(LIBFILE) $@

.c.o:
        $(CXX) -c $<
        ar r $(LIBFILE) $@


xpath2: $(SRC)/xpath2.c
        $(CXX) -o $(BIN)/xpath2 `xml2-config --cflags` $(SRC)/xpath2.c `xml2-config --libs`



clean:
        rm Dict.C  $(OBJ_FILES) $(TARGET)  $(LIBFILE)


tgz:
        tar czvf fmfpet.tgz Makefile README $(SRC)/*.C $(SRC)/*.h $(SRC)/*.c $(SRC)/*.cxx $(SRC)/*.sh *.xml *.dat *.map *.root