]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/Makefile
The method LocalInit() may be implemented to call locally (on the client)
[u/mrichter/AliRoot.git] / STEER / Makefile
index 698abb5740d9cbc6fd1e8589979550d097f8e2b6..c617cc4c8874256f6fcd13153d1aac9973b5a98f 100644 (file)
@@ -3,7 +3,11 @@ PACKAGE = invalid-only-for-proof
 include $(ROOTSYS)/test/Makefile.arch
 include lib$(PACKAGE).pkg
 
-SRCS         += dict.cxx
+ifndef PACKCXXFLAGS
+PACKCXXFLAGS = $(CXXFLAGS)
+endif
+
+SRCS         += G__$(PACKAGE).cxx
 OBJS          = $(SRCS:.cxx=.o)
 
 lib$(PACKAGE).so: $(OBJS)
@@ -12,19 +16,18 @@ lib$(PACKAGE).so: $(OBJS)
 ifeq ($(PLATFORM),macosx)
        @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
 else
-       @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $@
+       @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
 endif
        @chmod a+x $@
        @echo "done"
 
 %.o:    %.cxx %.h
-       $(CXX) $(CXXFLAGS) -c $< -o $@
+       $(CXX) $(PACKCXXFLAGS) -c $< -o $@
 
 clean:
-       @rm -f $(OBJS) core *~ *.so dict.*
+       @rm -f $(OBJS) *.so G__$(PACKAGE).*
 
-dict.cxx dict.h: $(HDRS) $(DHDR)
+G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
        @echo "Generating dictionary ..."
-       @[ -f dict ] || rm -f $@
-       rootcint -f $@ -c $(ALICEINC) $^
+       rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^