1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
CC = gcc CFLAGS = -std = c99 - pedantic - Werror - Wall - Wextra - Wvla SRC = user_belong.c OBJ = $(SRC :.c =.o) all : $(OBJ) $(CC) - o user_belong $(OBJ) $(OBJ) : $(SRC) .PHONY : clean clean : $(RM) $(OBJ) user_belong