summaryrefslogtreecommitdiff
path: root/lib/libXdmcp/Makefile.am
blob: 3c45924fbd3d47cd94956567fa330a755416bfbc (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
63
64
65
66
SUBDIRS=doc . test

lib_LTLIBRARIES = libXdmcp.la

AM_CPPFLAGS = -I${top_srcdir}/include
AM_CFLAGS = \
	$(XDMCP_CFLAGS) \
	$(CWARNFLAGS)

libXdmcp_la_LDFLAGS = -version-number 6:0:0 -no-undefined
libXdmcp_la_LIBADD = $(XDMCP_LIBS)
libXdmcp_la_SOURCES = \
	Array.c \
	Fill.c \
	Flush.c \
	Key.c \
	Read.c \
	Unwrap.c \
	Wrap.c \
	Wrap.h \
	Write.c

if HASXDMAUTH
nodist_libXdmcp_la_SOURCES = Wraphelp.c
endif HASXDMAUTH

xdmcpincludedir=$(includedir)/X11

xdmcpinclude_HEADERS = \
	include/X11/Xdmcp.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xdmcp.pc

MAINTAINERCLEANFILES = ChangeLog INSTALL
EXTRA_DIST = autogen.sh Wraphelp.c Wraphelp.README.crypto README.md

if LINT
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
		$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)

lint:
	$(LINT) $(ALL_LINT_FLAGS) $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES) $(LIBS) $(XDMCP_LIBS)
endif LINT

if MAKE_LINT_LIB
lintlibdir = $(libdir)

lintlib_DATA = $(LINTLIB)

$(LINTLIB): $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES)
	$(LINT) -y -oXdmcp -x $(ALL_LINT_FLAGS) $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES)
endif MAKE_LINT_LIB


.PHONY: ChangeLog INSTALL

INSTALL:
	$(INSTALL_CMD)

ChangeLog:
	$(CHANGELOG_CMD)

dist-hook: ChangeLog INSTALL

CLEANFILES=$(lintlib_DATA)