From 7d0e8e063379efda071ed671ac381a97fc8a59e2 Mon Sep 17 00:00:00 2001 From: Alfio Lazzaro Date: Tue, 13 Feb 2018 15:10:13 +0000 Subject: [PATCH] Fix Makefile for Darwin shell (find command) svn-origin-rev: 18268 --- makefiles/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/makefiles/Makefile b/makefiles/Makefile index b36aa11576..3b993f5a81 100644 --- a/makefiles/Makefile +++ b/makefiles/Makefile @@ -65,19 +65,19 @@ endif # Discover files and directories ============================================ ALL_SRC_DIRS := $(shell find $(SRCDIR) -type d ! -name preprettify ! -path "*/.svn*" | awk '{printf("%s:",$$1)}') -LIBCUSMM_DIR := $(shell cd $(SRCDIR) ; find -type d -name "libcusmm") +LIBCUSMM_DIR := $(shell cd $(SRCDIR) ; find . -type d -name "libcusmm") ALL_PREPRETTY_DIRS = $(shell find $(SRCDIR) -type d -name preprettify) ALL_PKG_FILES = $(shell find $(SRCDIR) ! -path "*/preprettify/*" -name "PACKAGE") -OBJ_SRC_FILES = $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" -name "*.F") -OBJ_SRC_FILES += $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" -name "*.c") -OBJ_SRC_FILES += $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" -name "*.cpp") -OBJ_SRC_FILES += $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" -name "*.cxx") -OBJ_SRC_FILES += $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" -name "*.cc") +OBJ_SRC_FILES = $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" -name "*.F") +OBJ_SRC_FILES += $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" -name "*.c") +OBJ_SRC_FILES += $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" -name "*.cpp") +OBJ_SRC_FILES += $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" -name "*.cxx") +OBJ_SRC_FILES += $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" -name "*.cc") ifneq ($(NVCC),) -OBJ_SRC_FILES += $(shell cd $(SRCDIR); find ! -path "*/preprettify/*" ! -name "libcusmm.cu" -name "*.cu") +OBJ_SRC_FILES += $(shell cd $(SRCDIR); find . ! -path "*/preprettify/*" ! -name "libcusmm.cu" -name "*.cu") OBJ_SRC_FILES += $(LIBCUSMM_DIR)/libcusmm.cu endif