summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-06-29 23:30:01 +0000
committerRichard Sharpe <sharpe@samba.org>2001-06-29 23:30:01 +0000
commit7e7c258e0b281acf99b3f538cd46f42ce5dfa486 (patch)
treee8d64acb73e58d3e649cb9555d8c5ab7a89708b6 /source3/Makefile.in
parent8d0b9cf534bc2a219ff4fc47ab139efa994cd7d6 (diff)
downloadsamba-7e7c258e0b281acf99b3f538cd46f42ce5dfa486.tar.gz
samba-7e7c258e0b281acf99b3f538cd46f42ce5dfa486.tar.bz2
samba-7e7c258e0b281acf99b3f538cd46f42ce5dfa486.zip
These changes cause the libsmbclient stuff to always build a non-shared library and to build a shared library only for the four OSes that we currently like.
I will probably add HP/UX and AIX support based on the CUPS stuff soon ... (This used to be commit 9585529455ae4a3e9b4dafc5f16286fabb052809)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 0801efb5ec..5b362d37a6 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -83,7 +83,7 @@ MPROGS = @MPROGS@
WINBIND_PROGS = nsswitch/pam_winbind.so nsswitch/libnss_winbind.so bin/winbindd bin/wbinfo
PROGS = $(PROGS1) $(PROGS2) $(MPROGS) bin/nmblookup bin/make_printerdef bin/pdbedit @WINBIND_TARGETS@
TORTURE_PROGS = bin/smbtorture bin/msgtest bin/masktest bin/locktest bin/locktest2
-SHLIBS = bin/libsmbclient.so
+SHLIBS = bin/libsmbclient
SCRIPTS = $(srcdir)/script/smbtar $(srcdir)/script/addtosmbpass $(srcdir)/script/convert_smbpasswd
@@ -610,13 +610,13 @@ bin/smbwrapper.32.@SHLIBEXT@: $(PICOBJS32)
@echo Linking shared library $@
@$(LD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS)
-bin/libsmbclient.so: $(LIBSMBCLIENT_PICOBJS)
- @echo Linking libsmbclient shared library $@
- -$(LD) @LDSHFLAGS@ -o $@ $(LIBSMBCLIENT_PICOBJS) $(LIBS) # Anything else?
-
-client/testsmbc: client/testsmbc.o bin/libsmbclient.so
- @echo Linking testsmbc
- -$(CC) $(CFLAGS) -o $@ client/testsmbc.o -Lbin -lsmbclient
+bin/libsmbclient: $(LIBSMBCLIENT_PICOBJS)
+ -if [ @BLDSHARED@ ]; then \
+ echo Linking libsmbclient shared library $@.@SHLIBEXT@; \
+ $(LD) @LDSHFLAGS@ -o $@.@SHLIBEXT@ $(LIBSMBCLIENT_PICOBJS) $(LIBS); \
+ fi
+ @echo Linking libsmbclient non-shared library $@.a
+ -$(AR) -rc $@.a $(LIBSMBCLIENT_PICOBJS)
bin/smbsh: $(SMBSH_OBJ) bin/.dummy
@echo Linking $@