X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FMakefile;h=8945fb97a73b3a2df3ddd4bd018c1367c2a425c1;hb=4f23c932b55e2b9f5d99d5af0771c2c1d5098b96;hp=8b410bc5892b5ead25452dd2f69e93952153a0a9;hpb=c5970876aa1047d632315a5a60a8218c25ffba13;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/Makefile b/STEER/Makefile index 8b410bc5892..8945fb97a73 100644 --- a/STEER/Makefile +++ b/STEER/Makefile @@ -1,73 +1,29 @@ -############################### STEER Makefile ################################ +PACKAGE = invalid-only-for-proof -# Include machine specific definitions +include $(ROOTSYS)/test/Makefile.arch +include lib$(PACKAGE).pkg -include $(ALICE_ROOT)/conf/GeneralDef -include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) +SRCS += G__$(PACKAGE).cxx +OBJS = $(SRCS:.cxx=.o) -PACKAGE = STEER +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" -# C++ sources +%.o: %.cxx %.h + $(CXX) $(CXXFLAGS) -c $< -o $@ -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 +clean: + @rm -f $(OBJS) *.so G__$(PACKAGE).* +G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) + @echo "Generating dictionary ..." + rootcint -f $@ -c $(ALICEINC) $^ -# C++ Headers - -HDRS = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h - -# Library dictionary - -DICT = STEERCint.cxx -DICTH = $(DICT:.cxx=.h) -DICTO = $(DICT:.cxx=.o) - -# FORTRAN Objectrs - -FOBJS = $(FSRCS:.f=.o) - -# C Objects - -COBJS = $(CSRCS:.c=.o) - -# C++ Objects - -OBJS = $(SRCS:.cxx=.o) $(DICTO) - -# C++ compilation flags - -CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ - -# FORTRAN compilation flags - -FFLAGS = $(FOPT) - -##### TARGETS ##### - -# Target - -SLIBRARY = $(ALICE_ROOT)/lib/libSTEER.$(SL) -ALIBRARY = $(ALICE_ROOT)/lib/libSTEER.a - -default: headers $(SLIBRARY) - -$(ALICE_ROOT)/lib/libSTEER.$(SL): $(OBJS) - -$(DICT): $(HDRS) - -depend: $(SRCS) - -HEADERS = $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h) - -TOCLEAN = $(OBJS) *Cint.cxx *Cint.h - -############################### General Macros ################################ - -include $(ALICE_ROOT)/conf/GeneralMacros - -############################ Dependencies ##################################### - --include Make-depend