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

 1 jones 1.1 # Top level Geant FPP Makefile
 2           # 
 3           # Important Note:  Make sure that all of the include files
 4           #                  from the ~/espace_lib and ~/espace_halla
 5           #                  directories are copied into the ~/fpp_geant/src
 6           #                  directory.
 7           
 8           # Change this directory to point to your top level fpp geant directory.
 9           
10 jones 1.2 export GEANT_FPP     = $(shell pwd)
11 jones 1.1 
12           ##########################################################
13           export OSNAME       := $(shell uname)
14           export GEANT_SRC     = $(GEANT_FPP)/src
15           export GEANT_BIN     = $(GEANT_FPP)/bin
16           
17           # define system-dependent compiler flags, libraries, etc.
18           
19           ifeq ($(OSNAME),OSF1)
20              export CFLAGS        = -taso
21              export OPTIMIZE      =
22              export RANGECHECK    =
23              export FFLAGS_SYSDEP = -taso
24              export STATIC        = -static
25           
26              export XLIB    = /usr/X11R6/lib
27              export LIBS   = -L$(CERN)/$(CERN_LEVEL)/lib -lgeant321 -lpawlib \
28                    -lgraflib -lgrafX11 -lpacklib \
29           	 -lmathlib -lgrafX11  \
30                    -L$(XLIB) -lXm -lXt -lX11 -lm -lPW  
31           endif
32 jones 1.1 ifeq ($(OSNAME),Linux)
33              CERN_LIBRARY = $(CERN)/$(CERN_LEVEL)/lib  # override with standard def
34              export OPTIMIZE      = -O
35              export RANGECHECK    = 
36              export STATIC        = -s
37              export OUTPUT_OPTION =	# Absoft f77 doesn't like '-o file.o -c file.f'
38              export FFLAGS_SYSDEP =       # -N2 -N22 -N90 -B108 -f -B101
39              export CFLAGS        =
40              
41           #   export F2CLIB       = -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lg2c
42              export XLIB          = /usr/X11R6/lib
43              export XXLIB          = /usr/lib
44              export LIBS   = `cernlib geant321 pawlib graflib grafX11 packlib mathlib grafX11` \
45           	 -L$(XXLIB) -ldl -lcrypt -lnsl \
46                    -L$(XLIB) -lXm -lc -lXp -lXt -lSM -lICE -lXext -lX11
47           endif
48           
49           export FINCLUDE = -I$(GEANT_SRC)
50           export SFINCLUDE = -I $(GEANT_SRC)
51           export FFLAGS
52           export CFLAGS
53 jones 1.1 
54           MAINDIRS    = src
55           
56           fppsim: 
57           	rm bin/fppsim*; $(MAKE) -C src
58           
59           depend: 
60           	set -e; for i in $(MAINDIRS) ; \
61           	do $(MAKE) -C $$i depend ; done
62           
63           install: fppsim
64 jones 1.2 	 mkdir -p bin
65 brash 1.3 	 cp src/fppsim_gep bin/fppsim_gep
66           	 cp src/fppsim_random bin/fppsim_random
67           	 rm -f src/fppsim*
68 jones 1.1 
69           clean:  
70           	rm -f `find . -name '*.[oas]' -print`
71           	rm -f `find . -name core -print`
72           	rm -f bin/fppsim*
73           
74           .PHONY: subdirectories depend install install-all clean bindist diffs
75           # DO NOT DELETE THIS LINE -- make depend depends on it.
76           
77           
78           

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