[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:
Bill Wendling 2002-04-10 11:33:23 -05:00
parent 055bff2ecc
commit b2d963d9e1

View File

@ -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