From b776f92ee534e42e22175e4f2bcccec83d9cfcc2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 1 Aug 2020 21:14:17 +0200 Subject: Makefile update --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3