Initial commit
This commit is contained in:
commit
c454468ffc
44
Makefile
Normal file
44
Makefile
Normal file
@ -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)/*
|
12
README.md
Normal file
12
README.md
Normal file
@ -0,0 +1,12 @@
|
||||
Forth
|
||||
=====
|
||||
|
||||
A weekend implementation of the Forth programming language
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
```
|
||||
make all
|
||||
make clean
|
||||
```
|
0
bin/.gitkeep
Normal file
0
bin/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user