From dbbc2f6798ba77d2ea7d9cce91d3bd1879e467a2 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 10 Mar 2020 17:19:53 +0100 Subject: Initial commit based on computorv1 --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4fba56 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# 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 -- cgit