diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-09 16:41:34 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-09 16:41:34 -0500 |
commit | 5bc9e4d2add7d2185b2c57a18ebd15b31f5366bd (patch) | |
tree | 6cb3b598dc8d6a86936bf236e8fc93df83770ada /Makefile | |
parent | 92680120c6e3902644171c37eb7b271cf2d82250 (diff) |
build as library; add small target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,13 +1,21 @@ -CXXFLAGS += -g3 -ggdb -O0 +CXXFLAGS += -std=c++17 -g3 -ggdb -O0 -CXXFILES := corewords.cpp types.cpp +CXXFILES := corewords.cpp dictionary.cpp executor.cpp parser.cpp state.cpp \ + types.cpp OBJFILES := $(subst .cpp,.o,$(CXXFILES)) +LIBFILE := libalee.a EXEFILE := alee -all: alee +all: $(EXEFILE) -alee: $(OBJFILES) +small: CXXFLAGS += -Os +small: $(EXEFILE) + +$(EXEFILE): $(LIBFILE) + +$(LIBFILE): $(OBJFILES) + $(AR) cr $@ $(OBJFILES) clean: - rm -f alee $(OBJFILES) + rm -f $(EXEFILE) $(LIBFILE) $(OBJFILES) |