forked from CERN-CERT/pam_2fa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
51 lines (46 loc) · 1.43 KB
/
Makefile.am
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
#
# Compiling
#
ACLOCAL_AMFLAGS = -I m4
if COMPILER_IS_CLANG
AM_CFLAGS = -Weverything \
-Wno-padded \
-Wno-disabled-macro-expansion \
-Wno-reserved-id-macro
else
AM_CFLAGS = -Wall -Wextra \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wconversion \
-Wformat-nonliteral \
-Wformat-security \
-Winit-self \
-Wmissing-declarations \
-Wmissing-include-dirs \
-Wmissing-format-attribute \
-Wmissing-prototypes \
-Wnested-externs \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wstrict-prototypes \
-Wwrite-strings \
-Wundef \
-Wunused \
-Wunsafe-loop-optimizations
endif
AM_CFLAGS += -fPIC
libdir = $(PAMDIR)
lib_LTLIBRARIES = pam_2fa.la pam_ssh_user_auth.la
pam_2fa_la_SOURCES = priv.c module_conf.c pam_2fa.c user.c ssh_user_auth.c gauth.c curl.c yk.c
pam_2fa_la_CFLAGS = $(AM_CFLAGS) $(LIBCURL_CFLAGS)
pam_2fa_la_LIBADD = $(AM_LDFLAGS) $(LIBCURL_LIBS) $(GETGROUPS_LIBS) -lpam
pam_2fa_la_LDFLAGS = -module -avoid-version
pam_ssh_user_auth_la_SOURCES = pam_ssh_user_auth.c ssh_user_auth.c
pam_ssh_user_auth_la_CFLAGS = $(AM_CFLAGS)
pam_ssh_user_auth_la_LIBADD = $(AM_LDFLAGS) -lpam
pam_ssh_user_auth_la_LDFLAGS = -module -avoid-version
install-exec-hook:
find $(DESTDIR)$(libdir) -type f -name \*.la -delete
find $(DESTDIR)$(libdir) -type f -name \*.a -delete