aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2019-11-28 07:26:10 +0000
committerbloodstalker <thabogre@gmail.com>2019-11-28 07:26:10 +0000
commit4e12b7abb2eca7e0d528cf90f5e66a26da861c00 (patch)
treec336d20383b25726bf51b45905e6c2e7a5abaaaf
parentfix (diff)
downloadcgrep-4e12b7abb2eca7e0d528cf90f5e66a26da861c00.tar.gz
cgrep-4e12b7abb2eca7e0d528cf90f5e66a26da861c00.zip
fix
-rw-r--r--makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/makefile b/makefile
index 5ffe346..f1374d8 100644
--- a/makefile
+++ b/makefile
@@ -3,13 +3,21 @@ SHELL=bash
SHELL?=bash
CC=clang
CC?=clang
-CFLAGS=-fpic -std=c11
+ifdef OS
+ CFLAGS=-std=c11
+else
+ CFLAGS=-fpic -std=c11
+endif
CXX=clang++
CXX?=clang++
-CXX_FLAGS=-fpic
+ifdef OS
+ CXX_FLAGS=
+else
+ CXX_FLAGS=-fpic
+endif
CXX_EXTRA?=
CTAGS_I_PATH?=./
-LD_FLAGS=
+LD_FLAGS= -lstdc++fs
EXTRA_LD_FLAGS?=
ADD_SANITIZERS_CC= -g -fsanitize=address -fno-omit-frame-pointer
ADD_SANITIZERS_LD= -g -fsanitize=address