aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-10 17:19:53 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-10 17:19:53 +0100
commitdbbc2f6798ba77d2ea7d9cce91d3bd1879e467a2 (patch)
treebb56db6969c5a0e03a20611add5c8e1e28e0494c /Makefile
downloadcomputorv2-dbbc2f6798ba77d2ea7d9cce91d3bd1879e467a2.tar.gz
computorv2-dbbc2f6798ba77d2ea7d9cce91d3bd1879e467a2.tar.bz2
computorv2-dbbc2f6798ba77d2ea7d9cce91d3bd1879e467a2.zip
Initial commit based on computorv1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f4fba56
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2020/02/29 11:54:31 by cacharle #+# #+# #
+# Updated: 2020/02/29 12:01:42 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
+
+CC = ghc
+
+SRC_DIR = src
+BUILD_DIR = build
+NAME = computorv2
+
+SRC = $(shell find $(SRC_DIR) -type f -name "*.hs")
+
+all: $(NAME)
+
+$(NAME): $(SRC)
+ $(CC) --make -outputdir $(BUILD_DIR) -o $(NAME) $(SRC)
+
+clean:
+ $(RM) $(BUILD_DIR)/*.o $(BUILD_DIR)/*.hi
+
+fclean: clean
+ $(RM) $(NAME)
+
+re: fclean all