# Makefile for compiling GEANT simulation on Linux based systems. TOP_DIR=/Users/elton/scratch/momres SOURCES=$(TOP_DIR)/fieldr.F $(TOP_DIR)/hmomres.F $(TOP_DIR)/more.F $(TOP_DIR)/myhbook.F LIBDIR=$(CERN_ROOT)/lib GRAPH=/usr/lib LIBS=$(LIBDIR)/libgeant321.a $(LIBDIR)/libpawlib.a $(LIBDIR)/libgraflib.a \ $(LIBDIR)/libgrafX11.a $(LIBDIR)/liblapack3.a $(LIBDIR)/libblas.a \ $(LIBDIR)/libpacklib.a $(LIBDIR)/libmathlib.a -lX11 \ -L/usr/X11R6/lib -ldl momres: $(SOURCES) $(TOP_DIR)/momres_main.F @if [ -n "${CERN_ROOT}" ]; then \ g77 $(SOURCES) $(TOP_DIR)/momres_main.F -o momres.exe $(LIBS); \ else \ echo ERROR: CERN_ROOT environment variable is not defined.; \ fi;