diff --git a/src/syncterm/GNUmakefile b/src/syncterm/GNUmakefile
index 07a4816f7fa29bf54d7a7c3ca33df5ba9b439ddf..d3fd71445aff7d09ba32f31fd529ad736fc1f90a 100644
--- a/src/syncterm/GNUmakefile
+++ b/src/syncterm/GNUmakefile
@@ -22,7 +22,9 @@ ifdef WITHOUT_CRYPTLIB
  CRYPT_LDFLAGS :=
  CRYPT_DEPS :=
 else
+ OBJS += $(MTOBJODIR)$(DIRSEP)st_crypt$(OFILE)
  OBJS += $(MTOBJODIR)$(DIRSEP)ssh$(OFILE)
+ OBJS += $(MTOBJODIR)$(DIRSEP)telnets$(OFILE)
  CFLAGS	+=	$(CRYPT_CFLAGS)
  EXTRA_LIBS	+=	$(CRYPT_LIBS)
  STATIC_CRYPTLIB	:= true
diff --git a/src/syncterm/conn.c b/src/syncterm/conn.c
index 9acf25030cdce0472b9e6f109b92efbdc4820fc7..13598edf20c7d3be853861ddee003497759a78ba 100644
--- a/src/syncterm/conn.c
+++ b/src/syncterm/conn.c
@@ -34,8 +34,10 @@
 #include "conn.h"
 #include "rlogin.h"
 #include "raw.h"
+#ifndef WITHOUT_CRYPTLIB
 #include "ssh.h"
 #include "telnets.h"
+#endif
 #ifndef __HAIKU__
 #include "modem.h"
 #endif
diff --git a/src/syncterm/extdeps.mk b/src/syncterm/extdeps.mk
index 459e24bd613270743086bff3cc79fb7747cfe822..646a34a9c8058102ed6e78b95b14ac3c83188370 100644
--- a/src/syncterm/extdeps.mk
+++ b/src/syncterm/extdeps.mk
@@ -1,3 +1,4 @@
-$(MTOBJODIR)$(DIRSEP)syncterm$(OFILE): $(CRYPT_LIB)
+$(MTOBJODIR)$(DIRSEP)st_crypt.h: $(CRYPT_LIB)
 $(MTOBJODIR)$(DIRSEP)st_crypt$(OFILE): $(CRYPT_LIB)
 $(MTOBJODIR)$(DIRSEP)ssh$(OFILE): $(CRYPT_LIB)
+$(MTOBJODIR)$(DIRSEP)telnets$(OFILE): $(CRYPT_LIB)
diff --git a/src/syncterm/objects.mk b/src/syncterm/objects.mk
index bcf2514f60d698ed9e5867dfebe931dea3e7f98f..76a464b5feeed413555aedd2a07cc53bb6c3c7cc 100644
--- a/src/syncterm/objects.mk
+++ b/src/syncterm/objects.mk
@@ -6,7 +6,6 @@ OBJS = \
                         $(MTOBJODIR)$(DIRSEP)ripper$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)rlogin$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)telnet_io$(OFILE) \
-                        $(MTOBJODIR)$(DIRSEP)telnets$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)conn_telnet$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)conn$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)telnet$(OFILE) \
@@ -15,6 +14,5 @@ OBJS = \
                         $(MTOBJODIR)$(DIRSEP)menu$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)zmodem$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)xmodem$(OFILE) \
-                        $(MTOBJODIR)$(DIRSEP)st_crypt$(OFILE) \
                         $(MTOBJODIR)$(DIRSEP)syncterm$(OFILE)