diff --git a/Makefile b/Makefile index df62a6b..5e636aa 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ SRCS=$(SRC_DIR)/ft_strlen.asm \ OBJS=$(patsubst $(SRC_DIR)/%.asm,$(OBJ_DIR)/%.o,$(SRCS)) DEPS=$(OBJS:.o=.d) -.PHONY: all clean dirs static shared +.PHONY: all clean fclean re dirs static shared all: dirs $(STATIC_LIB) $(SHARED_LIB) @@ -44,6 +44,13 @@ test: test.c $(STATIC_LIB) $(CC) $(CFLAGS) test.c -L. -l$(LIB_NAME) -o test -Wl,-rpath=. clean: - rm -rf $(OBJ_DIR) $(STATIC_LIB) $(SHARED_LIB) test + $(RM) -rf $(OBJ_DIR) + +fclean: clean + $(RM) $(STATIC_LIB) $(SHARED_LIB) test + +re: fclean + $(MAKE) all + -include $(DEPS)