-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (47 loc) · 1.03 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
#
## Makefile for huffman in /home/kinoo_m/rendu/huffman
##
## Made by Martin Kinoo
## Login <[email protected]>
##
## Started on Wed Nov 26 16:15:20 2014 Martin Kinoo
## Last update Sat May 30 18:46:44 2015 Martin Kinoo
##
NAME= huffman
CC= cc
ifeq ($(DEBUG), yes)
CFLAGS += -g
endif
RM= rm -f
CFLAGS += -Wall -Wextra
CFLAGS += -I./inc/
SRC= src/arg.c \
src/code_huffman.c \
src/make_huff_tree.c \
src/bin_list.c \
src/bin_writer.c \
src/give_me_fd.c \
src/dico_and_write.c \
src/bin_extra.c \
src/get_char_from_octet.c \
src/main.c \
src/decode_huffman.c \
src/fonctions/get_next_line.c \
src/fonctions/my_strdup.c \
src/fonctions/list.c \
src/fonctions/my_strncat.c \
src/fonctions/print_and_len.c \
src/fonctions/my_xmalloc.c \
src/fonctions/my_strcmp.c \
src/fonctions/my_strcat.c \
src/fonctions/my_strndup.c \
OBJ= $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(CFLAGS)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re