Skip to content

Commit 6f3167c

Browse files
authored
Update makefile
1 parent 7f967fc commit 6f3167c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ CC = gcc
55
CFLAGS = -O3 -s -Wall
66
LDFLAGS = -lm
77

8-
SRC_DIR = .\src
9-
BIN_DIR = .\bin
10-
11-
TARGET = $(BIN_DIR)\CeeChess-v1.4
12-
8+
# windows requires backslash
139
ifeq ($(OS),Windows_NT)
1410
RM = del /Q
1511
EXE_EXTENSION = .exe
12+
SRC_DIR = .\src
13+
BIN_DIR = .\bin
14+
TARGET = $(BIN_DIR)\CeeChess-v1.4-genetic
1615
else
1716
RM = rm -rf
18-
EXE_EXTENSION = -linux
17+
EXE_EXTENSION = -linux
1918
CFLAGS += -D LINUX
19+
SRC_DIR = ./src
20+
BIN_DIR = ./bin
21+
TARGET = $(BIN_DIR)/CeeChess-v1.4-genetic
2022
endif
2123

2224
# Automatically discover all source and header files in the ./src directory

0 commit comments

Comments
 (0)