From c454468ffc7ba0eca4f66b557477be5fd49fd4c8 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Thu, 23 Sep 2021 17:58:42 -0400 Subject: [PATCH] Initial commit --- Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 12 ++++++++++++ bin/.gitkeep | 0 3 files changed, 56 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100644 bin/.gitkeep diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1539b68 --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +############################################################################### +# Tyler Perkins +# 9-23-21 +# Makefile +# + +CC = g++ + +FLAGS = -pipe + +CFLAGS = -Wall +CFLAGS += -Ofast +CFLAGS += -std=c++17 +#CFLAGS += -g +#CFLAGS += -pg + +LIBRARIES = + +SRC = $(shell find ./src -name '*.cpp') +OBJ = $(subst .cpp,.o,$(SRC)) +BIN = ./bin + +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man + +TARGET = dashboard.out + +MAKEFLAGS += --jobs=4 + +all : $(OBJ) + @echo LD $@ + @$(CC) $(FLAGS) $(CFLAGS) -o $(BIN)/$(TARGET) $(OBJ) $(LIBRARIES) + +.cpp.o : + @echo CC $< + @$(CC) $(FLAGS) $(CFLAGS) $(LIBRARIES) $(DEFINITIONS) -c $< -o $@ + +install : all + +uninstall : + +clean : + find . -type f -name '*.o' -delete + rm -rf $(BIN)/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..2740c00 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +Forth +===== + +A weekend implementation of the Forth programming language + +Usage +===== + +``` +make all +make clean +``` diff --git a/bin/.gitkeep b/bin/.gitkeep new file mode 100644 index 0000000..e69de29