# Linux

# 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
C_STRICT=-Wall
C_RELAXED=

# fortran compiler to be used, flags for different options
FC=g77
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=-lreadline -ltermcap

# directories for installing the binaries are $(INSTDIR)/bin and $(INSTDIR)/lib
INSTDIR=~

# linker flags for pgplot
PGLIB=$(INSTDIR)/libpgplot.a -L/usr/X11R6/lib -lX11

# link NeXus file input routines ?
# remove '#' in the next line if you like NeXus support
#NXFLAG=Y

NXLIBS=$(INSTDIR)/lib/lib

# linker flags for NeXus
NXLIB=$(NXLIBS)NeXus77.a $(NXLIBS)hdf5.a $(NXLIBS)mfhdf.a $(NSLIBS)df.a \
  $(NXLIBS)jpeg.a $(NXLIBS)z.a

# directory for the HDF include files (needed for NeXus)
NXHDF=$(INSTDIR)/include

# directory for the NeXus include files
NXINC=$(INSTDIR)/include

ADD_ALL = myfit

-include make_deb
include src/make_gen
