84 lines
3.0 KiB
Makefile
84 lines
3.0 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
bin_PROGRAMS = dtchat dtchat-headless dtchat-irc dtchat-telegram
|
|
noinst_PROGRAMS = dtchat-demo
|
|
|
|
man_MANS = dtchat.1
|
|
|
|
dtchat_CPPFLAGS = -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat \
|
|
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
|
|
|
|
# The model and the JSON schema helpers live in libDtChat/libDtChatIpc;
|
|
# DtInitialize/DTCLIENTLIBS come with T2.7.
|
|
dtchat_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
|
$(top_builddir)/lib/libDtChat/libDtChatIpc.la \
|
|
$(top_builddir)/lib/McdeSys/libMcdeSys.la $(XTOOLLIB)
|
|
|
|
dtchat_SOURCES = main.c ui_main.c ui_accounts.c ui_request.c ui_peer.c \
|
|
ui_file.c localui.c ui_call.c demo.c accounts_run.c ui_main.h \
|
|
ui_accounts.h ui_request.h ui_peer.h ui_file.h localui.h ui_call.h \
|
|
demo.h accounts_run.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 \
|
|
$(TLS_CPPFLAGS)
|
|
dtchat_irc_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
|
$(top_builddir)/lib/libDtChat/libDtChatIpc.la $(LIBTLS)
|
|
|
|
dtchat_headless_SOURCES = headless.c
|
|
dtchat_headless_CPPFLAGS = -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat
|
|
dtchat_headless_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
|
$(top_builddir)/lib/libDtChat/libDtChatIpc.la $(LIBTLS) $(CRYPTOLIB)
|
|
|
|
dtchat_telegram_SOURCES = telegram_adapter.c
|
|
dtchat_telegram_CPPFLAGS = -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat \
|
|
$(TDLIB_CPPFLAGS)
|
|
dtchat_telegram_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
|
$(top_builddir)/lib/libDtChat/libDtChatIpc.la $(TDLIBLIB) \
|
|
$(CRYPTOLIB)
|
|
|
|
if MCDE_GO
|
|
# whatsmeow is a Go library, so the WhatsApp adapter is a Go program built
|
|
# next to the others (no automake program: the sources are Go, not C).
|
|
all-local: dtchat-whatsapp
|
|
dtchat-whatsapp: $(srcdir)/whatsapp_adapter/main.go \
|
|
$(srcdir)/whatsapp_adapter/go.mod $(srcdir)/whatsapp_adapter/go.sum
|
|
cd $(srcdir)/whatsapp_adapter && \
|
|
GOFLAGS=-mod=mod GOSUMDB=off GOPROXY=off $(GO) build -o "$(abs_builddir)/dtchat-whatsapp" .
|
|
clean-local:
|
|
rm -f dtchat-whatsapp
|
|
install-exec-hook: dtchat-whatsapp
|
|
$(MKDIR_P) "$(DESTDIR)$(bindir)"
|
|
$(INSTALL_PROGRAM) dtchat-whatsapp \
|
|
"$(DESTDIR)$(bindir)/dtchat-whatsapp"
|
|
uninstall-hook:
|
|
rm -f "$(DESTDIR)$(bindir)/dtchat-whatsapp"
|
|
endif
|
|
|
|
if MCDE_STROPHE
|
|
bin_PROGRAMS += dtchat-xmpp
|
|
dtchat_xmpp_SOURCES = xmpp_adapter.c
|
|
dtchat_xmpp_CPPFLAGS = -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat
|
|
dtchat_xmpp_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
|
$(top_builddir)/lib/libDtChat/libDtChatIpc.la $(STROPHELIB) \
|
|
$(CRYPTOLIB)
|
|
endif
|
|
|
|
appdefaultsdir = $(CDE_INSTALLATION_TOP)/app-defaults/C
|
|
dist_appdefaults_DATA = Dtchat
|
|
|
|
if SOLARIS
|
|
dtchat_LDADD += -lintl
|
|
endif
|