-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
46 lines (30 loc) · 1.54 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all: XrdName2NameDCP4RUCIO.so
# make sure xrootd-devel, xrootd-server-devel and xrootd-client-devel rpms are installed for
# the needed xrootd header files.
ifeq ($(strip $(XRD_INC)),)
XRD_INC=/usr/include/xrootd
endif
ifeq ($(strip $(XRD_LIB)),)
XRD_LIB=/usr/lib64
endif
FLAGS=-D_REENTRANT -D_THREAD_SAFE -Wno-deprecated -std=c++0x
HEADERS=rucioGetMetaLink.hh pfn2cache.hh cacheQuery.hh
SOURCES=XrdOucName2NameDCP4RUCIO.cc XrdOssStatInfoDCP.cc rucioGetMetaLink.cc pfn2cache.cc cacheQuery.cc
OBJECTS=XrdOucName2NameDCP4RUCIO.o XrdOssStatInfoDCP.o rucioGetMetaLink.o pfn2cache.o cacheQuery.o
DEBUG=-g
XrdName2NameDCP4RUCIO.so: $(OBJECTS) Makefile
g++ ${DEBUG} -shared -fPIC -o $@ $(OBJECTS) -L${XRD_LIB} -L${XRD_LIB}/XrdCl -ldl -lssl -lcurl -lXrdCl -lXrdPosix -lstdc++
XrdOucName2NameDCP4RUCIO.o: XrdOucName2NameDCP4RUCIO.cc ${HEADERS} Makefile
g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
XrdOssStatInfoDCP.o: XrdOssStatInfoDCP.cc ${HEADERS} Makefile
g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
rucioGetMetaLink.o: rucioGetMetaLink.cc ${HEADERS} Makefile
g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
pfn2cache.o: pfn2cache.cc ${HEADERS} Makefile
g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
cacheQuery.o: cacheQuery.cc ${HEADERS} Makefile
g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
#checkPFCcinfo.o: checkPFCcinfo.cc ${HEADERS} Makefile
# g++ ${DEBUG} ${FLAGS} -fPIC -I ${XRD_INC} -I ${XRD_LIB} -c -o $@ $<
clean:
rm -vf *.{o,so}