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
|