diff options
author | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-08-10 07:09:16 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-08-10 07:09:16 -0400 |
commit | 88a1ab65ce61bd94af0560980194d44affea45fb (patch) | |
tree | e3fb46756dca7959129b63eae62bdda5c8eee8a5 /ipa-server/ipa-kpasswd | |
parent | a3e786e22ec9d4b0e7d2ef982ac045a29477433e (diff) | |
download | freeipa-88a1ab65ce61bd94af0560980194d44affea45fb.tar.gz freeipa-88a1ab65ce61bd94af0560980194d44affea45fb.tar.xz freeipa-88a1ab65ce61bd94af0560980194d44affea45fb.zip |
Updates to build kpaswd and the slapi plugins.
Diffstat (limited to 'ipa-server/ipa-kpasswd')
-rw-r--r-- | ipa-server/ipa-kpasswd/Makefile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/ipa-server/ipa-kpasswd/Makefile b/ipa-server/ipa-kpasswd/Makefile index 4182b7705..11755a9a5 100644 --- a/ipa-server/ipa-kpasswd/Makefile +++ b/ipa-server/ipa-kpasswd/Makefile @@ -1,5 +1,22 @@ -all: - gcc ipa_kpasswd.c -I/usr/include -lkrb5 -llber -lldap -g -o ipa_kpasswd +PREFIX ?= $(DESTDIR)/usr +SBIN = $(PREFIX)/sbin + +LDFLAGS +=-lkrb5 -llber -lldap +CFLAGS ?= -Wall -Wshadow -O2 + +OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) + +all: $(OBJS) + $(CC) $(LDFLAGS) $(OBJS) -o ipa_kpasswd + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< install: - cp -f ipa_kpasswd /usr/sbin/ + -mkdir -p $(SBIN) + install -m 755 ipa_kpasswd $(SBIN) + +clean: + rm -f *.o + rm -f ipa_kpasswd + rm -f *~
\ No newline at end of file |