aboutsummaryrefslogtreecommitdiff
path: root/rush02/ex00/Makefile
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-21 15:26:32 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-21 15:26:32 +0200
commit454d82f30e354e2629563822bac637e5eaa8e4ff (patch)
tree9de3cde07cc38e59f08885171e9f99eeab8ab71b /rush02/ex00/Makefile
parent9eef9647b83f32f4bd8086de420cf1caeabf0206 (diff)
downloadpiscine-454d82f30e354e2629563822bac637e5eaa8e4ff.tar.gz
piscine-454d82f30e354e2629563822bac637e5eaa8e4ff.tar.bz2
piscine-454d82f30e354e2629563822bac637e5eaa8e4ff.zip
c10 done, c11 on going, rush02 probably finished, bsq start
Diffstat (limited to 'rush02/ex00/Makefile')
-rw-r--r--rush02/ex00/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/rush02/ex00/Makefile b/rush02/ex00/Makefile
new file mode 100644
index 0000000..e299142
--- /dev/null
+++ b/rush02/ex00/Makefile
@@ -0,0 +1,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