24 lines
363 B
Makefile
24 lines
363 B
Makefile
|
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)
|