mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 09:34:16 +00:00
feat: add fclean and re target
This commit is contained in:
9
Makefile
9
Makefile
@@ -3,7 +3,7 @@
|
|||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
SRC = $(wildcard *.c)
|
SRC = $(wildcard *.c)
|
||||||
LIB = libft.a
|
LIB = libft.a # <--- NAME
|
||||||
STATIC = ar -rcs
|
STATIC = ar -rcs
|
||||||
CC = clang
|
CC = clang
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
@@ -18,4 +18,9 @@ $(LIB): $(OBJ) # <--- OBJ will run $.o: %.c pattern
|
|||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) $(LIB)
|
rm -f $(OBJ)
|
||||||
|
|
||||||
|
fclean: clean
|
||||||
|
rm -f $(LIB)
|
||||||
|
|
||||||
|
re: fclean $(LIB)
|
||||||
|
|||||||
Reference in New Issue
Block a user