clean up makefile

This commit is contained in:
Vitor Santos Costa 2014-02-10 23:30:21 +00:00
parent 89e2c86a0b
commit 231290bad3
2 changed files with 13 additions and 6 deletions

View File

@ -67,6 +67,11 @@ install: all
for h in $(BDD_PROLOG); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
install-examples:
clean:
rm -f *.o *~ $(OBJS) *.BAK
realclean:
rm -f $(SOBJS) Makefile

View File

@ -14,14 +14,14 @@ CUDA_LDFLAGS=""
CUDA_CPPFLAGS=""
if test "$yap_cv_cuda" = no
then
ENABLE_CUDA="@# "
PKG_CUDA=""
else
AC_PATH_PROG(NVCC, [nvcc], [no], [$yap_cv_cuda/bin])
if test "$yap_cv_cuda" = no
then
ENABLE_CUDA="@# "
PKG_CUDA=""
else
ENABLE_CUDA=""
PKG_CUDA="packages/cuda"
case "$target_os" in
*darwin*)
CUDA_LDFLAGS="$LDFLAGS"
@ -37,7 +37,7 @@ else
fi
fi
AC_SUBST(ENABLE_CUDA)
AC_SUBST(PKG_CUDA)
AC_SUBST(NVCC)
AC_SUBST(CUDA_SHLIB_LD)
AC_SUBST(CUDA_CPPFLAGS)
@ -45,3 +45,5 @@ AC_SUBST(CUDA_LDFLAGS)
AC_CONFIG_FILES([packages/cuda/Makefile])
mkdir -p packages/cuda