-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.29 KB
/
Makefile
File metadata and controls
42 lines (30 loc) · 1.29 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
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: cstaats <cstaats@student.codam.nl> +#+ #
# +#+ #
# Created: 2022/09/02 08:30:46 by cstaats #+# #+# #
# Updated: 2022/10/18 13:48:05 by cstaats ######## odam.nl #
# #
# **************************************************************************** #
NAME = push_swap
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCS = actionsA.c actionsB.c actionssimul.c errorchecks.c methods.c \
radix.c utils.c utilscont.c main.c
OBS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBS)
$(CC) -o $(NAME) $(OBS)
%.o: %.c push_swap.h
$(CC) -c $(CFLAGS) $<
clean:
rm -f $(OBS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re
test: all
gcc main.c -L. -lpush_swap