Files
mcde/programs/dtchat/Makefile.am
T
lotherk ee43f07e4c dtchat: add the IRC adapter skeleton (T3.1)
dtchat-irc speaks protocol v1 on stdio: hello with the six-field schema (host, port, tls, nick, password, channels), configure, connect, non-blocking getaddrinfo/connect, NICK/USER, PING/PONG, state connecting/online/offline and PRIVMSG on send. TLS, CAP, SASL, channels and the full parser are T3.2-T3.6; tls:true gets a clear non-fatal error instead of a silent plain connection. Verified against a local fake IRC server: 13/13 checks (schema, connecting, online after prefixed 001, NICK/USER, PONG, PRIVMSG, bye, exit 0, empty stderr). Built as noinst dtchat-irc; make mcde-host still waits for the lock.
2026-11-16 19:09:25 +00:00

33 lines
1.1 KiB
Makefile

MAINTAINERCLEANFILES = Makefile.in
bin_PROGRAMS = dtchat
noinst_PROGRAMS = dtchat-demo dtchat-irc
dtchat_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
# The model lives in libDtChat; DtInitialize/DTCLIENTLIBS come with T2.7.
dtchat_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la $(XTOOLLIB)
dtchat_SOURCES = main.c ui_main.c ui_accounts.c ui_request.c demo.c \
ui_main.h ui_accounts.h ui_request.h demo.h
dtchat_demo_SOURCES = demo_adapter.c
dtchat_demo_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat
dtchat_demo_LDADD = $(top_builddir)/lib/libDtChat/libDtChatIpc.la
dtchat_irc_SOURCES = irc_adapter.c
dtchat_irc_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat
dtchat_irc_LDADD = $(top_builddir)/lib/libDtChat/libDtChatIpc.la
appdefaultsdir = $(CDE_INSTALLATION_TOP)/app-defaults/C
dist_appdefaults_DATA = Dtchat
if SOLARIS
dtchat_LDADD += -lintl
endif