Files
sandbox/Makefile
Kyle Isom 6a49675314 misc/kforth: Add system status, work on vocab, better write_num.
- Now system structure includes a status variable and an associated
  function for writing the status out.
- Adding more words to the builtin dictionary.
- write_num round 3.
- Include option to not print the stack each iteration.
2018-06-05 15:40:55 -07:00

25 lines
379 B
Makefile

CXXSTD := c++14
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -Os -static
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) $(CXXFLAGS) -o $@ $(OBJS)
strip $@
clean:
rm -f $(OBJS) $(TARGET)
install: $(TARGET)
cp $(TARGET) ~/bin
chmod 0755 ~/bin/$(TARGET)