make: -L. travels with -lsplinter, ahead of a package's -L
A pkgsrc build passes -L=/usr/pkg/lib before -L., so `-lsplinter' found the libsplinter.so that an earlier package had installed and ignored the one just built. On the cross build this stopped `splinter' with "undefined reference to sp_engine_sources", a function added to engine.c that morning: /usr/pkg/lib/libsplinter.so was the file of 22.11 22:26 (build/logs/release-2026-11-23l-cross.log:78). The tree's own build was never affected, only the package build -- which is the one that ships. SPLLIB carries -L. and -l together and the binary's link puts it before $(LDFLAGS). 72 link lines changed; LDFLAGS moved behind the library for splinter and splinterctl. Verified: make clean && make -j8 rc=0, ./splinter --version prints the stamp; with LDFLAGS=-L/tmp (holding a stale libsplinter.so) the build still links, 0 undefined references.
This commit is contained in:
1 parent
9b2fee66a2
commit
85556ce889
1 file changed
+80
-71
@@ -31,6 +31,15 @@ CURSES_LIB ?= $(CURSES_DIR)/libcurses/libcurses.a \
|
||||
CURSES_DEP ?= $(CURSES_LIB)
|
||||
|
||||
LIB = libsplinter.so
|
||||
# The library in this directory comes first, before every -L a package build
|
||||
# adds: a pkgsrc build passes -L=/usr/pkg/lib, and an older libsplinter.so
|
||||
# installed there was what `-lsplinter` found -- the freshly built one was
|
||||
# ignored, so a binary linked against the library of the previous release
|
||||
# (measured 2026-11-23: /usr/pkg/lib/libsplinter.so from 22.11. 22:26 made
|
||||
# `splinter` stop with "undefined reference to sp_engine_sources", a function
|
||||
# that had been added to engine.c the same day). -L. therefore travels with
|
||||
# the -l, ahead of $(LDFLAGS).
|
||||
SPLLIB = -L. -lsplinter
|
||||
LIBOBJ = src/backend/buf.o src/backend/tool.o src/backend/session.o src/backend/conv.o src/backend/compact.o src/backend/transport.o \
|
||||
src/backend/json.o src/backend/sse.o src/backend/openai.o src/backend/transport_openai.o \
|
||||
src/backend/anthropic.o src/backend/transport_anthropic.o src/backend/builtin.o \
|
||||
@@ -101,57 +110,57 @@ $(LIB): $(LIBOBJ_ALL) $(CURSES_DEP)
|
||||
# The reference client links the library for the JSON it cannot be bothered to
|
||||
# write twice, but never the curses code and never the engine's internals.
|
||||
$(CLIENT): $(CLIENTOBJ) $(LIB)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(CLIENTOBJ) -L. -lsplinter $(RPATH) \
|
||||
$(CC) $(CFLAGS) -o $@ $(CLIENTOBJ) $(SPLLIB) $(LDFLAGS) $(RPATH) \
|
||||
$(LIBS)
|
||||
|
||||
$(BIN): $(BINOBJ) $(LIB) $(CURSES_DEP)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(BINOBJ) -L. -lsplinter $(RPATH) \
|
||||
$(CC) $(CFLAGS) -o $@ $(BINOBJ) $(SPLLIB) $(LDFLAGS) $(RPATH) \
|
||||
$(CURSES_LIB) $(LIBS)
|
||||
|
||||
plugins/clock/clock.so: plugins/clock/clock.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/clock/clock.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/clock/clock.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/lcm/lcm.so: plugins/lcm/lcm.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/lcm/lcm.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/lcm/lcm.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/session/session.so: plugins/session/session.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/session/session.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/session/session.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/foreign/foreign.so: plugins/foreign/foreign.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/foreign/foreign.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/foreign/foreign.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/cli/cli.so: plugins/cli/cli.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cli/cli.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cli/cli.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/ring/ring.so: plugins/ring/ring.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/ring/ring.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/ring/ring.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/kids/kids.so: plugins/kids/kids.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/kids/kids.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/kids/kids.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/processes/processes.so: plugins/processes/processes.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/processes/processes.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/processes/processes.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/status/status.so: plugins/status/status.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/status/status.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/status/status.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/reminder/reminder.so: plugins/reminder/reminder.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/reminder/reminder.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/reminder/reminder.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/mcp/mcp.so: plugins/mcp/mcp.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/mcp/mcp.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/mcp/mcp.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/focus/focus.so: plugins/focus/focus.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/focus/focus.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/focus/focus.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/cps/cps.so: plugins/cps/cps.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cps/cps.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cps/cps.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
.c.o:
|
||||
@@ -225,116 +234,116 @@ src/main.o: include/splinter.h include/splinter_engine.h \
|
||||
src/frontend/ui_backend.h src/backend/config.h src/backend/i18n.h include/splinter_plugin.h src/frontend/ui.h src/backend/theme.h src/backend/a2aserver.h
|
||||
|
||||
tests/test_buf: tests/test_buf.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_buf.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_buf.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_tool: tests/test_tool.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_tool.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_tool.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_session: tests/test_session.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_session.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_session.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_transport: tests/test_transport.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_transport.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_transport.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_agent: tests/test_agent.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_agent.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_agent.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_conv: tests/test_conv.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_conv.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_conv.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_openai: tests/test_openai.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_openai.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_openai.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_theme: tests/test_theme.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_theme.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_theme.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_focus: tests/test_focus.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_focus.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_focus.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_skills: tests/test_skills.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_skills.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_skills.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_telegram: tests/test_telegram.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_telegram.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_telegram.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_delegate: tests/test_delegate.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_delegate.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_delegate.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_builtin: tests/test_builtin.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_builtin.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_builtin.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_ack: tests/test_ack.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_ack.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_ack.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_i18n: tests/test_i18n.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_i18n.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_i18n.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_ascii: tests/test_ascii.c $(LIB) $(BINOBJ) $(CURSES_DEP)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_ascii.c src/frontend/curses.o -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_ascii.c src/frontend/curses.o $(SPLLIB) \
|
||||
$(TEST_RPATH) $(CURSES_LIB) $(LIBS)
|
||||
tests/test_md: tests/test_md.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_md.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_md.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_tgmd: tests/test_tgmd.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_tgmd.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_tgmd.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_providers: tests/test_providers.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_providers.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_providers.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_b64: tests/test_b64.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_b64.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_b64.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_pause: tests/test_pause.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_pause.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_pause.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_swarm: tests/test_swarm.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_swarm.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_swarm.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_provstate: tests/test_provstate.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_provstate.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_provstate.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_agents: tests/test_agents.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_agents.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_agents.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_confblock: tests/test_confblock.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_confblock.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_confblock.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_engine: tests/test_engine.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_engine.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_engine.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_junction: tests/test_junction.c $(LIB) plugins/junction/junction.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_junction.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_junction.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_self: tests/test_self.c $(LIB) plugins/self/self.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_self.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_self.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_fuzz: tests/test_fuzz.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_fuzz.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_fuzz.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_sessiontools: tests/test_sessiontools.c $(LIB) plugins/session/session.so plugins/foreign/foreign.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_sessiontools.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_sessiontools.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_foreign: tests/test_foreign.c $(LIB) plugins/foreign/foreign.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_foreign.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_foreign.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_foreignopen: tests/test_foreignopen.c $(LIB) plugins/foreign/foreign.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_foreignopen.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_foreignopen.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
# ui_remote.o is linked next to the library: the backend under test is front-end
|
||||
# code (it speaks the protocol over a socket) and libsplinter has no ui_* in it.
|
||||
tests/test_remote_list: tests/test_remote_list.c $(LIB) src/frontend/ui_remote.o \
|
||||
src/frontend/protocol.o
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_remote_list.c src/frontend/ui_remote.o \
|
||||
src/frontend/protocol.o -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
src/frontend/protocol.o $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_usage: tests/test_usage.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_usage.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_usage.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_jobs: tests/test_jobs.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_jobs.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_jobs.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_config: tests/test_config.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_config.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_config.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_anthropic: tests/test_anthropic.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_anthropic.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_anthropic.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_sse: tests/test_sse.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_sse.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_sse.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_cli: tests/test_cli.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_cli.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_cli.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_compactor: tests/test_compactor.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_compactor.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_compactor.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
tests/test_corecompact: tests/test_corecompact.c $(LIB)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_corecompact.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_corecompact.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_secrets: tests/test_secrets.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_secrets.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_secrets.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_mcpclient: tests/test_mcpclient.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_mcpclient.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_mcpclient.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_kids: tests/test_kids.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_kids.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_kids.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_embed: tests/test_embed.c $(LIB) $(HDRS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_embed.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_embed.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/plugin_lifecycle.so: tests/plugin_lifecycle.c $(LIB) $(HDRS)
|
||||
$(CC) $(CFLAGS) -shared -o $@ tests/plugin_lifecycle.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ tests/plugin_lifecycle.c $(SPLLIB) \
|
||||
$(TEST_RPATH) $(LIBS)
|
||||
tests/test_lifecycle: tests/test_lifecycle.c $(LIB) tests/plugin_lifecycle.so
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_lifecycle.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_lifecycle.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
tests/test_plugin: tests/test_plugin.c $(LIB) $(PLUGIN)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_plugin.c -L. -lsplinter $(TEST_RPATH) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ tests/test_plugin.c $(SPLLIB) $(TEST_RPATH) $(LIBS)
|
||||
|
||||
# Every test runs under a 64 MB address-space limit: splinter is meant to
|
||||
# be small, and a test that runs away (a retry loop appending to a buffer
|
||||
@@ -401,12 +410,12 @@ install: all $(CURSES_DEP)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib \
|
||||
$(DESTDIR)$(PREFIX)/lib/splinter/plugins
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-rpath,'$$ORIGIN/../lib' \
|
||||
-o $(DESTDIR)$(PREFIX)/bin/.splinter.new $(BINOBJ) -L. -lsplinter \
|
||||
-o $(DESTDIR)$(PREFIX)/bin/.splinter.new $(BINOBJ) $(SPLLIB) \
|
||||
$(CURSES_LIB) $(LIBS)
|
||||
mv -f $(DESTDIR)$(PREFIX)/bin/.splinter.new \
|
||||
$(DESTDIR)$(PREFIX)/bin/splinter
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-rpath,'$$ORIGIN/../lib' \
|
||||
-o $(DESTDIR)$(PREFIX)/bin/.$(CLIENT).new $(CLIENTOBJ) -L. -lsplinter \
|
||||
-o $(DESTDIR)$(PREFIX)/bin/.$(CLIENT).new $(CLIENTOBJ) $(SPLLIB) \
|
||||
$(LIBS)
|
||||
mv -f $(DESTDIR)$(PREFIX)/bin/.$(CLIENT).new \
|
||||
$(DESTDIR)$(PREFIX)/bin/$(CLIENT)
|
||||
@@ -427,24 +436,24 @@ clean:
|
||||
.PHONY: all check curses install clean
|
||||
|
||||
plugins/provider/provider.so: plugins/provider/provider.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/provider/provider.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/provider/provider.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/scheduler/scheduler.so: plugins/scheduler/scheduler.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/scheduler/scheduler.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/scheduler/scheduler.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
plugins/a2a/a2a.so: plugins/a2a/a2a.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/a2a/a2a.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/a2a/a2a.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/junction/junction.so: plugins/junction/junction.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/junction/junction.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/junction/junction.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
|
||||
plugins/cache/cache.so: plugins/cache/cache.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cache/cache.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/cache/cache.c $(SPLLIB) \
|
||||
$(PLUGIN_LDFLAGS)
|
||||
|
||||
plugins/self/self.so: plugins/self/self.c $(LIB)
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/self/self.c -L. -lsplinter \
|
||||
$(CC) $(CFLAGS) -shared -o $@ plugins/self/self.c $(SPLLIB) \
|
||||
$(PLUGIN_RPATH) $(LIBS)
|
||||
Reference in new issue
Block a user