This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
executable file
·43 lines (36 loc) · 1.66 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abiri <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/10/11 14:42:53 by abiri #+# #+# #
# Updated: 2019/05/03 22:42:32 by abiri ### ########.fr #
# #
# **************************************************************************** #
# NO NEED TO CHANGE THIS MAKEFILE FOR NORMAL USE
include make_config.mk
all: $(NAME)
GLOBAL_OBJ_FILES :=
MODULES := $(addsuffix /make_module.mk, $(addprefix $(SRC_DIR)/, $(MODULES)))
include $(MODULES)
MODULE_RULES = $(addprefix LIB9WADA_, $(MODULES))
$(OBJ_DIR):
@-mkdir $(OBJ_DIR)
$(NAME): $(MODULE_RULES) | $(OBJ_DIR)
@echo "LINKING OBJECT FILES"
@$(LINKER) $(LINKER_FLAGS) $(NAME) $(GLOBAL_OBJ_FILES)
@echo "INDEXING LIBRARY"
@$(RANLIB) $(RANLIB_FLAGS) $(NAME)
@echo "CREATED $(NAME)"
clean:
@$(DELETE_COMMAND) $(DELETE_COMMAND_FLAGS) $(OBJ_DIR)
@echo "CLEANED OBJECT FILES"
fclean: clean
@$(DELETE_COMMAND) $(DELETE_COMMAND_FLAGS) $(NAME)
@echo "DELETED $(NAME)"
@$(DELETE_COMMAND) $(DELETE_COMMAND_FLAGS) $(OBJ_DIR)
@echo "DELETED $(OBJ_DIR)"
re: fclean all
.PHONY: all clean fclean re