-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (48 loc) · 1.63 KB
/
Makefile
File metadata and controls
59 lines (48 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: rutgercappendijk <rutgercappendijk@stud +#+ #
# +#+ #
# Created: 2021/09/17 08:39:07 by rcappend #+# #+# #
# Updated: 2021/09/22 15:09:24 by rcappend ######## odam.nl #
# #
# **************************************************************************** #
NAME = pipex
SRCS = main.c \
pipex.c \
files.c \
lexing.c \
cmd.c \
utils/ft_strlen.c \
utils/ft_split.c \
utils/ft_substr.c \
utils/ft_calloc.c \
utils/ft_memcpy.c \
utils/ft_bzero.c \
utils/ft_strncmp.c \
utils/ft_strjoin.c \
utils/ft_strdup.c \
utils/free_grid.c
OBJS = $(SRCS:.c=.o)
CC = gcc
CFLAGS = -Wall -Wextra -Werror
INFILE = utils/
OUTFILE = testfiles/out2
CMD1 = testfiles/testprogram
CMD2 = wc -l
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(NAME)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
run: all
./$(NAME) $(INFILE) "$(CMD1)" "$(CMD2)" $(OUTFILE)
compare:
< $(INFILE) $(CMD1) | $(CMD2) > $(OUTFILE)
re: fclean all
phony:
all clean fclean re dtest test