Subversion Repositories f9daq

Rev

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

Rev Author Line No. Line
2 f9daq 1
 
2
ROOTINC=$(shell root-config  --incdir )
3
ROOTLIB=$(shell root-config  --libs )
4
ROOTGLIBS=$(shell root-config  --libs  --glibs )
5
 
6
LIBS=$(ROOTLIB) -L./ -lm
7
 
8
 
9
XMLCFLAGS =$(shell xml2-config --cflags  )
10
XMLLIBS   =$(shell xml2-config --libs )
11
 
12
 
13
INC=-I.  -I$(ROOTINC) $(XMLCFLAGS)
14
LIBS=$(ROOTGLIBS)  $(XMLLIBS)
15
 
16
SRC     = .
17
INC1     = -I. -I../lib -I/usr/include
18
DBG     =
19
CFLAGS  = $(DBG) $(INC1) -Wall -g
20
 
21
 
22
 
4 f9daq 23
 
24
BIN= bin
25
LIB=lib
26
 
27
TARGET = $(BIN)/petreco
2 f9daq 28
FILES  = $(SRC)/readdata.C $(SRC)/PETProjDataMgr.C
29
 
4 f9daq 30
LIBFILE = $(LIB)/libfmfpetreco.a
2 f9daq 31
 
32
 
33
 
34
OBJ_FILES = $(SRC)/readdata.o
35
 
36
$(TARGET): $(FILES)
37
	$(CXX) $(INC) -DMAIN $(FILES) $(CFLAGS) -o $(TARGET) $(LIBS) -lstdc++
38
 
39
 
40
 
41
.C.o:
42
	$(CXX) $(INC) -c $<
43
	ar r $(LIBFILE) $@
44
 
45
.c.o:
46
	$(CXX) -c $<
47
	ar r $(LIBFILE) $@
48
 
49
 
50
xpath2: $(SRC)/xpath2.c
4 f9daq 51
	$(CXX) -o $(BIN)/xpath2 `xml2-config --cflags` $(SRC)/xpath2.c `xml2-config --libs`
2 f9daq 52
 
53
 
54
 
55
clean:
56
	rm Dict.C  $(OBJ_FILES) $(TARGET)  $(LIBFILE)
57
 
58
 
59
tgz:
60
	tar czvf fmfpet.tgz Makefile README $(SRC)/*.C $(SRC)/*.h $(SRC)/*.c $(SRC)/*.cxx $(SRC)/*.sh *.xml *.dat *.map *.root