X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FMakefile;h=c617cc4c8874256f6fcd13153d1aac9973b5a98f;hb=ce7038a20200e4d9fe669bd8137824ed39b74471;hp=30f764d90a8d1ce4ad5040377c52e983f64d23ca;hpb=6a3d29f504b14409847b6af916c340afc0967c05;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/Makefile b/STEER/Makefile index 30f764d90a8..c617cc4c887 100644 --- a/STEER/Makefile +++ b/STEER/Makefile @@ -1,90 +1,33 @@ -############################### STEER Makefile ################################ - -# Include machine specific definitions - -include $(ALICE_ROOT)/conf/GeneralDef -include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) - -PACKAGE = STEER - -# C++ sources - -SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx \ - AliDigit.cxx AliHit.cxx AliPoints.cxx \ - AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \ - AliLego.cxx AliModule.cxx AliDigitNew.cxx \ - AliGeometry.cxx AliRecPoint.cxx AliSegmentation.cxx \ - AliHitMap.cxx AliMagFC.cxx AliMagFCM.cxx \ - AliMagFDM.cxx AliLegoGenerator.cxx AliLegoGeneratorXYZ.cxx\ - AliLegoGeneratorPhiZ.cxx AliLegoGeneratorEta.cxx \ - AliRndm.cxx \ - AliKalmanTrack.cxx AliCluster.cxx AliTracker.cxx\ - AliMCQA.cxx AliPDG.cxx AliDebugVolume.cxx \ - AliGenEventHeader.cxx AliStack.cxx AliConfig.cxx \ - AliRunDigitizer.cxx AliDigitizer.cxx -# C++ Headers - -HDRS = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h \ - $(ROOTSYS)/include/TRandom.h STEERLinkDef.h - -# Library dictionary - -DICT = STEERCint.cxx -DICTH = $(DICT:.cxx=.h) -DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) - -# FORTRAN Objectrs - -FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) - -# C Objects - -COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) - -# C++ Objects - -OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) - -# C++ compilation flags - -CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ - -# FORTRAN compilation flags - -FFLAGS = $(FOPT) - -##### TARGETS ##### - -# Target - -SLIBRARY = $(LIBDIR)/libSTEER.$(SL) -ALIBRARY = $(LIBDIR)/lib/libSTEER.a - -default: $(SLIBRARY) - -$(LIBDIR)/libSTEER.$(SL): $(OBJS) - -$(DICT): $(HDRS) - -depend: $(SRCS) - -HEADERS = $(SRCS:.cxx=.h) AliPDG.h AliConst.h AliCallf77.h AliMCProcess.h AliConfig.h AliGenEventHeader.h - -TOCLEAN = $(OBJS) *Cint.cxx *Cint.h - -CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) - -############################### General Macros ################################ - -include $(ALICE_ROOT)/conf/GeneralMacros - -############################ Dependencies ##################################### - --include tgt_$(ALICE_TARGET)/Make-depend - - - - - - +PACKAGE = invalid-only-for-proof + +include $(ROOTSYS)/test/Makefile.arch +include lib$(PACKAGE).pkg + +ifndef PACKCXXFLAGS +PACKCXXFLAGS = $(CXXFLAGS) +endif + +SRCS += G__$(PACKAGE).cxx +OBJS = $(SRCS:.cxx=.o) + +lib$(PACKAGE).so: $(OBJS) + @echo "Linking" $@ ... + @/bin/rm -f $@ +ifeq ($(PLATFORM),macosx) + @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@ +else + @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@ +endif + @chmod a+x $@ + @echo "done" + +%.o: %.cxx %.h + $(CXX) $(PACKCXXFLAGS) -c $< -o $@ + +clean: + @rm -f $(OBJS) *.so G__$(PACKAGE).* + +G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) + @echo "Generating dictionary ..." + rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^