diff options
Diffstat (limited to 'math/abs/files/patch-aa')
-rw-r--r-- | math/abs/files/patch-aa | 96 |
1 files changed, 53 insertions, 43 deletions
diff --git a/math/abs/files/patch-aa b/math/abs/files/patch-aa index a604e7d742e1..c249b8625313 100644 --- a/math/abs/files/patch-aa +++ b/math/abs/files/patch-aa @@ -1,43 +1,53 @@ ---- Makefile.orig Mon Apr 5 16:43:35 1999 -+++ Makefile Fri Aug 11 07:31:39 2000 -@@ -3,16 +3,16 @@ - ### Compilers, Programs and Flags - ################################# - ### C Compiler --CC = cc -c -+CC ?= cc -c - /*CC = cc -c -Aa -D_HPUX_SOURCE*/ --CFLAGS = -I./pixmaps -I./Xpm -I./TextField-1.0 -I/usr/contrib/X11R6/include -+CFLAGS += -I./pixmaps -I./TextField-1.0 -I$(X11BASE)/include - - ### Fortran Compiler - FC = xlf - FFLAGS = -qlanglvl=90ext - - ### Linker/Loader --LD = cc -+LD = $(CC) - LDFLAGS = - - ### Shell Command -@@ -199,17 +199,17 @@ - ### Program Libraries # - ####################### - --LIBS = -L /usr/lib -L /lib/X11 -L /usr/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext -L./Xpm -lxpm ./TextField-1.0/*.o -+LIBS = -L$(X11BASE)/lib -lXaw -lX11 -lm -lXt -lXmu -lXext -lXpm ./TextField-1.0/*.o - - --SUBDIRS = cd Xpm; make; cd ../TextField-1.0; make; cd .. -+SUBDIRS = cd ./TextField-1.0; $(MAKE); cd .. - - ######################## - ### Additional Targets # - ######################## - - all: $(OBJS) -- cd Xpm; make; cd ../TextField-1.0; make; cd .. -+ cd ./TextField-1.0; $(MAKE); cd .. - @echo "Linking $(PROGRAM) ..." - @$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) - @echo "done" +--- Makefile.orig Thu Nov 16 04:59:20 2000 ++++ Makefile Fri Nov 17 03:29:05 2000 +@@ -1,28 +1,28 @@ + CURRENT_DIR = . + + +-SUBDIRS = Xpm ABV X11 Kernel Plot Database Fig Interface X11/xedit SAMCEF ++SUBDIRS = ABV X11 Kernel Plot Database Fig Interface X11/xedit SAMCEF + + SUBDIRS2 = ABV X11 Kernel Plot Database Fig Interface +-MAKE = make ++MAKE ?= make + + #for linux and aix LIBS = -L /lib/X11 -L /usr/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext + #for silicon: LIBS = -lXaw -lX11 -lm -lXt -lXmu -lXext + #for hp LIBS = -L /lib/X11 -L /usr/X11R6/lib -L /usr/contrib/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext + #for netBSD LIBS = -L /usr/lib -L /usr/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext +-LIBS = -L /lib/X11 -L /usr/X11R6/lib -L /usr/contrib/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext ++LIBS = -L${X11BASE}/lib -lXaw -lX11 -lm -lXt -lXmu -lXext -lXpm + + #for hp DEFINE = -D_HPUX_SOURCE + DEFINE = + +-CFLAGS = -O2 ++CFLAGS ?= -O2 + + #for hp IncludeDir = /usr/contrib/X11R6/include + #for net-BSD IncludeDir = /usr/X11R6/include +-IncludeDir = . ++IncludeDir = ${X11BASE}/include + + #for hp Ccompiler = c89 +-Ccompiler = cc ++Ccompiler = ${CC} + + all:: + rm -f ./abs;\ +@@ -31,12 +31,12 @@ + if [ -d $$i ] ; \ + then \ + (cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \ +- $(MAKE) TOPCFLAGS=$(CFLAGS) IncludeDir=$(IncludeDir) Ccompiler=$(Ccompiler) DEFINE=$(DEFINE) all); \ ++ $(MAKE) TOPCFLAGS="$(CFLAGS)" IncludeDir="$(IncludeDir)" Ccompiler="$(Ccompiler)" DEFINE="$(DEFINE)" all); \ + fi \ + done +- cc -o abs ./Plot/*.o ./ABV/*.o \ ++ ${CC} -o abs ./Plot/*.o ./ABV/*.o \ + Fig/*.o Interface/*.o X11/xedit/*.o \ +- ./Kernel/*.o ./X11/*.o ./Database/*.o ./Xpm/libxpm.a\ ++ ./Kernel/*.o ./X11/*.o ./Database/*.o\ + $(LIBS) $(DEFINE) + + |