Subversion Repositories f9daq

Rev

Go to most recent revision | Details | 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
TARGET = petreco
23
 
24
FILES  = $(SRC)/readdata.C $(SRC)/PETProjDataMgr.C
25
 
26
LIBFILE = libfmfpetreco.a
27
 
28
 
29
 
30
OBJ_FILES = $(SRC)/readdata.o
31
 
32
$(TARGET): $(FILES)
33
	$(CXX) $(INC) -DMAIN $(FILES) $(CFLAGS) -o $(TARGET) $(LIBS) -lstdc++
34
 
35
 
36
 
37
.C.o:
38
	$(CXX) $(INC) -c $<
39
	ar r $(LIBFILE) $@
40
 
41
.c.o:
42
	$(CXX) -c $<
43
	ar r $(LIBFILE) $@
44
 
45
 
46
xpath2: $(SRC)/xpath2.c
47
	$(CXX) -o xpath2 `xml2-config --cflags` $(SRC)/xpath2.c `xml2-config --libs`
48
 
49
 
50
 
51
clean:
52
	rm Dict.C  $(OBJ_FILES) $(TARGET)  $(LIBFILE)
53
 
54
 
55
tgz:
56
	tar czvf fmfpet.tgz Makefile README $(SRC)/*.C $(SRC)/*.h $(SRC)/*.c $(SRC)/*.cxx $(SRC)/*.sh *.xml *.dat *.map *.root