CC = g++ FF = g77 #FLAGS = -ansi -pedantic -Wall -g -fpic FLAGS = -ansi -pedantic -Wall -O3 -fpic F2CFLAG = -lg2c # enter your LHAPDFv[23] here #LHAPDFDIR = #LHAPDFDIR = /export/pc/lib LHAPDFDIR = ../ WRAPPERDIR=. LHAPDFLIB = -lLHAPDF WRAPPEROBJ=$(WRAPPERDIR)/LHAPDFWrap.o $(WRAPPERDIR)/LHAPDFfw.o LIBS = $(WRAPPEROBJ) -L$(LHAPDFDIR) $(LHAPDFLIB) all: test LHAPDFWrap.o: LHAPDFWrap.cc LHAPDFWrap.h $(CC) -c $(FLAGS) LHAPDFWrap.cc LHAPDFfw.o: LHAPDFfw.f $(FF) -c LHAPDFfw.f test.o: test.cc $(CC) -c $(FLAGS) test.cc test: test.o LHAPDFWrap.o LHAPDFfw.o $(CC) -o test $(FLAGS) $(F2CFLAG) test.o $(LIBS) clean: -rm -f *.o *~ *.grid test