Files
mcde/programs/dthelp/parser/pass2/util/Makefile.am
T
lotherkandClaude Sonnet 5.5 455f5c2327 MCDE: build tools run on the build host; docs and appbuilder are options (cross build)
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:29:16 +00:00

33 lines
1.2 KiB
Makefile

MAINTAINERCLEANFILES = Makefile.in
.NOTPARALLEL:
noinst_LIBRARIES = libutil.a
# context and fclndir are build tools: the parsers' Makefiles run them to make
# their tables, so they must run on the build host, not on the target (Error 127
# for a cross build, build/logs/mcde-nodocs-2026-11-14b.log). libutil.a is
# linked into target programs too, so these are not automake programs: the
# build host's compiler (the values come from AM_MAKEFLAGS in the top
# Makefile.am) compiles them with the sources of libutil.
HOSTUTIL_C = $(filter %.c,$(libutil_a_SOURCES))
EXTRA_DIST = context.c
CLEANFILES = context fclndir
all-local: context fclndir
context: context.c $(HOSTUTIL_C)
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/context.c $(addprefix $(srcdir)/,$(HOSTUTIL_C)) $(LDFLAGS_FOR_BUILD)
fclndir: context
cp context fclndir
libutil_a_SOURCES = allwhite.c inctest.c letter.c triedump.c \
triepdmp.c trieplk.c trierset.c upcmp8.c upstrcmp.c wchar.c \
conutil.c error.c exit.c itoa.c malloc.c openchk.c \
trie.c triecnt.c whitesp.c basic.h common.h \
dtddef.h entdef.h sparse.h trie.h chartype.h cont.h dtdext.h \
entext.h sref.h version.h
# FIXME I think emptyfil.c and fclndir.c can be deleted?