diff options
-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 \ |