mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[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
This commit is contained in:
parent
055bff2ecc
commit
b2d963d9e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user