rss-cli/Makefile

35 lines
530 B
Makefile
Raw Normal View History

2021-07-23 23:18:13 +00:00
###############################################################################
# Tyler Perkins
# 7-21-21
# Makefile
#
CC = g++
FLAGS = -pipe
CFLAGS = -Wall
CFLAGS += -Ofast
#CFLAGS += -g
LIBRARIES = -lcurl
SRC = $(shell find . -name '*.cpp')
OBJ = $(subst .cpp,.o,$(SRC))
BIN = ./bin
TARGET = $(BIN)/rss-cli
all : $(OBJ)
$(CC) $(FLAGS) $(CFLAGS) -o $(TARGET) $(OBJ) $(LIBRARIES)
.cpp.o :
$(CC) $(FLAGS) $(CFLAGS) $(LIBRARIES) -c $< -o $@
2021-07-25 23:22:38 +00:00
install : all
2021-07-23 23:18:13 +00:00
clean :
find . -type f -name '*.o' -delete
rm -rf $(TARGET)