From 7f2da6131347898cc9719a0e930f3c7f9c0b792c Mon Sep 17 00:00:00 2001 From: Clortox Date: Fri, 23 Jul 2021 19:18:13 -0400 Subject: [PATCH] Initial Commit --- .gitignore | 9 +++++++++ Makefile | 31 +++++++++++++++++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ bin/.gitkeep | 0 4 files changed, 67 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 bin/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4febf2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +#ignore all .o files +src/**/*.o + +#ignore all swp files +**/*.swp + +#ignore all executables, but still keep the bin folder +bin/* +!bin/.gitkeep diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e3c4ee --- /dev/null +++ b/Makefile @@ -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) diff --git a/README.md b/README.md new file mode 100644 index 0000000..5cd8e2a --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +rss-cli +======= + +A unix-inspired cli application for interacting with rss feeds + +Build +===== + +Depends on +---------- + +- rapidxml +- libcurl + +To build +--------- + +`make all` + +To install +----------- + +`make install` + +Usage +===== + diff --git a/bin/.gitkeep b/bin/.gitkeep new file mode 100644 index 0000000..e69de29