diff options
author | Karl MacMillan <kmacmill@redhat.com> | 2007-10-17 15:40:55 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmill@redhat.com> | 2007-10-17 15:40:55 -0400 |
commit | f8fba3b7ddbfbb8eb33faab1df3e024a30986b3e (patch) | |
tree | 7d79dd620858f31623f4e4e90edc06e37b0be762 /ipa-server/ipa-kpasswd | |
parent | bc52446074fb6013d1f06f1bb579e2cbfcb896b2 (diff) | |
download | freeipa-f8fba3b7ddbfbb8eb33faab1df3e024a30986b3e.tar.gz freeipa-f8fba3b7ddbfbb8eb33faab1df3e024a30986b3e.tar.xz freeipa-f8fba3b7ddbfbb8eb33faab1df3e024a30986b3e.zip |
Autotool ipa-server - patch from William Jon McCann <mccann@jhu.edu>.
Diffstat (limited to 'ipa-server/ipa-kpasswd')
-rw-r--r-- | ipa-server/ipa-kpasswd/Makefile | 23 | ||||
-rw-r--r-- | ipa-server/ipa-kpasswd/Makefile.am | 50 |
2 files changed, 50 insertions, 23 deletions
diff --git a/ipa-server/ipa-kpasswd/Makefile b/ipa-server/ipa-kpasswd/Makefile deleted file mode 100644 index 918f74d04..000000000 --- a/ipa-server/ipa-kpasswd/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -include ../Makefile.common - -LDFLAGS +=-lkrb5 -llber -lldap - -OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) - -all: $(OBJS) - $(CC) $(LDFLAGS) $(OBJS) -o ipa_kpasswd - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< - -install: - echo $(SBINDIR) - -mkdir -p $(SBINDIR) - install -m 755 ipa_kpasswd $(SBINDIR) - -mkdir -p $(INITDIR) - install -m 755 ipa-kpasswd.init $(INITDIR)/ipa-kpasswd - -clean: - rm -f *.o - rm -f ipa_kpasswd - rm -f *~ diff --git a/ipa-server/ipa-kpasswd/Makefile.am b/ipa-server/ipa-kpasswd/Makefile.am new file mode 100644 index 000000000..4c1cf8c74 --- /dev/null +++ b/ipa-server/ipa-kpasswd/Makefile.am @@ -0,0 +1,50 @@ +NULL = + +INCLUDES = \ + -I. \ + -I$(srcdir) \ + -DPREFIX=\""$(prefix)"\" \ + -DBINDIR=\""$(bindir)"\" \ + -DLIBDIR=\""$(libdir)"\" \ + -DLIBEXECDIR=\""$(libexecdir)"\" \ + -DDATADIR=\""$(datadir)"\" \ + $(LDAP_CFLAGS) \ + $(KRB5_CFLAGS) \ + $(WARN_CFLAGS) \ + $(NULL) + +sbin_PROGRAMS = \ + ipa-kpasswd \ + $(NULL) + +ipa_kpasswd_SOURCES = \ + ipa_kpasswd.c \ + $(NULL) + +ipa_kpasswd_LDADD = \ + $(LDAP_LIBS) \ + $(KRB5_LIBS) \ + $(NULL) + +EXTRA_DIST = \ + README \ + ipa-kpasswd.init \ + $(NULL) + +MAINTAINERCLEANFILES = \ + *~ \ + Makefile.in + +initdir=$(sysconfdir)/rc.d/init.d + +install-data-hook: ipa-kpasswd.init + + if test '!' -d $(DESTDIR)$(initdir); then \ + $(mkinstalldirs) $(DESTDIR)$(initdir); \ + chmod 755 $(DESTDIR)$(initdir); \ + fi + + $(INSTALL_SCRIPT) $(srcdir)/ipa-kpasswd.init $(DESTDIR)$(initdir)/ipa-kpasswd + +uninstall-hook: + rm -f $(DESTDIR)$(initdir)/ipa-kpasswd |