aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-01-06 11:47:14 +1000
committerSteve Bennett <steveb@workware.net.au>2022-02-23 12:26:28 +1000
commit53300d38fc16d202c0f85b424a0fd357e67013a7 (patch)
treeda5bb602f4c92ac88e6702eec131a24aaf254002 /Makefile.in
parentf9be00a014afa3be4e53c62e9b4cd32f066484ba (diff)
downloadjimtcl-53300d38fc16d202c0f85b424a0fd357e67013a7.zip
jimtcl-53300d38fc16d202c0f85b424a0fd357e67013a7.tar.gz
jimtcl-53300d38fc16d202c0f85b424a0fd357e67013a7.tar.bz2
build: Build unversioned shared lib
In order for build-jim-ext to work against an uninstalled, shared libjim we also need to create the unversioned symlink. But not on Windows where we don't currently version the shared lib. Fixes: #216 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index bf3f29c..d05e10b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -158,8 +158,11 @@ $(LIBJIM): $(OBJS)
$(Q)$(AR) cr $@ $(OBJS)
$(Q)$(RANLIB) $@
@else
- $(ECHO) " LDSO $@"
+ $(ECHO) " LDSO $@ libjim@SH_SOEXT@"
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS) $(LIBS)
+@if SH_SOEXT ne LIBSOEXT
+ $(Q)ln -s -f $@ libjim@SH_SOEXT@
+@endif
@endif
@BUILD_SHOBJS@
@@ -208,7 +211,7 @@ coverage:
@endif
clean:
- rm -f *.o *.so *.dll *.exe lib*.a $(JIMSH) $(LIBJIM) Tcl.html _*.c
+ rm -f *.o *.so *.dll *.exe lib*.a $(JIMSH) $(LIBJIM) Tcl.html _*.c libjim@SH_SOEXT@
@if COVERAGE
rm -f *.gcno *.gcov *.gcda */*.gcno */*.gcda */*.gcov coverage*.html
rm -rf coverage_html lcov.txt genhtml_output.txt