00001 #######################################################################
00002 #
00003 # Makefile for HepMCAnalysisTest shared library to run at CERN and DESY
00004 #
00005 # pathes (variables) and objects are set in setup script and config.mk
00006 #
00007 # ap
00008 #
00009 #######################################################################
00010
00011 SHELL = /bin/sh
00012
00013 include ../config.mk
00014
00015 CXX = g++
00016 ## libraries for compiling
00017
00018 HepMCanlslibs=${MYCLASS_PATH}/lib
00019 #################################
00020
00021 EXAMPLES = fresh analyse \
00022
00023 # Create an executable linked to HepMC, CLHEP ...
00024
00025 all: $(EXAMPLES)
00026
00027 analyse:
00028 @mkdir -p ../$(BINDIR)
00029 $(CXX) $(CXXFLAGS) \
00030 -I$(HepMCanlsdir)/include \
00031 $(ROOTCFLAGS) \
00032 analysis.cc -o analysis.exe \
00033 -L$(HepMCanlslibs) -lHepMCAnalysis
00034 @ln -fs ../analyse/analysis.exe ../$(BINDIR)/analysis.exe
00035
00036 # Clean up: remove executables and *.o files
00037
00038 clean:
00039 rm -f *.exe *.o ../$(BINDIR)/analysis*.exe
00040
00041 # Fresh: remove executables, *.o and outdated files.
00042
00043 fresh:
00044 rm -f *.exe *.o *.root *.cmnd ../$(BINDIR)/analysis*.exe