nextMessage removed from client
[u/mrichter/AliRoot.git] / SHUTTLE / DCSClient / Makefile
CommitLineData
eba76848 1
2include Makefile.arch
3
4
5CLASSES = AliDCSMessage.cxx AliDCSClient.cxx
6
7DICT = Dict.cxx
8
9HEADERS := $(patsubst %.$(SrcSuf),%.h,$(CLASSES))
10
11SRCS = $(CLASSES) $(DICT)
12
13INCLUDES := $(ALICE_ROOT)/include
14LIBDIR := $(shell root-config --libdir)
15SHARED = -shared
16
a038aa70 17CXXFLAGS += -I$(INCLUDES) -g
eba76848 18
19OBJS := $(patsubst %.$(SrcSuf),.obj/%.$(ObjSuf),$(SRCS))
20DEPS := $(patsubst .obj/%.$(ObjSuf),.dep/%.d,$(OBJS))
21
22
23.PHONY: all clean distclean dep
24
25all: $(DEP) AliDCSClient.so
26
27$(DICT): $(HEADERS) DCSClientLinkDef.h
28 rootcint -f $@ -c -I$(INCLUDES) $^
29
30
31
32AliDCSClient.so: $(OBJS)
33 $(LD) $(SHARED) $(LDFLAGS) $^ -L$(LIBDIR) $(LIBS) -o $@
34
35dep: $(DICT) $(DEPS)
36
37clean:
38 rm -rf Dict.h
39 rm -rf Dict.cxx
40 rm -rf AliDCSClient.so
41 rm -rf .dep
42 rm -rf .obj
43
44
45distclean: clean ;
46
47ifeq ($(filter %clean,$(MAKECMDGOALS)),)
48DEPS_MAGIC := $(shell mkdir .dep > /dev/null 2>&1 || :)
49endif
50ifeq ($(strip $(filter %clean,$(MAKECMDGOALS)) $(filter dep,$(MAKECMDGOALS))),)
51OBJS_MAGIC := $(shell mkdir .obj > /dev/null 2>&1 || :)
52-include $(DEPS)
53endif
54
55.dep/%.d: %.$(SrcSuf)
56 set -e; $(CXX) -MM $(CXXFLAGS) $< | \
57 awk '/\.o/ {print ".dep/$(*F).d .obj/"$$0} ! /\.o/ {print $$0}' > .dep/$(*F).d
58
59.obj/%.$(ObjSuf): %.$(SrcSuf)
60 $(CXX) $(CXXFLAGS) -c $< -o .obj/$(*F).o
61