alee-forth/Makefile
2023-02-17 08:15:30 -05:00

21 lines
371 B
Makefile

CXXFLAGS += -std=c++17 -g3 -ggdb -O0
CXXFILES := corewords.cpp dictionary.cpp parser.cpp state.cpp types.cpp
OBJFILES := $(subst .cpp,.o,$(CXXFILES))
LIBFILE := libalee.a
EXEFILE := alee
all: $(EXEFILE)
small: CXXFLAGS += -Os
small: $(EXEFILE)
$(EXEFILE): $(LIBFILE)
$(LIBFILE): $(OBJFILES)
$(AR) cr $@ $(OBJFILES)
clean:
rm -f $(EXEFILE) $(LIBFILE) $(OBJFILES)