summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-kpasswd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/ipa-kpasswd/Makefile')
-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 5fd90a69..918f74d0 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