00001 ####################################################################### 00002 # 00003 # Makefile for HepMCAnalysis shared library to run at CERN and DESY 00004 # 00005 # paths (variables) and objects are set in setup script and config.mk 00006 # 00007 # Wolfgang Ehrenfeld 1.4.2009 00008 # 00009 ####################################################################### 00010 00011 SHELL = /bin/sh 00012 00013 include ../../config.mk 00014 00015 ################################# 00016 00017 EXAMPLES = reader 00018 00019 # Create an executable linked to HepMC, CLHEP ... 00020 00021 all: $(EXAMPLES) 00022 00023 reader: $(MYCLASS_PATH)/lib/libHepMCAnalysis.so reader.cc 00024 @mkdir -p ../../$(BINDIR) 00025 $(CXX) $(CXXFLAGS) -I$(MYCLASS_PATH)/include $(ROOTCFLAGS) reader.cc -o reader.exe \ 00026 $(HepMClib) -L$(MYCLASS_PATH)/lib -lHepMCAnalysis -L$(CLHEPdir)/lib -lCLHEP 00027 @ln -fs ../examples/hepmcreader/reader.exe ../../$(BINDIR)/reader.exe 00028 00029 # Clean up: remove executables and *.o files 00030 clean: 00031 rm -f *.exe *.o ../../$(BINDIR)/reader.exe 00032 00033 # Fresh: remove executables, *.o and outdated files. 00034 fresh: clean 00035 rm -f *.root