summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-04-10 16:33:23 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-04-10 16:33:23 (GMT)
commitb2d963d9e1903e2a29babeeb9955732f097e3a60 (patch)
treef040dea0da2f86dd2041f3e37385cd6c6fd8db1a
parent055bff2ecc8b0ac3fc545a355c4ca714a1537a30 (diff)
downloadhdf5-b2d963d9e1903e2a29babeeb9955732f097e3a60.zip
hdf5-b2d963d9e1903e2a29babeeb9955732f097e3a60.tar.gz
hdf5-b2d963d9e1903e2a29babeeb9955732f097e3a60.tar.bz2
[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
-rw-r--r--pablo/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/pablo/Makefile.in b/pablo/Makefile.in
index 307fc2b..d4cc451 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