-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (43 loc) · 1 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
##
## EPITECH PROJECT, 2023
## corewar
## File description:
## Makefile
##
CC = gcc
OBJ = $(SRC:.c=.o)
LIBFLAG = -Wall -Wextra -L ./lib/my -lmy -I ./include
MAKEFLAGS += --no-print-directory
AUTHORIZED_FUNCS = fopen,open,fread,read,fwrite,write,lseek,fseek,fclose, \
close,malloc,realloc,free,exit,getline,PASS_ARGS,GET_PARAM_BYTE,func, \
SWAP_UINT16
all:
@make -C ./corewar/
@make -C ./asm/
clean:
@rm -f $(OBJS)
fclean: clean
@make fclean -C ./corewar/
@make fclean -C ./asm/
@rm -f ./corewar/corewar
@rm -f ./asm/asm
tests_run:
@make re
@cd tests && ./tester.sh
tests_run_win:
@make re
@cd tests && ./tester.sh -L
check_banned:
@python3 ./tests/ban_checker.py -a "$(AUTHORIZED_FUNCS)" .
check_banned_git:
@python3 ./tests/ban_checker.py --github-actions -a "$(AUTHORIZED_FUNCS)" .
cstyle:
@make fclean
@cstyle
@echo ""
@make check_banned -i
re: fclean all
debug:
@make -C ./corewar/ debug
@make -C ./asm/ debug
.PHONY: all clean fclean re debug cstyle check_banned check_banned_git tests_run