# Makefile for class MyProgress. # shell: make -f Makefile4MyProgress # include Makefile.arch from /root/test/ include Makefile.arch #------------------------------------------------------------------------------ MYO = MyProgress.$(ObjSuf) MyProgressDict.$(ObjSuf) MYS = MyProgress.$(SrcSuf) MyProgressDict.$(SrcSuf) MYSO = libMyProgress.$(DllSuf) OBJS = $(MYO) PROGRAMS = $(MYSO) #------------------------------------------------------------------------------ .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) all: $(PROGRAMS) $(MYSO): $(MYO) 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 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(EXPLLINKLIBS) $(OutPutOpt)$@ endif endif endif clean: @rm -f $(OBJS) core .SUFFIXES: .$(SrcSuf) ### MyProgress.$(ObjSuf): MyProgress.h MyProgressDict.$(SrcSuf): MyProgress.h MyProgressLinkDef.h @echo "Generating dictionary $@..." @rootcint -f $@ -c $^ .$(SrcSuf).$(ObjSuf): $(CXX) $(CXXFLAGS) -c $<