aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Make.rules2
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac1
-rw-r--r--examples/Makefile.am1
-rw-r--r--pam_fshadow/Makefile.am5
-rw-r--r--pam_groupmember/Makefile.am5
-rw-r--r--pam_ldaphome/Makefile.am2
-rw-r--r--pam_log/Makefile.am5
-rw-r--r--pam_regex/Makefile.am6
-rw-r--r--pam_sql/Makefile.am2
-rw-r--r--pam_umotd/Makefile.am5
11 files changed, 22 insertions, 17 deletions
diff --git a/Make.rules b/Make.rules
index 843ebd5..fe42bb8 100644
--- a/Make.rules
+++ b/Make.rules
@@ -14,5 +14,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
AM_LDFLAGS = -module -export-dynamic -avoid-version -rpath '$(pamdir)'
-INCLUDES=-I. -I${top_builddir} -I${top_srcdir} -I${top_srcdir}/lib
+AM_CPPFLAGS=-I. -I${top_builddir} -I${top_srcdir} -I${top_srcdir}/lib
LIBS = -lpam ../lib/libgraypam.la @LIBS@
diff --git a/Makefile.am b/Makefile.am
index 7a55296..15453c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,6 +38,7 @@ endif
SUBDIRS = \
imprimatur\
doc\
+ examples\
lib\
$(FSHADOW_DIR)\
$(REGEX_DIR)\
@@ -48,9 +49,7 @@ SUBDIRS = \
$(GROUPMEMBER_DIR)\
pamck
-EXTRA_DIST=ChangeLog.svn examples
-dist-hook:
- rm -rf `find $(distdir)/examples -name '*~'`
+EXTRA_DIST=ChangeLog.svn
# Name of the previous ChangeLog file.
prev_change_log = ChangeLog.svn
diff --git a/configure.ac b/configure.ac
index f60357b..413dc80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -257,6 +257,7 @@ build_groupmember=$build_groupmember])
AC_OUTPUT(Makefile
doc/Makefile
+ examples/Makefile
lib/Makefile
pam_fshadow/Makefile
pam_regex/Makefile
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..389e6fc
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1 @@
+EXTRA_DIST=ldappubkey usergitconfig
diff --git a/pam_fshadow/Makefile.am b/pam_fshadow/Makefile.am
index cc15a4b..5094920 100644
--- a/pam_fshadow/Makefile.am
+++ b/pam_fshadow/Makefile.am
@@ -14,9 +14,10 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/Make.rules
+
pamdir=@PAMDIR@
pam_LTLIBRARIES = pam_fshadow.la
pam_fshadow_la_SOURCES = pam_fshadow.c
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_fshadow\" -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_fshadow\" -DSYSCONFDIR=\"${sysconfdir}\"
-include $(top_srcdir)/Make.rules
diff --git a/pam_groupmember/Makefile.am b/pam_groupmember/Makefile.am
index 985721e..2585196 100644
--- a/pam_groupmember/Makefile.am
+++ b/pam_groupmember/Makefile.am
@@ -14,9 +14,10 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/Make.rules
+
pamdir=@PAMDIR@
pam_LTLIBRARIES = pam_groupmember.la
pam_groupmember_la_SOURCES = pam_groupmember.c
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_groupmember\" -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_groupmember\" -DSYSCONFDIR=\"${sysconfdir}\"
-include $(top_srcdir)/Make.rules
diff --git a/pam_ldaphome/Makefile.am b/pam_ldaphome/Makefile.am
index 2bb0fa6..d09e173 100644
--- a/pam_ldaphome/Makefile.am
+++ b/pam_ldaphome/Makefile.am
@@ -18,6 +18,6 @@ include $(top_srcdir)/Make.rules
pamdir=@PAMDIR@
pam_LTLIBRARIES = pam_ldaphome.la
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_ldaphome\" -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_ldaphome\" -DSYSCONFDIR=\"${sysconfdir}\"
pam_ldaphome_la_SOURCES = pam_ldaphome.c
pam_ldaphome_la_LIBADD = @PAM_MISC@ -lldap
diff --git a/pam_log/Makefile.am b/pam_log/Makefile.am
index bfde179..a5656af 100644
--- a/pam_log/Makefile.am
+++ b/pam_log/Makefile.am
@@ -14,9 +14,10 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/Make.rules
+
pamdir=@PAMDIR@
pam_LTLIBRARIES = pam_log.la
pam_log_la_SOURCES = pam_log.c
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_log\" -DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_log\" -DSYSCONFDIR=\"${sysconfdir}\"
-include $(top_srcdir)/Make.rules
diff --git a/pam_regex/Makefile.am b/pam_regex/Makefile.am
index 5ec7b12..d0fe5e0 100644
--- a/pam_regex/Makefile.am
+++ b/pam_regex/Makefile.am
@@ -14,10 +14,10 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/Make.rules
+
pamdir=@PAMDIR@
PAM_REGEX =
pam_LTLIBRARIES = pam_regex.la
pam_regex_la_SOURCES = pam_regex.c
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_regex\" -DSYSCONFDIR=\"${sysconfdir}\"
-
-include $(top_srcdir)/Make.rules
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_regex\" -DSYSCONFDIR=\"${sysconfdir}\"
diff --git a/pam_sql/Makefile.am b/pam_sql/Makefile.am
index 0c282ea..b7ddc88 100644
--- a/pam_sql/Makefile.am
+++ b/pam_sql/Makefile.am
@@ -15,7 +15,7 @@ pamdir=@PAMDIR@
pam_LTLIBRARIES = @SQL_MODULES@
EXTRA_LTLIBRARIES = pam_mysql.la pam_pgsql.la
EXTRA_DIST=pam_sql.c
-AM_CPPFLAGS=-DSYSCONFDIR=\"${sysconfdir}\"
+AM_CPPFLAGS += -DSYSCONFDIR=\"${sysconfdir}\"
pam_mysql_la_SOURCES = pam_mysql.c
pam_mysql_la_LIBADD = @PAM_MISC@ @MYSQLLIBS@ ./pam_sql.lo
pam_pgsql_la_SOURCES = pam_pgsql.c
diff --git a/pam_umotd/Makefile.am b/pam_umotd/Makefile.am
index 5812f67..a28ab29 100644
--- a/pam_umotd/Makefile.am
+++ b/pam_umotd/Makefile.am
@@ -14,9 +14,10 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/Make.rules
+
pamdir=@PAMDIR@
pam_LTLIBRARIES = pam_umotd.la
pam_umotd_la_SOURCES = pam_umotd.c
-AM_CPPFLAGS=-DMODULE_NAME=\"pam_umotd\"
+AM_CPPFLAGS += -DMODULE_NAME=\"pam_umotd\"
-include $(top_srcdir)/Make.rules

Return to:

Send suggestions and report system problems to the System administrator.