70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
# Mac OS X with Fink
|
|
|
|
# only debuggger 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.
|
|
F_STRICT=
|
|
F_RELAXED=-Wno-globals
|
|
F_OPT=-O
|
|
F_DEB=-g
|
|
|
|
#ld flags
|
|
#LDFLAGS=/Developer/SDKs/MacOSX10.3.0.sdk/usr/lib/gcc/darwin/3.3/libgcc.a
|
|
#LDFLAGS=/sw/lib/gcc/powerpc-apple-darwin8.8.0/3.4.3/libgcc.a -L/sw/lib -lg95 -lg2c
|
|
#LDFLAGS=/usr/lib/gcc/darwin/3.1/libgcc.a
|
|
#LDFLAGS=/usr/lib/gcc/darwin/3.3/libgcc.a /usr/lib/libSystemStubs.a
|
|
#LDFLAGS=/usr/lib/gcc/i686-apple-darwin8/4.0.0/libgcc.a
|
|
#LDFLAGS=/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a
|
|
#LDFLAGS=/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64/libgcc.a
|
|
|
|
# macros for prerequisites (for GNU make)
|
|
# Q=all, F/C=Fortran/C source with path
|
|
Q=$^
|
|
F=$<
|
|
C=$<
|
|
|
|
# linker flags for the readline library
|
|
RDLIB=-L/sw/lib -lreadline
|
|
|
|
# directories for installing the binaries are $(INSTDIR)/bin and $(INSTDIR)/lib
|
|
INSTDIR=/sinqsw
|
|
|
|
# linker flags for pgplot
|
|
PGLIB=-L/usr/X11R6/lib -lX11 -Wl,-framework -Wl,Foundation -L/sw/lib \
|
|
-lpng -lz -laquaterm -L/sw/lib/pgplot -lpgplot -lg95
|
|
|
|
# -L/sw/lib/pgplot -lpgplot -L/usr/X11R6/lib -lX11 -lpng \
|
|
# -Wl,-framework -Wl,Foundation -Wl,-framework -Wl,AppKit -lg95
|
|
|
|
|
|
|
|
# link NeXus file input routines ? (comment out if not needed)
|
|
NXFLAG=Y
|
|
|
|
# linker flags for NeXus
|
|
NXLIB=-L/sinqsw/lib -lNeXus -lNeXus77 -L/sw/lib -lhdf5 -lmfhdf -ldf -ljpeg -lz
|
|
|
|
# directory for the HDF include files
|
|
NXHDF=/sw/include
|
|
|
|
# directory for the NeXus include files
|
|
NXINC=$(INSTDIR)/include
|
|
|
|
ADD_ALL = myfit
|
|
|
|
-include make_deb
|
|
include src/make_gen
|
|
|