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>
This commit is contained in:
34
sks/target/Makefile
Normal file
34
sks/target/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
# Klammertext sks/target/ Makefile
|
||||
# Improved version with automatic header dependency tracking
|
||||
|
||||
K := $(KLAMMERTEXT_HOME)
|
||||
KS := $(K)/sks
|
||||
KM := $(K)/mac
|
||||
|
||||
include $(KM)/env/makefile.env
|
||||
|
||||
# Source files
|
||||
SOURCES := html_util.cpp latex_util.cpp font_resolve.cpp
|
||||
OBJECTS := html_util.o latex_util.o font_resolve.o
|
||||
DEPFILES := html_util.d latex_util.d font_resolve.d
|
||||
|
||||
# Additional include paths
|
||||
LOCAL_CPPFLAGS := -I$(KM) -I$(KS)/kutil
|
||||
|
||||
# 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 html_test latex_util_test *~
|
||||
|
||||
# Include generated dependency files (if they exist)
|
||||
-include $(DEPFILES)
|
||||
Reference in New Issue
Block a user