summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: d8ee75fb36a7a9c9a35e972f7b6a086cfd64670e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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

libmandir = $(mandir)/man$(LIB_MAN_SUFFIX)
libman_SOURCES = Xau.man
BUILT_SOURCES = shadows.DONE
CLEANFILES = $(libman_DATA)
libman_DATA = $(libman_SOURCES:man=@LIB_MAN_SUFFIX@) \
	      $(Xau_shadows:=.@LIB_MAN_SUFFIX@)

EXTRA_DIST = xau.pc.in Autest.c $(libman_SOURCES)

Xau_shadows =                               \
    XauFileName                             \
    XauReadAuth                             \
    XauLockAuth                             \
    XauUnlockAuth                           \
    XauWriteAuth                            \
    XauDisposeAuth                          \
    XauGetAuthByAddr                        \
    XauGetBestAuthByAddr

shadows.DONE:
	-rm -f $(Xau_shadows:=.@LIB_MAN_SUFFIX@)
	(for i in $(Xau_shadows:=.@LIB_MAN_SUFFIX@) ; do \
	 echo .so man$(LIB_MAN_SUFFIX)/Xau.$(LIB_MAN_SUFFIX) > $$i; \
	 done)

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)