-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (48 loc) · 962 Bytes
/
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
NAME = race04
SRCS = src/mx_error_checker.c \
src/mx_isspace.c \
src/mx_printmass.c \
src/main.c \
src/mx_oper.c \
src/mx_printstr.c \
src/math.c \
src/mx_param.c \
src/mx_strlen.c \
src/mx_atoi.c \
src/mx_printchar.c \
src/mx_strnew.c \
src/mx_file_to_str.c \
src/mx_printerr.c \
src/mx_char_validator.c \
src/mx_isdigit.c \
src/mx_printint.c
INC = inc/header.h
CFLAGS = -std=c11 -Wall -Wextra -Werror -Wpedantic
all: $(NAME)
$(NAME): install clean
install:
@cp $(SRCS) .
@cp $(INC) .
@clang $(CFLAGS) -o $(NAME) $(SRCS) -I inc
uninstall: clean
@rm -rf $(NAME)
clean:
@rm -rf header.h
@rm -rf mx_error_checker.c \
mx_isspace.c \
mx_printmass.c \
main.c \
mx_oper.c \
mx_printstr.c \
math.c \
mx_param.c \
mx_strlen.c \
mx_atoi.c \
mx_printchar.c \
mx_strnew.c \
mx_file_to_str.c \
mx_printerr.c \
mx_char_validator.c \
mx_isdigit.c \
mx_printint.c
reinstall: all