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-slapi-plugins | |
| 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-slapi-plugins')
| -rw-r--r-- | ipa-server/ipa-slapi-plugins/Makefile | 17 | ||||
| -rw-r--r-- | ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile | 29 |
2 files changed, 43 insertions, 3 deletions
diff --git a/ipa-server/ipa-slapi-plugins/Makefile b/ipa-server/ipa-slapi-plugins/Makefile new file mode 100644 index 000000000..95ed26c65 --- /dev/null +++ b/ipa-server/ipa-slapi-plugins/Makefile @@ -0,0 +1,17 @@ +SUBDIRS=ipa-pwd-extop + +all: + @for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) $@) || exit 1; \ + done + +install: + @for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) $@) || exit 1; \ + done + +clean: + @for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) $@) || exit 1; \ + done + rm -f *~ diff --git a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile index 2a5646432..e89ca27ad 100644 --- a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile +++ b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile @@ -1,5 +1,28 @@ -all: - gcc ipa_pwd_extop.c -I/usr/include -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/fedora-ds -lkrb5 -lmhash -llber -lssl -shared -g -fPIC -DPIC -Wl,-soname -Wl,libipa_pwd_extop.so -o libipa_pwd_extop.so +PREFIX ?= $(DESTDIR)/usr +LIBDIR = $(PREFIX)/lib/fedora-ds/plugins +SHAREDIR = $(DESTDIR)/usr/share/ipa + +SONAME = libipa_pwd_extop.so +LDFLAGS += -lkrb5 -llber -lldap -lmhash -llber -lssl +CFLAGS ?= -Wall -Wshadow -O2 +CFLAGS += -I/usr/include/fedora-ds -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -fPIC -DPIC + +OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) + +all: $(OBJS) + $(CC) $(LDFLAGS) $(OBJS) -Wl,-soname -Wl,$(SONAME) -shared -o $(SONAME) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< install: - cp -f libipa_pwd_extop.so /usr/lib/fedora-ds/plugins/ + -mkdir -p $(LIBDIR) + install -m 644 libipa_pwd_extop.so $(LIBDIR) + install -m 644 *.ldif $(SHAREDIR) + +clean: + rm -f *.o + rm -f $(SONAME) + rm -f *~ + + |
