zoom fonctionne sauf z
This commit is contained in:
35
Makefile
35
Makefile
@@ -1,18 +1,12 @@
|
||||
|
||||
# have the .c in a "srcs/" directory
|
||||
# have the .h in a "includes/" directory
|
||||
# - - - - - - - - - - - - - - # name = value \
|
||||
# variables names # value
|
||||
# - - - - - - - - - - - - - - # ! name is case sensitive
|
||||
|
||||
# - - - - - - - - - - - - - - #
|
||||
# variables names #
|
||||
# - - - - - - - - - - - - - - #
|
||||
# name = value \
|
||||
# value
|
||||
# name is case sensitive
|
||||
|
||||
# VPATH where to look for rules preriquisites not found in "./"
|
||||
# best to use only for ".c", not ".o" nor ".h"
|
||||
NAME = fdf
|
||||
|
||||
CC = gcc
|
||||
|
||||
VPATH = srcs
|
||||
|
||||
IDIR = ./includes
|
||||
@@ -23,7 +17,10 @@ LDIR = ./libft
|
||||
_LIBS = libft.a
|
||||
LIBS = $(_LIBS:lib%.a=%)
|
||||
|
||||
SRCS = fdf.c
|
||||
SRCS = fdf.c \
|
||||
draw.c \
|
||||
parse.c \
|
||||
modifs.c
|
||||
|
||||
ODIR = ./builds
|
||||
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
|
||||
@@ -34,12 +31,10 @@ LFLAGS = -L$(LDIR) -l$(LIBS)
|
||||
CFLAGS += -I./minilibx-linux-master
|
||||
LFLAGS += -lm -lmlx -lXext -lX11 -L./minilibx-linux-master
|
||||
|
||||
# - - - - - - - - - - - - - - #
|
||||
# rules to execute #
|
||||
# - - - - - - - - - - - - - - #
|
||||
# target: prerequisites ...
|
||||
# recipe ...
|
||||
|
||||
# - - - - - - - - - - - - - - # target: prerequisites | $@ : target
|
||||
# rules to execute # recipe | $< : 1st prerequisite
|
||||
# - - - - - - - - - - - - - - # recipe | $^ : all prerequisites
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
@@ -67,12 +62,16 @@ clean:
|
||||
/bin/rm -f $(OBJS)
|
||||
|
||||
fclean: clean
|
||||
make fclean -C $(LDIR)
|
||||
/bin/rm -rf $(ODIR)
|
||||
/bin/rm -f $(NAME)
|
||||
/bin/rm -rf a.out a.out.dSYM
|
||||
|
||||
libfclean:
|
||||
make fclean -C $(LDIR)
|
||||
|
||||
re: fclean all
|
||||
|
||||
relib: libfclean re
|
||||
|
||||
.PHONY: all clean fclean re gcc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user