]> git.sur5r.net Git - openldap/commitdiff
libtoolize
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 2 Feb 2009 19:31:32 +0000 (19:31 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 2 Feb 2009 19:31:32 +0000 (19:31 +0000)
Missing stuff for proper linking of the module

contrib/slapd-modules/nops/Makefile

index 827a5ba2213d22e09f859bc1d3cdf62bb275e4df..c2ef65d846367c2b60aab2c08215d011b9b51d72 100644 (file)
@@ -1,9 +1,15 @@
-CPPFLAGS+=-I../../../include -I../../../servers/slapd
+CPPFLAGS+=-I../../../include -I../../../servers/slapd 
+CPPFLAGS+=-DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC
+LIBS=-lldap_r -llber -lcrypto
 
-all: nops.so
+all: nops.la
 
-nops.so: nops.c
-       $(CC) -shared $(CPPFLAGS) -Wall -o $@ $?
+nops.lo:    nops.c
+       $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $?
+
+nops.la:    nops.lo
+       $(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
+                  -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
 
 clean:
-       rm nops.so
+       rm nops.lo nops.la