From 714da8ad4b7e5e705bf575dbd2209b50ff00f1a5 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 5 Oct 2000 12:02:52 -0500 Subject: [svn-r2635] Purpose: Portability fix Description: Non-portable GNU-specific features were used. Solution: Replaced GNU-specific features with more portable (but more difficult to maintain) forms of the features. Platforms tested: FresBSD 4.1.1 (hawkwind) --- pablo/Makefile.in | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pablo/Makefile.in b/pablo/Makefile.in index 84605da..532fa5a 100644 --- a/pablo/Makefile.in +++ b/pablo/Makefile.in @@ -23,10 +23,15 @@ PABLO_FLAGS = -I. -I../src -I$(PABLO_INC) -DHAVE_PABLO $(PABLO_MPIO_FLAGS) ## This is our main target: LIB=libhdf5-inst.a -SRCDIRS := ./. \ - ../src/. -SRCFILES := $(foreach DIR,$(SRCDIRS),$(wildcard $(DIR)/*.c)) -LIB_SRC := $(notdir $(SRCFILES)) +SRCDIRS := ./. ../src/. +# Took out the GNU'isms for the SRCFILES and LIB_SRC variables. +# This may cause problems in two ways: any changes to the SRCDIRS variable +# should be make to the SRCFILES macro also and the LIB_SRC variable now has +# directory paths included in it (which may cause problems somewhere). - QAK +#SRCFILES := $(foreach DIR,$(SRCDIRS),$(wildcard $(DIR)/*.c)) +SRCFILES := *.c ../src/*.c +#LIB_SRC := $(notdir $(SRCFILES)) +LIB_SRC := $(SRCFILES) LIB_COBJ := $(LIB_SRC:.c=.o) LIB_FOBJ := PabloHDFff.o LIB_OBJ := $(LIB_FOBJ) $(LIB_COBJ) @@ -35,7 +40,8 @@ copy_src: cp ../src/*.c . touch copy_src -vpath %.c $(shell echo $(SRCDIRS) | sed 's/ /:/g') +# 'vpath' directive is only supported in gmake, take out - QAK +#vpath %.c $(shell echo $(SRCDIRS) | sed 's/ /:/g') ## Pablo header files (to be installed)... PABLO_HDR = HDFentryNames.h HDFidList.h ProcIDs.h HDFTrace.h ProcTrace.h \ -- cgit v0.12