]> eyrie.org Git - kerberos/krb5-strength.git/blob - Makefile.am
29190f2bb417044fff38d50e8f445f6d4e331425
[kerberos/krb5-strength.git] / Makefile.am
1 # Automake makefile for krb5-strength.
2 #
3 # Written by Russ Allbery <rra@stanford.edu>
4 # Copyright 2007, 2009 Board of Trustees, Leland Stanford Jr. University
5 #
6 # See LICENSE for licensing terms.
7
8 AUTOMAKE_OPTIONS = foreign subdir-objects
9 ACLOCAL_AMFLAGS = -I m4
10 EXTRA_DIST = autogen cracklib/HISTORY cracklib/LICENCE cracklib/README \
11         cracklib/mkdict patches/README patches/mit-krb5-1.4.4
12
13 # Put the module into /usr/local/lib/kadmind by default, relative to --libdir.
14 moduledir = $(libdir)/kadmind
15
16 # Build cracklib as a helper library, currently unconditionally, and build
17 # (but don't install) the packer program.
18 noinst_LTLIBRARIES = cracklib/libcracklib.la
19 cracklib_libcracklib_la_SOURCES = cracklib/fascist.c cracklib/packlib.c \
20         cracklib/rules.c cracklib/stringlib.c
21 cracklib_libcracklib_la_CPPFLAGS = -DIN_CRACKLIB
22 noinst_PROGRAMS = cracklib/packer
23 cracklib_packer_SOURCES = cracklib/packer.c cracklib/packer.h
24 cracklib_packer_LDADD = cracklib/libcracklib.la
25
26 # Rules for building the password strength plugin.
27 module_LTLIBRARIES = plugin/passwd_strength.la
28 plugin_passwd_strength_la_SOURCES = plugin/api.c
29 plugin_passwd_strength_la_LDFLAGS = -module -avoid-version
30 plugin_passwd_strength_la_LIBADD = cracklib/libcracklib.la
31
32 # The Heimdal external-check program.
33 bin_PROGRAMS = plugin/heimdal-strength
34 plugin_heimdal_strength_CFLAGS = $(AM_CFLAGS)
35 plugin_heimdal_strength_SOURCES = plugin/api.c plugin/api.h \
36         plugin/heimdal-strength.c
37 plugin_heimdal_strength_LDADD = cracklib/libcracklib.la $(KRB5_LIBS)
38
39 # Handle the standard stuff that make maintainer-clean should probably remove
40 # but doesn't.  This breaks the GNU coding standard, but in this area the GNU
41 # coding standard is dumb.
42 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in config.h.in~ \
43         configure
44
45 # A set of flags for warnings.  Add -O because gcc won't find some warnings
46 # without optimization turned on.
47 WARNINGS = -g -O -Wall -W -Wendif-labels -Wpointer-arith \
48         -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes \
49         -Wmissing-prototypes -Wnested-externs -Werror
50
51 warnings:
52         $(MAKE) V=0 CFLAGS='$(WARNINGS)'
53         $(MAKE) V=0 CFLAGS='$(WARNINGS)' $(check_PROGRAMS)