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 for h in $(BDD_PROLOG); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR) $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean: install-examples:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
clean:
rm -f *.o *~ $(OBJS) *.BAK
realclean:
rm -f $(SOBJS) Makefile

View File

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