diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-01 21:14:17 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-01 21:14:17 +0200 |
commit | b776f92ee534e42e22175e4f2bcccec83d9cfcc2 (patch) | |
tree | ffae7f13009958680bd63a2ed3cc0bfa90f3f424 /Makefile | |
parent | export first part is working fine (diff) | |
download | 42-minishell-b776f92ee534e42e22175e4f2bcccec83d9cfcc2.tar.gz 42-minishell-b776f92ee534e42e22175e4f2bcccec83d9cfcc2.tar.bz2 42-minishell-b776f92ee534e42e22175e4f2bcccec83d9cfcc2.tar.xz 42-minishell-b776f92ee534e42e22175e4f2bcccec83d9cfcc2.tar.zst 42-minishell-b776f92ee534e42e22175e4f2bcccec83d9cfcc2.zip |
Makefile update
Diffstat (limited to '')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |