-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.linux
82 lines (64 loc) · 2.18 KB
/
Makefile.linux
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
69
70
71
72
73
74
75
76
77
78
79
80
##
## Makefile for in /home/notwak42/Projects/C/Bomberman/BombGit/Bomberman
##
## Made by MASERA Mathieu
## Login <masera_m@etna-alternance.net>
##
## Started on Wed Jul 4 09:36:47 2018 MASERA Mathieu
## Last update Wed Jul 4 09:36:48 2018 MASERA Mathieu
##
CC = gcc
NAME = BomberMan
CFLAGS = -W -Werror -Wextra -Wall -g -Iincludes/ -Ilibmy
LDFLAGS = -lSDL2 -lSDL2main -lSDL2_image -lSDL2_ttf -pthread -L ./libmy
SRC = main.c \
menu.c \
start_map.c \
sdl.c \
common/my_putchar.c \
common/my_putstr.c \
common/game_info.c \
common/static_wall_rect.c \
common/coord_index_swapper.c \
client/client.c \
client/client_request.c \
client/client_receive.c \
client/bomber_sprites.c \
client/client_interpretor.c \
client/update_client.c \
server/server.c \
server/thread.c \
server/moving.c \
server/bomb.c \
server/player.c \
server/main_loop.c \
server/collision.c \
server/bomb_management.c \
server/notify_client.c \
server/command_interpretor.c \
base_map/base_map_manager.c \
base_map/draw_base_map.c \
base_map/draw_players.c \
OBJ = ${SRC:%.c=%.o}
RM = rm -rf
all : ${NAME}
re : clean all
$(NAME) : $(OBJ)
$(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) -o $(NAME)
clean :
$(RM) $(OBJ)
fclean : clean
$(RM) $(NAME)
install: ${NAME}
install -D ${NAME} $(DESTDIR)$(prefix)/bin/bomberman
install -D -m644 ressources/Bomberman.jpg $(DESTDIR)$(prefix)/share/bomberman/ressources/Bomberman.jpg
install -D -m644 ressources/Bomberman.jpg $(DESTDIR)$(prefix)/share/bomberman/ressources/Bomberman.jpg
install -D -m644 ressources/ASMAN.TTF $(DESTDIR)$(prefix)/share/bomberman/ressources/ASMAN.TTF
install -D -m644 ressources/bm.ttf $(DESTDIR)$(prefix)/share/bomberman/ressources/bm.ttf
install -D -m644 ressources/bombermanSprite.PNG $(DESTDIR)$(prefix)/share/bomberman/ressources/bombermanSprite.PNG
install -D -m644 ressources/white.jpg $(DESTDIR)$(prefix)/share/bomberman/ressources/white.jpg
distclean: clean
unistall:
-rm -f $(DESTDIR)$(prefix)/bin/bomberman
-rm -f $(DESTDIR)$(prefix)/share/bomberman
.PHONY: all install clean fclean unistall distclean