summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2022-04-11 10:03:47 +0200
committerGerd Hoffmann <kraxel@redhat.com>2022-04-22 14:52:30 +0200
commit67c81a2a3490f53ba26411b031c164e583d8c695 (patch)
treea00a07052ca196b518817d94ea6b9ec080a8d80f /GNUmakefile
parentc264e4319195e2cc7b2b77194abc610ff08baafd (diff)
downloadamtterm-67c81a2a3490f53ba26411b031c164e583d8c695.tar.gz
Merge branch 'ssl'
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c05b5b3..fb5684b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,11 +1,24 @@
# config
+#USE_OPENSSL=1
+#USE_GNUTLS=1
srcdir = .
VPATH = $(srcdir)
-include Make.config
include $(srcdir)/mk/Variables.mk
+ifdef USE_OPENSSL
+SSL_DEFS=-DUSE_OPENSSL
+pkglst+=openssl
+endif
+
+ifdef USE_GNUTLS
+SSL_DEFS=-DUSE_GNUTLS
+pkglst+=gnutls
+endif
+
CFLAGS += -Wall -Wno-pointer-sign
CFLAGS += -DVERSION='"$(VERSION)"'
+CFLAGS += $(SSL_DEFS)
TARGETS := amtterm
DESKTOP := $(wildcard *.desktop)
@@ -60,8 +73,8 @@ distclean: clean
#################################################################
-amtterm: amtterm.o redir.o tcp.o
-gamt: gamt.o redir.o tcp.o parseconfig.o
+amtterm: amtterm.o redir.o tcp.o auth.o ssl.o
+gamt: gamt.o redir.o tcp.o parseconfig.o auth.o ssl.o
#################################################################