2006-11-25 09:53:47 -07:00
|
|
|
lib_LTLIBRARIES = libXau.la
|
|
|
|
|
|
|
|
AM_CFLAGS = $(XAU_CFLAGS)
|
|
|
|
|
|
|
|
INCLUDES = -I${top_srcdir}/include
|
|
|
|
|
|
|
|
libXau_la_LDFLAGS = -version-number 6:0:0 -no-undefined
|
|
|
|
|
|
|
|
libXau_la_LIBADD = $(XAU_LIBS)
|
|
|
|
|
|
|
|
libXau_la_SOURCES = \
|
|
|
|
AuDispose.c \
|
|
|
|
AuFileName.c \
|
|
|
|
AuGetAddr.c \
|
|
|
|
AuGetBest.c \
|
|
|
|
AuLock.c \
|
|
|
|
AuRead.c \
|
|
|
|
AuUnlock.c \
|
|
|
|
AuWrite.c
|
|
|
|
|
|
|
|
if KERBEROS
|
|
|
|
libXau_la_SOURCES +=k5encode.c
|
|
|
|
endif KERBEROS
|
|
|
|
|
|
|
|
xauincludedir=$(includedir)/X11
|
|
|
|
|
|
|
|
xauinclude_HEADERS = include/X11/Xauth.h
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = xau.pc
|
|
|
|
|
2006-12-16 14:38:42 -07:00
|
|
|
check_PROGRAMS=Autest
|
|
|
|
TESTS=Autest
|
|
|
|
|
|
|
|
Autest_SOURCES=Autest.c
|
|
|
|
Autest_LDADD=libXau.la
|
|
|
|
|
|
|
|
if LINT
|
|
|
|
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS)
|
|
|
|
|
|
|
|
lint:
|
|
|
|
$(LINT) $(ALL_LINT_FLAGS) $(libXau_la_SOURCES)
|
|
|
|
endif LINT
|
|
|
|
|
|
|
|
if MAKE_LINT_LIB
|
|
|
|
lintlibdir = $(libdir)
|
|
|
|
|
|
|
|
lintlib_DATA = $(LINTLIB)
|
|
|
|
|
|
|
|
$(LINTLIB): $(libXau_la_SOURCES)
|
|
|
|
$(LINT) -y -oXau -x $(ALL_LINT_FLAGS) $(libXau_la_SOURCES)
|
|
|
|
endif MAKE_LINT_LIB
|
|
|
|
|
2006-11-25 09:53:47 -07:00
|
|
|
LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
|
|
|
|
|
|
|
|
libmandir = $(LIB_MAN_DIR)
|
|
|
|
libman_PRE = Xau.man
|
2008-08-27 13:42:20 -06:00
|
|
|
BUILT_SOURCES = $(Xau_shadows:=.@LIB_MAN_SUFFIX@)
|
2006-12-16 14:38:42 -07:00
|
|
|
CLEANFILES = $(libman_DATA) $(BUILT_SOURCES) $(lintlib_DATA)
|
2006-11-25 09:53:47 -07:00
|
|
|
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
|
|
|
|
$(Xau_shadows:=.@LIB_MAN_SUFFIX@)
|
|
|
|
|
2006-12-16 14:38:42 -07:00
|
|
|
EXTRA_DIST = xau.pc.in $(libman_PRE) ChangeLog
|
2006-11-25 09:53:47 -07:00
|
|
|
|
|
|
|
Xau_shadows = \
|
|
|
|
XauFileName \
|
|
|
|
XauReadAuth \
|
|
|
|
XauLockAuth \
|
|
|
|
XauUnlockAuth \
|
|
|
|
XauWriteAuth \
|
|
|
|
XauDisposeAuth \
|
|
|
|
XauGetAuthByAddr \
|
|
|
|
XauGetBestAuthByAddr
|
|
|
|
|
2008-08-27 13:42:20 -06:00
|
|
|
Xau_shadows_man = $(Xau_shadows:=.@LIB_MAN_SUFFIX@)
|
|
|
|
$(Xau_shadows_man):
|
|
|
|
echo .so man$(LIB_MAN_DIR_SUFFIX)/Xau.$(LIB_MAN_SUFFIX) > $@
|
2006-11-25 09:53:47 -07:00
|
|
|
|
|
|
|
XORGRELSTRING = @PACKAGE_STRING@
|
|
|
|
XORGMANNAME = X Version 11
|
|
|
|
|
|
|
|
Xau.$(LIB_MAN_SUFFIX): $(srcdir)/Xau.man
|
|
|
|
sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
|
|
|
|
< $(srcdir)/Xau.man > Xau.$(LIB_MAN_SUFFIX)
|
2006-12-16 14:38:42 -07:00
|
|
|
|
|
|
|
.PHONY: ChangeLog
|
|
|
|
|
|
|
|
ChangeLog:
|
|
|
|
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
|
|
|
|
|
|
|
|
dist-hook: ChangeLog
|