From b2d963d9e1903e2a29babeeb9955732f097e3a60 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 10 Apr 2002 11:33:23 -0500 Subject: [PATCH] [svn-r5162] Purpose: Third Time's a Charm Description: Okay...So, the H5Tinit.c isn't in the $(top_srcdir) directory but in the $(top_builddir) directory. Solution: Hack so that if it is H5Tinit that we're compiling, then point to the $(top_builddir) directory. Platforms tested: Linux --- pablo/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pablo/Makefile.in b/pablo/Makefile.in index 307fc2bc67..d4cc451aa6 100644 --- a/pablo/Makefile.in +++ b/pablo/Makefile.in @@ -58,7 +58,11 @@ LIB_COBJ=$(LIB_XOBJ:.x=.o) LIB_OBJ=$(PABLO_OBJ) $(LIB_COBJ) .c.x: - $(CC) $(CFLAGS) $(CPPFLAGS) -c $(top_srcdir)/src/$*.c -o $*.o + if test "$*" != "H5Tinit"; then \ + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(top_srcdir)/src/$*.c -o $*.o; \ + else \ + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(top_builddir)/src/$*.c -o $*.o; \ + fi; cp $*.o $@ # 'vpath' directive is only supported in gmake, take out - QAK