You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
313 B
20 lines
313 B
## Simple C Makefile
|
|
|
|
SRC = ./src/main.c
|
|
NAME = apic
|
|
CC = gcc
|
|
RM = rm -f
|
|
OBJ = $(SRC:.c=.o)
|
|
CFLAGS = -O2 -W -Wall -Wextra -Werror
|
|
CFLAGS += -I./hds/
|
|
all : $(NAME)
|
|
$(NAME) : $(OBJ)
|
|
$(CC) -o $(NAME) $(OBJ) -lcurl
|
|
clean :
|
|
$(RM) $(OBJ)
|
|
fclean : clean
|
|
$(RM) $(NAME)
|
|
re : fclean all
|
|
.PHONY : all clean fclean re
|
|
|