(file) Return to Makefile CVS log (file) (dir) Up to [HallC] / geant_gep

File: [HallC] / geant_gep / Makefile (download)
Revision: 1.3, Sun Feb 12 13:27:11 2006 UTC (18 years, 7 months ago) by brash
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -2 lines
*** empty log message ***

# Top level Geant FPP Makefile
# 
# Important Note:  Make sure that all of the include files
#                  from the ~/espace_lib and ~/espace_halla
#                  directories are copied into the ~/fpp_geant/src
#                  directory.

# Change this directory to point to your top level fpp geant directory.

export GEANT_FPP     = $(shell pwd)

##########################################################
export OSNAME       := $(shell uname)
export GEANT_SRC     = $(GEANT_FPP)/src
export GEANT_BIN     = $(GEANT_FPP)/bin

# define system-dependent compiler flags, libraries, etc.

ifeq ($(OSNAME),OSF1)
   export CFLAGS        = -taso
   export OPTIMIZE      =
   export RANGECHECK    =
   export FFLAGS_SYSDEP = -taso
   export STATIC        = -static

   export XLIB    = /usr/X11R6/lib
   export LIBS   = -L$(CERN)/$(CERN_LEVEL)/lib -lgeant321 -lpawlib \
         -lgraflib -lgrafX11 -lpacklib \
	 -lmathlib -lgrafX11  \
         -L$(XLIB) -lXm -lXt -lX11 -lm -lPW  
endif
ifeq ($(OSNAME),Linux)
   CERN_LIBRARY = $(CERN)/$(CERN_LEVEL)/lib  # override with standard def
   export OPTIMIZE      = -O
   export RANGECHECK    = 
   export STATIC        = -s
   export OUTPUT_OPTION =	# Absoft f77 doesn't like '-o file.o -c file.f'
   export FFLAGS_SYSDEP =       # -N2 -N22 -N90 -B108 -f -B101
   export CFLAGS        =
   
#   export F2CLIB       = -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lg2c
   export XLIB          = /usr/X11R6/lib
   export XXLIB          = /usr/lib
   export LIBS   = `cernlib geant321 pawlib graflib grafX11 packlib mathlib grafX11` \
	 -L$(XXLIB) -ldl -lcrypt -lnsl \
         -L$(XLIB) -lXm -lc -lXp -lXt -lSM -lICE -lXext -lX11
endif

export FINCLUDE = -I$(GEANT_SRC)
export SFINCLUDE = -I $(GEANT_SRC)
export FFLAGS
export CFLAGS

MAINDIRS    = src

fppsim: 
	rm bin/fppsim*; $(MAKE) -C src

depend: 
	set -e; for i in $(MAINDIRS) ; \
	do $(MAKE) -C $$i depend ; done

install: fppsim
	 mkdir -p bin
	 cp src/fppsim_gep bin/fppsim_gep
	 cp src/fppsim_random bin/fppsim_random
	 rm -f src/fppsim*

clean:  
	rm -f `find . -name '*.[oas]' -print`
	rm -f `find . -name core -print`
	rm -f bin/fppsim*

.PHONY: subdirectories depend install install-all clean bindist diffs
# DO NOT DELETE THIS LINE -- make depend depends on it.




Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0