74 lines
1.6 KiB
Plaintext
74 lines
1.6 KiB
Plaintext
# RedHat Linunx (rhel8) with AFS at PSI
|
|
|
|
# only debugger version works
|
|
DEB=D
|
|
|
|
# type of library to be used (LIB_TYPE=a or LIB_TYPE=so)
|
|
LIB_TYPE=a
|
|
|
|
# c-compiler to be used, flags for different options
|
|
CC=gcc
|
|
C_FLAGS=-g -D__unix -MMD -DF_UNDERSCORE=1
|
|
#C_FLAGS=-g -D__unix -MMD
|
|
C_STRICT=-Wall
|
|
C_RELAXED=
|
|
|
|
# fortran compiler to be used, flags for different options
|
|
FC=gfortran
|
|
#FC=g77
|
|
F_FLAGS=-fimplicit-none -ffixed-line-length-none -fbounds-check -I.
|
|
#F_FLAGS=-Wimplicit -fbounds-check -I. -Wall
|
|
F_STRICT=
|
|
F_RELAXED=-Wno-globals
|
|
F_OPT=-O
|
|
F_DEB=-g
|
|
|
|
# macros for prerequisites (for GNU make)
|
|
# Q=all, F/C=Fortran/C source with path
|
|
Q=$^
|
|
F=$<
|
|
C=$<
|
|
|
|
# linker flags for readline library
|
|
RDLIB=-L$(PWD) -lreadline
|
|
|
|
RDLIBSO = libreadline.so
|
|
|
|
$(RDLIBSO): /usr/lib64/libreadline.so.7
|
|
ln -s /usr/lib64/libreadline.so.7 libreadline.so
|
|
|
|
SINQ=/afs/psi.ch/project/sinq/$(linuxsys)
|
|
SL=$(sinq)/sl6-64/lib/lib
|
|
|
|
# directories for installing the binaries are $(INSTDIR)/bin and $(INSTDIR)/lib
|
|
INSTDIR=$(SINQ)/stow/fit
|
|
|
|
# linker flags for pgplot
|
|
PGLIB=$(PWD)/src/pgplot_rhel8/libpgplot.a -L/usr/X11R6/lib -lX11
|
|
|
|
# link NeXus file input routines ? (comment out if not needed)
|
|
NXFLAG=Y
|
|
|
|
# linker flags for NeXus
|
|
NXLIB=$(SL)NeXus77.a $(SL)NeXus.a $(SL)hdf5.a $(SL)mxml.a -lz $(SL)sz.a -lpthread
|
|
|
|
# directory for the HDF include files
|
|
NXHDF=$(SINQ)/include
|
|
|
|
# directory for the NeXus include files
|
|
NXINC=$(sinq)/sl6-64/include
|
|
#NXINC=$(PWD)/../gen
|
|
|
|
# a hack: it seems that napif.f is not properly included in libNeXus77.a
|
|
NAPIF=napif.o
|
|
|
|
ADD_ALL = myfit
|
|
|
|
-include make_deb
|
|
include src/make_gen
|
|
|
|
# location: unix/napif.f
|
|
napif.o: napif.f
|
|
$(FC) -c $Q
|
|
|