2026-07-18 18:48:23 +02:00
|
|
|
# Klammertext sks/target/ Makefile
|
|
|
|
|
# Improved version with automatic header dependency tracking
|
|
|
|
|
|
|
|
|
|
K := $(KLAMMERTEXT_HOME)
|
|
|
|
|
KS := $(K)/sks
|
|
|
|
|
KM := $(K)/mac
|
|
|
|
|
|
2026-07-22 18:17:43 +02:00
|
|
|
include $(K)/env/makefile.env
|
2026-07-18 18:48:23 +02:00
|
|
|
|
|
|
|
|
# Source files
|
2026-07-22 18:17:43 +02:00
|
|
|
SOURCES := html_util.cpp latex_util.cpp
|
|
|
|
|
OBJECTS := html_util.o latex_util.o
|
|
|
|
|
DEPFILES := html_util.d latex_util.d
|
2026-07-18 18:48:23 +02:00
|
|
|
|
|
|
|
|
# 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)
|