Files
cdesktop/cde/lib/tt/lib/Makefile.am
Jon Trulson 31e69340ce libtt: add -ltirpc as a dependency if we are using it
This means that when linking against libtt, libtirpc should also
automatically be linked in if we determined that we are using tirpc.

This avoids having to link every program that uses libtt (almost all
of them) from having to have a $(TIRPCLIB) added to their link
commands.
2019-11-19 18:09:21 -07:00

29 lines
501 B
Makefile

MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = api db mp util tttk
include ../tooltalk.inc
lib_LTLIBRARIES = libtt.la
libtt_la_CFLAGS = $(TIRPCINC)
if AIX
libtt_la_SOURCES = realpath.c
else
libtt_la_SOURCES =
endif
libtt_la_LIBADD = api/c/libapi.la api/dnd/libdnd.la db/libdb.la mp/libmp.la \
util/libutil.la tttk/libtttk.la -lstdc++
if SOLARIS
libtt_la_LIBADD += -lnsl -lsocket -lintl -ldl -lc -lw
endif
if LINUX
libtt_la_LIBADD += $(TIRPCLIB)
endif
libtt_la_LDFLAGS = -version-info 2:1:0