00001 #######################################################################
00002 #
00003 # Makefile for HepMCAnalysis shared library to run at CERN and DESY
00004 #
00005 # pathes (variables) and objects are set in setup script and config.mk
00006 #
00007 #
00008 #
00009 #######################################################################
00010
00011 SHELL = /bin/sh
00012
00013 include ../../config.mk
00014
00015
00016 LHAPDF_LIBS = $(LHAPDFdir)/lib/liblhapdf.so
00017 LHAPDF_INCLUDES = $(LHAPDFdir)/include/LHAPDF/
00018
00019 #################################
00020
00021 EXAMPLES = lhapdf_test1
00022
00023 # Create an executable linked to HepMC, CLHEP ...
00024
00025 all: $(EXAMPLES)
00026
00027 lhapdf_test1: $(LHAPDF_LIBS)
00028 @mkdir -p ../../$(BINDIR)
00029 $(CXX) $(CXXFLAGS) \
00030 -I$(LHAPDFdir)/include/LHAPDF \
00031 lhapdf_test1.f -o lhapdf_test1.exe \
00032 -L$(LHAPDFdir)/lib -llhapdf -llhapdf_dummy\
00033 $(LINK_LIBS)
00034 @ln -fs examples/pythia8/lhapdf_test1.exe ../../$(BINDIR)/lhapdf_test1.exe
00035
00036
00037 # Clean up: remove executables and *.o files
00038
00039 clean:
00040 rm -f *.exe *.o ../../$(BINDIR)/lhapdf*.exe
00041
00042 # Fresh: remove executables, *.o and outdated files.
00043
00044 fresh:
00045 rm -f *.exe *.o *.root *.dat ../../$(BINDIR)/lhapdf*.exe