summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cd96f76..23115fa 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ default: all
#--------------------------------- SHELL --------------------------------------#
#==============================================================================#
SHELL := /bin/sh
+OS = $(shell uname)
#==============================================================================#
#------------------------------ DIRECTORIES -----------------------------------#
#==============================================================================#
@@ -71,7 +72,15 @@ LFT_SRCS = $(shell find ${LFT_SRCS_DIR} -name "*.c")
#==============================================================================#
#-------------------------------- COMPILER ------------------------------------#
#==============================================================================#
+ifeq (${OS}, FreeBSD)
+CC = /usr/bin/cc
+endif
+ifeq (${OS}, Linux)
+CC = /usr/bin/clang-9
+endif
+ifeq (${OS}, Darwin)
CC = clang
+endif
CFLAGS = -std=c89
CFLAGS += -Wall
CFLAGS += -Wextra