Reducing the search window used to find the max in the ADC samples. Needed because...
[u/mrichter/AliRoot.git] / PHOS / Makefile
CommitLineData
f17e1fe1 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
84d4333f 4
958d9d26 5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
f17e1fe1 8
9ifndef PACKCXXFLAGS
10 PACKCXXFLAGS = $(CXXFLAGS)
11endif
12
13ALICEINC = -I.
14
15### define include dir for local case and par case
16
d8c66d16 17ifneq ($(STEERBase_INCLUDE),)
18 ALICEINC += -I../$(STEERBase_INCLUDE)
19endif
f17e1fe1 20
21# only if no par file was loaded before
22ifeq ($(ALICEINC),-I.)
23 ifneq ($(ALICE_ROOT),)
24 ALICEINC += -I$(ALICE_ROOT)/include
25 endif
26endif
27
28CXXFLAGS += $(ALICEINC) -g
29
30SRCS += G__$(PACKAGE).cxx
31OBJS = $(SRCS:.cxx=.o)
32
33lib$(PACKAGE).so: $(OBJS)
34 @echo "Linking" $@ ...
35 @/bin/rm -f $@
d86acb69 36ifeq ($(PLATFORM),macosx)
37# We need to make both the .dylib and the .so
38 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
39ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
40ifeq ($(MACOSX_MINOR),4)
41 ln -sf $@ $(subst .$(DllSuf),.so,$@)
f17e1fe1 42else
d86acb69 43 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
44 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
45endif
46endif
47else
48ifeq ($(PLATFORM),win32)
49 bindexplib $* $^ > $*.def
50 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
51 $(OutPutOpt)$(EVENTLIB)
52 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
53 $(OutPutOpt)$@
54else
55 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
56endif
f17e1fe1 57endif
58 @chmod a+x $@
59 @echo "done"
60
61%.o: %.cxx %.h
62 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
63
64clean:
65 @rm -f $(OBJS) *.so G__$(PACKAGE).*
66
67G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
68 @echo "Generating dictionaries ..." $(ALICEINC)
69 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
70