r5112: Fix for shared object creation in examples. Bugzilla #2058.
[kai/samba-autobuild/.git] / examples / auth / Makefile
index 21d18de0758bab98495e802ee8b6b1019c5b070d..d6dbc28f40ebd6e47134b84e3b3d5cce13f3fd6c 100644 (file)
@@ -9,7 +9,7 @@ SAMBA_INCL = ../../source/include
 UBIQX_SRC = ../../source/ubiqx
 SMBWR_SRC = ../../source/smbwrapper
 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
-AUTH_OBJS = auth_skel.so
+AUTH_OBJS = auth_skel.la
 
 # Default target
 
@@ -17,8 +17,8 @@ default: $(AUTH_OBJS)
 
 # Pattern rules
 
-%.so: %.lo
-       $(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS)
+%.la: %.lo
+       $(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS)
 
 %.lo: %.c
        $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
@@ -28,4 +28,4 @@ default: $(AUTH_OBJS)
 clean:
        rm -rf .libs
        rm -f core *~ *% *.bak \
-               $(AUTH_OBJS) $(AUTH_OBJS:.so=.o) $(AUTH_OBJS:.so=.lo) 
+               $(AUTH_OBJS) $(AUTH_OBJS:.la=.o) $(AUTH_OBJS:.la=.lo)