summaryrefslogtreecommitdiff
path: root/sss_client/Makefile.am
blob: eaedc5f900dd5e42c89f2f53afe70863c21ee012 (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
SUBDIRS = po

topdir=.
AM_CPPFLAGS = \
    -I$(topdir) \
    -DLOCALEDIR=\"\$(localedir)\"
ACLOCAL_AMFLAGS = -I m4

nsslibdir = @nsslibdir@
pamlibdir = $(nsslibdir)/security

nsslib_LTLIBRARIES = libnss_sss.la
pamlib_LTLIBRARIES = pam_sss.la

libnss_sss_la_SOURCES = \
    common.c \
    passwd.c \
    group.c \
    sss_cli.h
libnss_sss_la_LDFLAGS = \
    -module \
    -avoid-version

pam_sss_la_SOURCES = \
    pam_sss.c \
    common.c \
    sss_cli.h

pam_sss_la_CFLAGS = \
    -Wall \
    -Werror
pam_sss_la_LDFLAGS = \
    -lpam \
    -lpam_misc \
    -module \
    -avoid-version

noinst_PROGRAMS = pam_test_client
pam_test_client_SOURCES = pam_test_client.c
pam_test_client_LDFLAGS = -lpam -lpam_misc


EXTRA_DIST = build/config.rpath

install-data-hook:
	mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2