alee-forth/Makefile

21 lines
371 B
Makefile
Raw Normal View History

2023-02-09 16:41:34 -05:00
CXXFLAGS += -std=c++17 -g3 -ggdb -O0
2023-02-09 10:30:55 -05:00
2023-02-17 08:15:30 -05:00
CXXFILES := corewords.cpp dictionary.cpp parser.cpp state.cpp types.cpp
2023-02-09 10:30:55 -05:00
OBJFILES := $(subst .cpp,.o,$(CXXFILES))
2023-02-09 16:41:34 -05:00
LIBFILE := libalee.a
2023-02-09 10:30:55 -05:00
EXEFILE := alee
2023-02-09 16:41:34 -05:00
all: $(EXEFILE)
2023-02-09 10:30:55 -05:00
2023-02-09 16:41:34 -05:00
small: CXXFLAGS += -Os
small: $(EXEFILE)
$(EXEFILE): $(LIBFILE)
$(LIBFILE): $(OBJFILES)
$(AR) cr $@ $(OBJFILES)
2023-02-09 10:30:55 -05:00
clean:
2023-02-09 16:41:34 -05:00
rm -f $(EXEFILE) $(LIBFILE) $(OBJFILES)
2023-02-09 10:30:55 -05:00