-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
36 lines (27 loc) · 1.27 KB
/
Makefile
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
#* ************************************************************************** *#
#* *#
#* ::: :::::::: *#
#* Makefile :+: :+: :+: *#
#* +:+ +:+ +:+ *#
#* By: lmarques <[email protected]> +#+ +:+ +#+ *#
#* +#+#+#+#+#+ +#+ *#
#* Created: 2016/11/10 23:15:25 by lmarques #+# #+# *#
#* Updated: 2017/04/18 04:13:53 by lmarques ### ########.fr *#
#* *#
#* ************************************************************************** *#
NAME = example
SRC = example.c \
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
make -C minilibx
mv minilibx/libmlx.a .
gcc -Wall -g -Werror -Wextra -c $(SRC)
gcc -Wall -g -Werror -Wextra -L. -lmlx -framework OpenGL -framework Appkit $(OBJ) -o $(NAME)
clean:
make -C minilibx clean
rm -rf $(OBJ) libft.a libmlx.a
fclean: clean
make -C minilibx clean
rm -rf $(NAME)
re : fclean all