-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (50 loc) · 1.06 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##
## EPITECH PROJECT, 2017
## Makefile
## File description:
## compile, et clean
##
SRC = ./src/main.c \
./src/inits.c \
./src/prog_tools.c \
./src/manage_args.c \
./src/op.c \
./src/run.c \
./src/memory_tools.c \
./src/cleans.c \
./src/checks.c \
./src/opcode/pc_tools.c \
./src/opcode/arg_data.c \
./src/opcode/live.c \
./src/opcode/zjmp.c \
./src/opcode/ld.c \
./src/opcode/ldi.c \
./src/opcode/add.c \
./src/opcode/and.c \
./src/opcode/lfork.c \
./src/opcode/sti.c \
./src/opcode/or.c \
./src/opcode/aff.c \
./src/opcode/lldi.c \
./src/opcode/xor.c \
./src/opcode/fork.c \
./src/opcode/st.c \
./src/opcode/sub.c \
./src/opcode/lld.c \
./src/opcode/tool_op.c \
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror
CPPFLAGS = -Llib/my -lmy -Iinclude
NAME = corewar
all: lib $(NAME)
$(NAME): $(OBJ)
make -C lib/my
$(CC) -o $(NAME) $(OBJ) $(CFLAGS) $(CPPFLAGS)
clean:
make clean -C lib/my
$(RM) -f $(OBJ)
fclean: clean
make fclean -C lib/my
$(RM) -f $(NAME)
re: fclean all
.PHONY: all lib clean fclean re