Files
klammertext/sks/kutil/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

34 lines
719 B
Makefile

# Klammertext sks/kutil/ Makefile
# Improved version with automatic header dependency tracking
K := $(KLAMMERTEXT_HOME)
KM := $(K)/mac
include $(KM)/env/makefile.env
# Source files
SOURCES := kutil.cpp klammer_base.cpp
OBJECTS := kutil.o klammer_base.o
DEPFILES := kutil.d klammer_base.d
# Additional include paths
LOCAL_CPPFLAGS := -I$(KM)
# Compiler flags for dependency generation
DEPFLAGS = -MMD -MP -MF $(@:.o=.d)
.PHONY: all clean
# Default target
all : $(OBJECTS)
# Pattern rule for object files
%.o : %.cpp
$(CXX) -c $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CXXFLAGS) $(DEPFLAGS) $< -o $@
clean :
rm -f $(OBJECTS) $(DEPFILES) *.so *~
# Include generated dependency files (if they exist)
-include $(DEPFILES)