-############################### 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)
+ifndef PACKCXXFLAGS
+PACKCXXFLAGS = $(CXXFLAGS)
+endif
-PACKAGE = STEER
+SRCS += G__$(PACKAGE).cxx
+OBJS = $(SRCS:.cxx=.o)
-# C++ sources
+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"
-SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx GParticle.cxx \
- AliDigit.cxx AliHit.cxx AliPoints.cxx \
- AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \
- AliLego.cxx AliModule.cxx
+%.o: %.cxx %.h
+ $(CXX) $(PACKCXXFLAGS) -c $< -o $@
+clean:
+ @rm -f $(OBJS) *.so G__$(PACKAGE).*
-# C++ Headers
+G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
+ @echo "Generating dictionary ..."
+ rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
-HDRS = $(SRCS:.cxx=.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