mirror of
https://github.com/Clortox/rss-cli.git
synced 2026-03-07 02:27:58 +00:00
Initial Commit
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
###############################################################################
|
||||
# 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 $@
|
||||
|
||||
clean :
|
||||
find . -type f -name '*.o' -delete
|
||||
rm -rf $(TARGET)
|
||||
Reference in New Issue
Block a user