makefile lance la libft aussi

This commit is contained in:
Hugo LAMY
2019-06-01 17:00:52 +02:00
parent 58490cfb56
commit f1471562f3
2 changed files with 16 additions and 35 deletions

View File

@@ -6,7 +6,7 @@
# By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ # # By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# # # Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# #
# Updated: 2019/05/29 14:03:03 by vmanzoni ### ########.fr # # Updated: 2019/06/01 16:57:51 by hulamy ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -23,13 +23,17 @@ CFLAGS += -Wall -Wextra -Werror
LDFLAGS = -L./libft/ LDFLAGS = -L./libft/
LDLIBS = -lft LDLIBS = -lft
SRCS = $(shell find . -depth 1 -type f -not -name '.*' -not -name 'test*' -name '*.c') SRCS = main.c \
f_bonus_opti.c \
f_bonus_print.c \
f_handle_errors.c \
f_parse_input.c \
f_print.c \
f_print_map_with_colors.c \
f_read_file.c \
f_search_map.c
TRASH = $(shell find . -depth 1 -name '*.dSYM') OBJS = $(SRCS:.c=.o)
TRASH += $(shell find . -depth 1 -type f -name '*.o')
TRASH += $(shell find . -depth 1 -type f -name '*.swp')
TRASH += $(shell find . -depth 1 -type f -name '*.swo')
TRASH += $(shell find . -depth 1 -type f -name '*.swn')
# - - - - - - - - - - - - - - - # # - - - - - - - - - - - - - - - #
# RULES # # RULES #
@@ -37,19 +41,16 @@ TRASH += $(shell find . -depth 1 -type f -name '*.swn')
all: $(NAME) all: $(NAME)
$(NAME): $(SRCS) $(NAME): $(OBJS)
make -C ./libft/
$(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(SRCS) -o $(NAME) $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(SRCS) -o $(NAME)
debug: $(SRCS)
$(CC) -g $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(SRCS) -o $(NAME)
lib:
make -C ./libft/
clean: clean:
/bin/rm -rf $(TRASH) make clean -C libft/
/bin/rm -rf $(OBJS)
fclean: clean fclean: clean
make fclean -C libft/
/bin/rm -rf $(NAME) /bin/rm -rf $(NAME)
re: fclean all re: fclean all

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.fillit</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>