debut ecritures fonctions clean et error
This commit is contained in:
29
Makefile
29
Makefile
@@ -3,30 +3,31 @@
|
||||
# variables names # value | .h in includes/
|
||||
# - - - - - - - - - - - - - - # ! name is case sensitive | ! use VPATH only for .c
|
||||
|
||||
NAME = pushswap
|
||||
NAME = pushswap
|
||||
|
||||
CC = gcc
|
||||
CC = gcc
|
||||
|
||||
VPATH = srcs
|
||||
VPATH = srcs
|
||||
|
||||
IDIR = ./includes
|
||||
IDIR = ./includes
|
||||
|
||||
_DEPS =
|
||||
DEPS = $(_DEPS:%.h=$(IDIR)/%.h)
|
||||
_DEPS =
|
||||
DEPS = $(_DEPS:%.h=$(IDIR)/%.h)
|
||||
# used to check if a .h has been modify when execute $NAME rule
|
||||
|
||||
LDIR = ./libft
|
||||
_LIBS = libft.a
|
||||
LIBS = $(_LIBS:lib%.a=%)
|
||||
LDIR = ./libft
|
||||
_LIBS = libft.a
|
||||
LIBS = $(_LIBS:lib%.a=%)
|
||||
|
||||
SRCS = pushswap.c
|
||||
SRCS = pushswap.c \
|
||||
error.c
|
||||
|
||||
ODIR = ./builds
|
||||
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
|
||||
ODIR = ./builds
|
||||
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
|
||||
|
||||
CFLAGS = -I$(IDIR) -g3 -Wall -Wextra -Werror
|
||||
CFLAGS = -I$(IDIR) -g3 -Wall -Wextra -Werror
|
||||
|
||||
LFLAGS = -L$(LDIR) -l$(LIBS)
|
||||
LFLAGS = -L$(LDIR) -l$(LIBS)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user