diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-04-29 11:47:02 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-04-29 11:47:02 +0200 |
commit | 961bda4f42562bf8ceb70a888730362d021c5552 (patch) | |
tree | 820577dc790c3a8884c44b329d04a8d42ed1ca44 /Makefile | |
parent | simple really (diff) | |
parent | Trying vars (diff) | |
download | 42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.gz 42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.bz2 42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.xz 42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.zst 42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.zip |
merge master into fmoenne_indahouse
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -6,11 +6,11 @@ SHELL := /bin/sh #==============================================================================# #------------------------------ DIRECTORIES -----------------------------------# #==============================================================================# -SRCS_DIR = src/ -OBJS_DIR = obj/ -LFT_DIR = libft/ -LFT_INCS_DIR = ${LFT_DIR}inc/ -LFT_SRCS_DIR = ${LFT_DIR}src/ +SRCS_DIR = src/ +OBJS_DIR = obj/ +LFT_DIR = libft/ +LFT_INCS_DIR = ${LFT_DIR}inc/ +LFT_SRCS_DIR = ${LFT_DIR}src/ #==============================================================================# #--------------------------------- FILES --------------------------------------# #==============================================================================# @@ -27,6 +27,8 @@ SRCS_NAME += ft_e_builtins.c SRCS_NAME += ft_e_externs.c SRCS_NAME += ft_e_externs_next.c SRCS_NAME += ft_e_lcom.c +SRCS_NAME += ft_f_chdir.c +SRCS_NAME += ft_f_errno.c SRCS_NAME += ft_f_fail.c SRCS_NAME += ft_f_redir.c SRCS_NAME += ft_m_argv.c @@ -44,7 +46,7 @@ SRCS_NAME += ft_p_lcom_next.c SRCS_NAME += ft_u_utils.c SRCS_NAME += ft_u_vars.c #------------------------------------------------------------------------------# -SRCS = $(addprefix ${SRCS_DIR}, ${SRCS_NAME}) +SRCS = $(addprefix ${SRCS_DIR}, ${SRCS_NAME}) #------------------------------------------------------------------------------# INCS_NAME = ft_b_builtins.h INCS_NAME += ft_d_enum.h @@ -52,17 +54,17 @@ INCS_NAME += ft_d_define.h INCS_NAME += ft_s_struct.h INCS_NAME += $(patsubst %.c,%.h,${SRCS_NAME}) #------------------------------------------------------------------------------# -INCS = $(addprefix ${SRCS_DIR}, ${INCS_NAME}) +INCS = $(addprefix ${SRCS_DIR}, ${INCS_NAME}) #------------------------------------------------------------------------------# -OBJS = $(patsubst ${SRCS_DIR}%.c,${OBJS_DIR}%.o,${SRCS}) +OBJS = $(patsubst ${SRCS_DIR}%.c,${OBJS_DIR}%.o,${SRCS}) #------------------------------------------------------------------------------# -NAME = minishell +NAME = minishell #------------------------------------------------------------------------------# -LFT_SRCS = $(shell find ${LFT_SRCS_DIR} -name "*.c") +LFT_SRCS = $(shell find ${LFT_SRCS_DIR} -name "*.c") #==============================================================================# #-------------------------------- COMPILER ------------------------------------# #==============================================================================# -CC = clang +CC = clang CFLAGS = -std=c89 CFLAGS += -Wall CFLAGS += -Wextra |