-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
68 lines (60 loc) · 1.62 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
62
63
64
65
66
67
68
NAME = endgame
SRC = src/main.c \
src/mx_app_loop.c \
src/mx_choose_level_game.c \
src/mx_errorexit.c \
src/mx_list_resourses.c \
src/mx_player_score.c \
src/mx_set_start_val.c \
src/mx_strcat.c \
src/mx_strlen.c \
src/mx_strnew.c \
src/mx_turn_over_card.c \
src/print_screen.c
INC = inc/header.h
CFILES = main.c \
mx_app_loop.c \
mx_choose_level_game.c \
mx_errorexit.c \
mx_list_resourses.c \
mx_player_score.c \
mx_set_start_val.c\
mx_strcat.c \
mx_strlen.c \
mx_strnew.c \
mx_turn_over_card.c \
print_screen.c
HFILES = header.h
CFLAGS = -std=c11 -Wall -Wextra -Werror -Wpedantic
DFLAGS = -fsanitize=address -g
RFLAGS = -Ofast
FFLAGS = -I ./inc/Frameworks/SDL2.framework/Versions/A/Headers \
-F ./inc/Frameworks -framework SDL2 -rpath ./inc/Frameworks \
-I ./inc/Frameworks/SDL2_image.framework/Versions/A/Headers \
-F ./inc/Frameworks -framework SDL2_image -rpath ./inc/Frameworks \
-I ./inc/Frameworks/SDL2_mixer.framework/Versions/A/Headers \
-F ./inc/Frameworks -framework SDL2_mixer -rpath ./inc/Frameworks \
-I ./inc/Frameworks/SDL2_ttf.framework/Versions/A/Headers \
-F ./inc/Frameworks -framework SDL2_ttf -rpath ./inc/Frameworks
all: install clean
dbg: debug clean
release: build clean
install:
@cp $(SRC) .
@cp $(INC) .
@clang $(CFLAGS) $(FFLAGS) -o $(NAME) $(CFILES)
debug:
@cp $(SRC) .
@cp $(INC) .
@clang $(CFLAGS) $(FFLAGS) $(DFLAGS) -o $(NAME) $(CFILES)
build:
@cp $(SRC) .
@cp $(INC) .
@clang $(CFLAGS) $(FFLAGS) $(RFLAGS) -o $(NAME) $(CFILES)
clean:
@rm -rf $(CFILES)
@rm -rf $(HFILES)
@rm -rf endgame.dSYM
uninstall: clean
@rm -rf $(NAME)
reinstall: uninstall all