include Makefile.arch #---------------------------------------------------------------------------- HDRS = _Collider_small.h SRCS = _Collider_small.$(SrcSuf) \ dict.$(SrcSuf) OBJS = _Collider_small.$(ObjSuf) \ dict.$(ObjSuf) PROGRAM = _Events.$(DllSuf) #----------------------------------------------------------------------------- .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) all: $(PROGRAM) $(PROGRAM): $(OBJS) ifeq ($(ARCH),aix) /usr/ibmcxx/bin/makeC++SharedLib $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(ARCH),aix5) /usr/vacpp/bin/makeC++SharedLib $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS) $^ $(OutPutOpt) $@ ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) else $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \ $(OutPutOpt) $(subst .$(DllSuf),.so,$@) endif else ifeq ($(PLATFORM),win32) bindexplib $* $^ > $*.def lib -nologo -MACHINE:IX86 $^ -def:$*.def \ $(OutPutOpt)$(EVENTLIB) $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ $(OutPutOpt)$@ $(MT_DLL) else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) endif endif endif endif @rm -f *.o dict.C dict.h @echo "done" clean: @rm -f $(OBJS) core *.dylib *.so dict.C dict.h ### _Collider_small.$(ObjSuf): _Collider_small.h dict.C: _Collider_small.h @echo "Generating dictionary..." @rootcint dict.C -c _Collider_small.h