diff --git a/Makefile b/Makefile index 161d981..66bc864 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # 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/ 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') -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') +OBJS = $(SRCS:.c=.o) # - - - - - - - - - - - - - - - # # RULES # @@ -37,19 +41,16 @@ TRASH += $(shell find . -depth 1 -type f -name '*.swn') all: $(NAME) -$(NAME): $(SRCS) +$(NAME): $(OBJS) + make -C ./libft/ $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(SRCS) -o $(NAME) -debug: $(SRCS) - $(CC) -g $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(SRCS) -o $(NAME) - -lib: - make -C ./libft/ - clean: - /bin/rm -rf $(TRASH) + make clean -C libft/ + /bin/rm -rf $(OBJS) fclean: clean + make fclean -C libft/ /bin/rm -rf $(NAME) re: fclean all diff --git a/fillit.dSYM/Contents/Info.plist b/fillit.dSYM/Contents/Info.plist deleted file mode 100644 index 96bfe2d..0000000 --- a/fillit.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleIdentifier - com.apple.xcode.dsym.fillit - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - dSYM - CFBundleSignature - ???? - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - -