Skip to content

Commit

Permalink
Makefile 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Oduoronyina committed Sep 21, 2022
1 parent cce7632 commit 88bcfba
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 0x1C-makefiles/4-Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CC = gcc
SRC = main.c school.c
OBJ = $(SRC:.c=.o)
NAME = school
RM = rm -f
CFLAGS = -Wall -Werror -Wextra -pedantic

all : $(OBJ)
$(CC) $(OBJ) -o $(NAME)

clean :
$(RM) *~ $(NAME)

oclean :
$(RM) $(OBJ)

fclean : clean oclean

re : oclean all

0 comments on commit 88bcfba

Please sign in to comment.