We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bea0b8b commit 07aed7dCopy full SHA for 07aed7d
Makefile
@@ -3,9 +3,19 @@ BUILD_DIR = build
3
EXEC_FILE = CudaOtsu
4
DEFAULT_VALUE_FLAG = -1
5
6
-SOURCE_FILES := $(shell find $(SOURCE_DIR) -name '*.cpp' -o -name '*.cu')
+SOURCE_FILES :=
7
+ifeq ($(OS), Windows_NT)
8
+ SOURCE_FILES = $(shell find $(SOURCE_DIR) -name *.cpp -o -name *.cu)
9
+else
10
+ ifeq ($(UNAME_S), Linux)
11
+ SOURCE_FILES = $(shell find $(SOURCE_DIR) -name '*.cpp' -o -name '*.cu')
12
+ else
13
+ SOURCE_FILES = None
14
+ endif
15
+endif
16
17
list_sources:
18
+ @echo "Source files:"
19
@echo ${SOURCE_FILES}
20
21
build:
0 commit comments