misc/kforth: Start over.

This commit is contained in:
2018-03-02 08:47:56 -08:00
parent 7c5297118a
commit a1149654d4
7 changed files with 91 additions and 0 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
CXXSTD := c++14
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -O0 -g
LDFLAGS := -static
OBJS := linux/io.o \
io.o \
system.o \
parser.o \
word.o \
dict.o \
kforth.o
TARGET := kforth
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS)
clean:
rm -f $(OBJS) $(TARGET)
install: $(TARGET)
cp $(TARGET) ~/bin
chmod 0755 ~/bin/$(TARGET)