summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-kpasswd
diff options
context:
space:
mode:
authorKarl MacMillan <kmacmill@redhat.com>2007-10-09 16:25:38 -0400
committerKarl MacMillan <kmacmill@redhat.com>2007-10-09 16:25:38 -0400
commitd2a19b200912fe4a78211a3d6212b143ece5e064 (patch)
treef6a07686c2a4b4cb82d288d8ce8a14a454d9776e /ipa-server/ipa-kpasswd
parentaaa992b74405f41e2f51d1fb2946c57303c3de07 (diff)
downloadfreeipa-d2a19b200912fe4a78211a3d6212b143ece5e064.tar.gz
freeipa-d2a19b200912fe4a78211a3d6212b143ece5e064.tar.xz
freeipa-d2a19b200912fe4a78211a3d6212b143ece5e064.zip
Karl MacMillan wrote:
> > This largish patch makes the build and installation work on 64bit > > machines. The only catch here is that to get a 64bit build you need to > > set LIBDIR on make: > > > > make install LIBDIR=/usr/lib64 > > > > The spec file does this correctly. I couldn't find any reliable way to > > guess this that works both on real systems and in the almost entirely > > empty rpm build root (you can't, for example, check for the existence > > of /usr/lib64).
Diffstat (limited to 'ipa-server/ipa-kpasswd')
-rw-r--r--ipa-server/ipa-kpasswd/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/ipa-server/ipa-kpasswd/Makefile b/ipa-server/ipa-kpasswd/Makefile
index 5fd90a69e..918f74d04 100644
--- a/ipa-server/ipa-kpasswd/Makefile
+++ b/ipa-server/ipa-kpasswd/Makefile
@@ -1,9 +1,6 @@
-PREFIX ?= $(DESTDIR)/usr
-SBIN = $(PREFIX)/sbin
-INITDIR = $(DESTDIR)/etc/rc.d/init.d
+include ../Makefile.common
LDFLAGS +=-lkrb5 -llber -lldap
-CFLAGS ?= -g -Wall -Wshadow
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
@@ -14,8 +11,9 @@ all: $(OBJS)
$(CC) $(CFLAGS) -c -o $@ $<
install:
- -mkdir -p $(SBIN)
- install -m 755 ipa_kpasswd $(SBIN)
+ echo $(SBINDIR)
+ -mkdir -p $(SBINDIR)
+ install -m 755 ipa_kpasswd $(SBINDIR)
-mkdir -p $(INITDIR)
install -m 755 ipa-kpasswd.init $(INITDIR)/ipa-kpasswd