# Makefile for the ROOT test programs. # This Makefile shows nicely how to compile and link applications # using the ROOT libraries on all supported platforms. # # Copyright (c) 2000 Rene Brun and Fons Rademakers # # Author: Fons Rademakers, 29/2/2000 RC := root-config ifeq ($(shell which $(RC) 2>&1 | sed -ne "s@.*/$(RC)@$(RC)@p"),$(RC)) MKARCH := $(wildcard $(shell $(RC) --etcdir)/Makefile.arch) RCONFIG := $(wildcard $(shell $(RC) --incdir)/RConfigure.h) endif ifneq ($(MKARCH),) include $(MKARCH) else ifeq ($(ROOTSYS),) ROOTSYS = .. endif include $(ROOTSYS)/etc/Makefile.arch endif -include ../MyConfig.mk #------------------------------------------------------------------------------ HDRS = RooTest.h eventdict.h SRCS = RooTest.C eventdict.C OBJS = RooTest.o eventdict.o PROGRAM = event.sl #------------------------------------------------------------------------------ #.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) all: $(PROGRAM) $(PROGRAM): $(OBJS) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif endif endif @echo "$@ done" clean: @rm -f $(OBJS) core *dict.* ###.SUFFIXES: .$(SrcSuf) RooTest.o: RooTest.h eventdict.C: RooTest.h @echo "Generating dictionary ..." @rootcint eventdict.C -c RooTest.h ###