2018-02-23 22:01:52 +00:00
|
|
|
CXXSTD := c++14
|
2018-02-28 03:59:29 +00:00
|
|
|
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -Os -static
|
|
|
|
LDFLAGS := -static
|
2018-02-22 19:38:27 +00:00
|
|
|
OBJS := linux/io.o \
|
2018-02-24 03:19:29 +00:00
|
|
|
io.o \
|
2018-02-28 03:59:29 +00:00
|
|
|
system.o \
|
2018-02-23 17:07:12 +00:00
|
|
|
parser.o \
|
2018-02-25 06:35:58 +00:00
|
|
|
word.o \
|
|
|
|
dict.o \
|
2018-02-22 19:38:27 +00:00
|
|
|
kforth.o
|
|
|
|
TARGET := kforth
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
2018-02-28 03:59:29 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
|
|
|
|
strip $@
|
2018-02-22 19:38:27 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|
2018-02-25 06:35:58 +00:00
|
|
|
|
|
|
|
install: $(TARGET)
|
|
|
|
cp $(TARGET) ~/bin
|
|
|
|
chmod 0755 ~/bin/$(TARGET)
|