Files
klammertext/sks/book/Makefile
Andy Kopra 2ba7ceee7a Initial commit: Klammertext source distribution
Curated source subset assembled by klammertext-dev's doc/make_dist.sh: the Klammermachine (mac), the Standard Klammer Set (sks), the commands (com), editor plugins and install guides (doc), a test subset (tst), and lib/bin placeholders. Builds with 'make -C com'.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 19:32:38 +02:00

18 lines
332 B
Makefile

FLAGS = -std=c++17 -fvisibility=hidden -I $(KLAMMERTEXT_HOME)/src
ifdef OPTIMIZE
OPTIMIZE = -O3
else ifdef NOPYTHON
OPTIMIZE = -O0 -g -DNOPYTHON
else
OPTIMIZE = -ggdb
endif
book.so : book.cpp
$(CXX) $(FLAGS) $(OPTIMIZE) -fPIC -c book.cpp
$(CXX) $(FLAGS) $(OPTIMIZE) -shared -o book.so book.o
clean :
rm -f book.o book.so *~