diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-05 17:02:52 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-05 17:02:52 (GMT) |
commit | 714da8ad4b7e5e705bf575dbd2209b50ff00f1a5 (patch) | |
tree | 367c25802bede7f956020354875c7cbe43530b02 | |
parent | ea7f4421f9b61f0cbe2975f8da6897be5a67111c (diff) | |
download | hdf5-714da8ad4b7e5e705bf575dbd2209b50ff00f1a5.zip hdf5-714da8ad4b7e5e705bf575dbd2209b50ff00f1a5.tar.gz hdf5-714da8ad4b7e5e705bf575dbd2209b50ff00f1a5.tar.bz2 |
[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)
-rw-r--r-- | pablo/Makefile.in | 16 |
1 files 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 \ |