-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (33 loc) · 823 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
##
## Makefile for myftp in /home/rootkid/rendu/psu/PSU_2016_myftp
##
## Made by theo champion
## Login <theo.champion@epitech.eu>
##
## Started on Wed May 17 11:35:56 2017 theo champion
## Last update Tue May 23 10:53:43 2017 theo champion
##
CC = gcc
RM = rm -f
SRCDIR = ./src
CFLAGS += -W -Wall -Wextra -Werror -g3
CFLAGS += -I./includes
NAME = server
SRCS = $(SRCDIR)/main.c \
$(SRCDIR)/client_handler.c \
$(SRCDIR)/utils.c \
$(SRCDIR)/socket.c \
$(SRCDIR)/user.c \
$(SRCDIR)/file_navigation.c \
$(SRCDIR)/file_action.c \
$(SRCDIR)/transfer.c \
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -o $(NAME)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re