Skip to content

Commit 07aed7d

Browse files
committed
Fixed makefile for Windows
1 parent bea0b8b commit 07aed7d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ BUILD_DIR = build
33
EXEC_FILE = CudaOtsu
44
DEFAULT_VALUE_FLAG = -1
55

6-
SOURCE_FILES := $(shell find $(SOURCE_DIR) -name '*.cpp' -o -name '*.cu')
6+
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
716

817
list_sources:
18+
@echo "Source files:"
919
@echo ${SOURCE_FILES}
1020

1121
build:

0 commit comments

Comments
 (0)