-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 868 Bytes
/
Makefile
File metadata and controls
48 lines (36 loc) · 868 Bytes
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
##
## Makefile for Makefile in /home/juliena/rendu/MUL_2013_wolf3d
##
## Made by athomasjulien
## Login <juliena@epitech.net>
##
## Started on Thu Dec 19 12:58:53 2013 athomasjulien
## Last update Sun Jan 12 22:23:27 2014 athomasjulien
##
UNAME := $(shell uname)
SRC= wolf3d.c \
my_gestion.c \
my_pixel_put_to_image.c \
my_calc_wolf.c
OBJ= $(SRC:.c=.o)
NAME= wolf3d
CFLAGS= -Wall -Werror -Wextra -I./minilibx
ifeq ($(UNAME), Darwin)
SYS = $(OBJ) -lmy -L./ -L./minilibx_osx -L/usr/X11/lib -lmlx -lXext -lX11 -lm -o $(NAME)
else
SYS = $(OBJ) -lmy -L./ -L./minilibx -L/usr/X11/lib -lmlx -lXext -lX11 -lm -o $(NAME)
endif
all: subdirectory $(NAME)
subdirectory:
$(MAKE) -C my
$(NAME): $(OBJ)
gcc $(SYS)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
fcleanbis: clean
$(MAKE) clean
rm -f $(NAME)
$(MAKE) fclean
re: fclean all