aboutsummaryrefslogtreecommitdiff
path: root/rush02/ex00/Makefile
blob: e299142504b6e6f70c925a23167c104d179eafb0 (plain)
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
# **************************************************************************** #
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: cacharle <charles.cabergs@gmail.com>       +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2019/07/20 07:26:11 by cacharle          #+#    #+#              #
#    Updated: 2019/07/21 11:46:43 by cacharle         ###   ########.fr        #
#                                                                              #
# **************************************************************************** #

OUT = rush-02
SRC = main.c helper.c parse.c error.c dict.c convert.c
OBJ = $(SRC:.c=.o)

CC = gcc
CCFLAGS = -Wall -Wextra #-Werror

.PHONY: all
all: $(OUT)

$(OUT): $(OBJ)
	$(CC) $(CCFLAGS) $(OBJ) -o $(OUT)

%.o: %.c include.h
	$(CC) $(CCFLAGS) -c $< -o $@

.PHONY: clean
clean:
	rm -f $(OBJ)

.PHONY: fclean
fclean: clean
	rm -f $(OUT)

.PHONY: re
re: fclean all