Ignore:
Timestamp:
Apr 10, 2007, 5:27:38 AM (14 years ago)
Author:
Paul Smedley
Message:

Updated source to 3.0.25rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/Makefile.in

    r22 r26  
    1111prefix=@prefix@
    1212exec_prefix=@exec_prefix@
     13sysconfdir=@sysconfdir@
     14localstatedir=@localstatedir@
    1315datarootdir=@datarootdir@
    1416
     
    125127FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
    126128FLAGS2 =
    127 FLAGS3 = 
    128 FLAGS4 = 
     129FLAGS3 =
     130FLAGS4 =
    129131FLAGS5 = $(FLAGS1) $(FLAGS2) $(FLAGS3) $(FLAGS4)
    130132FLAGS  = $(ISA) $(FLAGS5) -I$(srcdir)/lib -D_SAMBA_BUILD_=3
     
    133135PATH_FLAGS1 = -DCONFIGFILE=\"$(CONFIGFILE)\"  -DSBINDIR=\"$(SBINDIR)\"
    134136PATH_FLAGS2 = $(PATH_FLAGS1) -DBINDIR=\"$(BINDIR)\"
    135 PATH_FLAGS3 = $(PATH_FLAGS2) -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" 
     137PATH_FLAGS3 = $(PATH_FLAGS2) -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
    136138PATH_FLAGS4 = $(PATH_FLAGS3) -DSWATDIR=\"$(SWATDIR)\"  -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\"
    137139PATH_FLAGS5 = $(PATH_FLAGS4) -DLIBDIR=\"$(LIBDIR)\" \
     
    153155BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
    154156        bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ \
    155         bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@ 
     157        bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
    156158
    157159TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
     
    167169        bin/log2pcap@EXEEXT@ bin/sharesec@EXEEXT@
    168170
    169 SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
     171SHLIBS = @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ @LIBMSRPC@ @LIBADDNS@
    170172
    171173PAM_MODULES = @PAM_MODULES@
     174
     175NSS_MODULES = @WINBIND_WINS_NSS@ @WINBIND_NSS@
    172176
    173177SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
     
    264268# Also depends on  $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
    265269# Be sure to include them into your application
    266 POPT_LIB_OBJ = lib/popt_common.o 
     270POPT_LIB_OBJ = lib/popt_common.o
    267271
    268272PARAM_OBJ = dynconfig.o param/loadparm.o param/params.o lib/sharesec.o
    269273
    270 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o 
     274KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
    271275
    272276LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o  libaddns/dnssock.o \
     
    285289
    286290LIBADS_SERVER_OBJ = libads/util.o libads/kerberos_verify.o \
    287                     libads/ldap_schema.o 
    288 
    289 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o 
     291                    libads/ldap_schema.o
     292
     293SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
    290294
    291295LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
     
    324328               registry/reg_util.o registry/reg_dynamic.o registry/reg_perfcount.o
    325329
    326 RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o 
     330RPC_LSA_OBJ = rpc_server/srv_lsa.o rpc_server/srv_lsa_nt.o
    327331
    328332RPC_NETLOG_OBJ = rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o
     
    350354RPC_DFS_OBJ =  rpc_server/srv_dfs.o rpc_server/srv_dfs_nt.o
    351355
    352 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o 
     356RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss.o rpc_server/srv_spoolss_nt.o
    353357
    354358RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog.o rpc_server/srv_eventlog_nt.o rpc_server/srv_eventlog_lib.o
     
    426430VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
    427431VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
     432VFS_READAHEAD_OBJ = modules/vfs_readahead.o
    428433
    429434PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
     
    486491
    487492PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
    488 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ) 
     493PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
    489494
    490495SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
     
    506511
    507512SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
    508            web/swat.o web/neg_lang.o 
     513           web/swat.o web/neg_lang.o
    509514
    510515SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(LIBSMB_OBJ) \
     
    616621           utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
    617622           utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
    618            $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o 
     623           $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o
    619624
    620625NET_OBJ = $(NET_OBJ1) $(PARAM_OBJ) $(SECRETS_OBJ) $(LIBSMB_OBJ) \
     
    642647
    643648NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) $(RPC_PARSE_OBJ1) $(DOSERR_OBJ) \
    644                $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ) 
     649               $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
    645650
    646651SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
    647                 torture/denytest.o torture/mangle_test.o 
     652                torture/denytest.o torture/mangle_test.o
    648653
    649654SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
     
    657662
    658663LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
    659                $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ) 
     664               $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(SECRETS_OBJ)
    660665
    661666NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
     
    687692                $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ)
    688693
    689 EVTLOGADM_OBJ0  = utils/eventlogadm.o 
     694EVTLOGADM_OBJ0  = utils/eventlogadm.o
    690695
    691696EVTLOGADM_OBJ   = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
     
    693698                $(SECRETS_OBJ) \
    694699                registry/reg_eventlog.o rpc_server/srv_eventlog_lib.o registry/reg_util.o \
    695                 registry/reg_db.o 
    696 
    697 SHARESEC_OBJ0 = utils/sharesec.o 
     700                registry/reg_db.o
     701
     702SHARESEC_OBJ0 = utils/sharesec.o
    698703SHARESEC_OBJ  = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(REGOBJS_OBJ) \
    699704                $(ERRORMAP_OBJ) $(RPC_PARSE_OBJ1) $(LIBSAMBA_OBJ) $(DOSERR_OBJ) \
     
    719724
    720725SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(SECRETS_OBJ) \
    721                  $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) 
     726                 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ)
    722727
    723728PROTO_OBJ = $(SMBD_OBJ_MAIN) $(LIBNDR_OBJ) $(LIBNDR_GEN_OBJ) \
     
    809814        $(SOCKET_WRAPPER_OBJ)
    810815
    811 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o 
     816NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
    812817
    813818NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
     
    821826# now the rules...
    822827######################################################################
    823 all : SHOWFLAGS proto_exists $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
    824         $(SHLIBS) $(MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
     828all : SHOWFLAGS $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
     829        $(SHLIBS) $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@
     830
     831nss_modules : $(NSS_MODULES)
    825832
    826833pam_modules : $(PAM_MODULES)
    827834
    828 pam_smbpass : SHOWFLAGS proto_exists bin/pam_smbpass.@SHLIBEXT@
    829 
    830 pam_winbind : SHOWFLAGS proto_exists bin/pam_winbind.@SHLIBEXT@
     835pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
     836
     837pam_winbind : SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
    831838
    832839torture : SHOWFLAGS $(TORTURE_PROGS)
     
    869876wins : SHOWFLAGS @WINBIND_WINS_NSS@
    870877
    871 modules: SHOWFLAGS proto_exists $(MODULES)
     878modules: SHOWFLAGS $(MODULES)
    872879
    873880cac: SHOWFLAGS $(LIBMSRPC)
     
    913920
    914921# this adds support for precompiled headers. To use it, install a snapshot
    915 # of gcc-3.4 and run 'make pch' before you do the main build. 
     922# of gcc-3.4 and run 'make pch' before you do the main build.
    916923pch: proto_exists
    917924        rm -f $(builddir)/include/includes.h.gch
     
    937944lib/version.o: lib/version.c include/version.h
    938945        @echo Compiling $*.c
    939         @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/lib/version.c -o $@ 
     946        @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) $(PICFLAG) -c $(srcdir)/lib/version.c -o $@
    940947
    941948smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
     
    952959        @: >> $@ || : > $@ # what a fancy emoticon!
    953960
    954 bin/smbd@EXEEXT@: $(SMBD_OBJ) @BUILD_POPT@ bin/.dummy
     961bin/smbd@EXEEXT@: proto_exists $(SMBD_OBJ) @BUILD_POPT@ bin/.dummy
    955962        @echo Linking $@
    956963        @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
    957964                $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
    958                 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @SMBD_LIBS@ 
    959 
    960 bin/nmbd@EXEEXT@: $(NMBD_OBJ) @BUILD_POPT@ bin/.dummy
     965                $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @SMBD_LIBS@
     966
     967bin/nmbd@EXEEXT@: proto_exists $(NMBD_OBJ) @BUILD_POPT@ bin/.dummy
    961968        @echo Linking $@
    962969        @$(CC) $(FLAGS) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
    963970
    964 bin/swat@EXEEXT@: $(SWAT_OBJ) @BUILD_POPT@ bin/.dummy
     971bin/swat@EXEEXT@: proto_exists $(SWAT_OBJ) @BUILD_POPT@ bin/.dummy
    965972        @echo Linking $@
    966973        @$(CC) $(FLAGS) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
    967974          $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
    968975
    969 bin/rpcclient@EXEEXT@: $(RPCCLIENT_OBJ) @BUILD_POPT@ bin/.dummy
     976bin/rpcclient@EXEEXT@: proto_exists $(RPCCLIENT_OBJ) @BUILD_POPT@ bin/.dummy
    970977        @echo Linking $@
    971978        @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
     
    973980                $(KRB5LIBS) $(LDAP_LIBS)
    974981
    975 bin/smbclient@EXEEXT@: $(CLIENT_OBJ) @BUILD_POPT@ bin/.dummy
     982bin/smbclient@EXEEXT@: proto_exists $(CLIENT_OBJ) @BUILD_POPT@ bin/.dummy
    976983        @echo Linking $@
    977984        @$(CC) $(FLAGS) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
    978985
    979 bin/smbctool@EXEEXT@: $(TOOL_OBJ) @BUILD_POPT@ bin/.dummy
     986bin/smbctool@EXEEXT@: proto_exists $(TOOL_OBJ) @BUILD_POPT@ bin/.dummy
    980987        @echo Linking $@
    981988        @$(CC) $(FLAGS) -o $@ $(TOOL_OBJ) $(LDFLAGS) $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) -Lbin -lsmbclient
    982989
    983 bin/net@EXEEXT@: $(NET_OBJ) @BUILD_POPT@ @BUILD_INIPARSER@ bin/.dummy
     990bin/net@EXEEXT@: proto_exists $(NET_OBJ) @BUILD_POPT@ @BUILD_INIPARSER@ bin/.dummy
    984991        @echo Linking $@
    985992        @$(CC) $(FLAGS) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) @INIPARSERLIBS@
    986993
    987 bin/profiles@EXEEXT@: $(PROFILES_OBJ) @BUILD_POPT@ bin/.dummy
     994bin/profiles@EXEEXT@: proto_exists $(PROFILES_OBJ) @BUILD_POPT@ bin/.dummy
    988995        @echo Linking $@
    989996        @$(CC) $(FLAGS) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
    990997
    991 bin/smbspool@EXEEXT@: $(CUPS_OBJ) bin/.dummy
     998bin/smbspool@EXEEXT@: proto_exists $(CUPS_OBJ) bin/.dummy
    992999        @echo Linking $@
    9931000        @$(CC) $(FLAGS) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    9941001
    995 bin/smbmount@EXEEXT@: $(MOUNT_OBJ) bin/.dummy
     1002bin/smbmount@EXEEXT@: proto_exists $(MOUNT_OBJ) bin/.dummy
    9961003        @echo Linking $@
    9971004        @$(CC) $(FLAGS) -o $@ $(MOUNT_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    9981005
    999 bin/smbmnt@EXEEXT@: $(MNT_OBJ) bin/.dummy
    1000         @echo Linking $@
    1001         @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(DYNEXP) $(LDFLAGS) 
    1002 
    1003 bin/smbumount@EXEEXT@: $(UMOUNT_OBJ) bin/.dummy
     1006bin/smbmnt@EXEEXT@: proto_exists $(MNT_OBJ) bin/.dummy
     1007        @echo Linking $@
     1008        @$(CC) $(FLAGS) -o $@ $(MNT_OBJ) $(DYNEXP) $(LDFLAGS)
     1009
     1010bin/smbumount@EXEEXT@: proto_exists $(UMOUNT_OBJ) bin/.dummy
    10041011        @echo Linking $@
    10051012        @$(CC) $(FLAGS) -o $@ $(UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
     
    10131020        @$(CC) $(FLAGS) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
    10141021
    1015 bin/testparm@EXEEXT@: $(TESTPARM_OBJ) @BUILD_POPT@ bin/.dummy
     1022bin/testparm@EXEEXT@: proto_exists $(TESTPARM_OBJ) @BUILD_POPT@ bin/.dummy
    10161023        @echo Linking $@
    10171024        @$(CC) $(FLAGS) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
    10181025
    1019 bin/smbstatus@EXEEXT@: $(STATUS_OBJ) @BUILD_POPT@ bin/.dummy
     1026bin/smbstatus@EXEEXT@: proto_exists $(STATUS_OBJ) @BUILD_POPT@ bin/.dummy
    10201027        @echo Linking $@
    10211028        @$(CC) $(FLAGS) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) \
    10221029        @POPTLIBS@
    10231030
    1024 bin/smbcontrol@EXEEXT@: $(SMBCONTROL_OBJ) @BUILD_POPT@ bin/.dummy
     1031bin/smbcontrol@EXEEXT@: proto_exists $(SMBCONTROL_OBJ) @BUILD_POPT@ bin/.dummy
    10251032        @echo Linking $@
    10261033        @$(CC) -DUSING_SMBCONTROL $(FLAGS) -o $@ \
     
    10281035        $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ @POPTLIBS@
    10291036
    1030 bin/smbtree@EXEEXT@: $(SMBTREE_OBJ) @BUILD_POPT@ bin/.dummy
     1037bin/smbtree@EXEEXT@: proto_exists $(SMBTREE_OBJ) @BUILD_POPT@ bin/.dummy
    10311038        @echo Linking $@
    10321039        @$(CC) $(FLAGS) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
    10331040
    1034 bin/smbpasswd@EXEEXT@: $(SMBPASSWD_OBJ) @BUILD_POPT@ bin/.dummy
     1041bin/smbpasswd@EXEEXT@: proto_exists $(SMBPASSWD_OBJ) @BUILD_POPT@ bin/.dummy
    10351042        @echo Linking $@
    10361043        @$(CC) $(FLAGS) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
    10371044                $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS)
    10381045
    1039 bin/pdbedit@EXEEXT@: $(PDBEDIT_OBJ) @BUILD_POPT@ bin/.dummy
     1046bin/pdbedit@EXEEXT@: proto_exists $(PDBEDIT_OBJ) @BUILD_POPT@ bin/.dummy
    10401047        @echo Linking $@
    10411048        @$(CC) $(FLAGS) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(LDAP_LIBS)
    10421049
    1043 bin/smbget@EXEEXT@: $(SMBGET_OBJ) @BUILD_POPT@ bin/.dummy
     1050bin/smbget@EXEEXT@: proto_exists $(SMBGET_OBJ) @BUILD_POPT@ bin/.dummy
    10441051        @echo Linking $@
    10451052        @$(CC) $(FLAGS) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@  $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
     
    10491056        @$(CC) $(FLAGS) -o $@ $(SAMTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(PASSDB_LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    10501057
    1051 bin/nmblookup@EXEEXT@: $(NMBLOOKUP_OBJ) @BUILD_POPT@ bin/.dummy
     1058bin/nmblookup@EXEEXT@: proto_exists $(NMBLOOKUP_OBJ) @BUILD_POPT@ bin/.dummy
    10521059        @echo Linking $@
    10531060        @$(CC) $(FLAGS) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(LDAP_LIBS)
    10541061
    1055 bin/smbtorture@EXEEXT@: $(SMBTORTURE_OBJ) bin/.dummy
     1062bin/smbtorture@EXEEXT@: proto_exists $(SMBTORTURE_OBJ) bin/.dummy
    10561063        @echo Linking $@
    10571064        @$(CC) $(FLAGS) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    10581065
    1059 bin/talloctort@EXEEXT@: $(TALLOCTORT_OBJ) bin/.dummy
     1066bin/talloctort@EXEEXT@: proto_exists $(TALLOCTORT_OBJ) bin/.dummy
    10601067        @echo Linking $@
    10611068        @$(CC) $(FLAGS) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
     
    10671074                $(DYNEXP) $(LIBS)
    10681075
    1069 bin/masktest@EXEEXT@: $(MASKTEST_OBJ) bin/.dummy
     1076bin/masktest@EXEEXT@: proto_exists $(MASKTEST_OBJ) bin/.dummy
    10701077        @echo Linking $@
    10711078        @$(CC) $(FLAGS) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    10721079
    1073 bin/msgtest@EXEEXT@: $(MSGTEST_OBJ) bin/.dummy
     1080bin/msgtest@EXEEXT@: proto_exists $(MSGTEST_OBJ) bin/.dummy
    10741081        @echo Linking $@
    10751082        @$(CC) $(FLAGS) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    10761083
    1077 bin/smbcacls@EXEEXT@: $(SMBCACLS_OBJ) @BUILD_POPT@ bin/.dummy
     1084bin/smbcacls@EXEEXT@: proto_exists $(SMBCACLS_OBJ) @BUILD_POPT@ bin/.dummy
    10781085        @echo Linking $@
    10791086        @$(CC) $(FLAGS) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
    10801087        $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
    10811088
    1082 bin/smbcquotas@EXEEXT@: $(SMBCQUOTAS_OBJ) @BUILD_POPT@ bin/.dummy
     1089bin/smbcquotas@EXEEXT@: proto_exists $(SMBCQUOTAS_OBJ) @BUILD_POPT@ bin/.dummy
    10831090        @echo Linking $@
    10841091        @$(CC) $(FLAGS) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \
    10851092        $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS)
    10861093
    1087 bin/eventlogadm@EXEEXT@: $(EVTLOGADM_OBJ) @BUILD_POPT@ bin/.dummy
     1094bin/eventlogadm@EXEEXT@: proto_exists $(EVTLOGADM_OBJ) @BUILD_POPT@ bin/.dummy
    10881095        @echo Linking $@
    10891096        @$(CC) $(FLAGS) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
    10901097
    1091 bin/sharesec@EXEEXT@: $(SHARESEC_OBJ) @BUILD_POPT@ bin/.dummy
    1092         @echo Linking $@
    1093         @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@ 
    1094 
    1095 bin/locktest@EXEEXT@: $(LOCKTEST_OBJ) bin/.dummy
     1098bin/sharesec@EXEEXT@: proto_exists $(SHARESEC_OBJ) @BUILD_POPT@ bin/.dummy
     1099        @echo Linking $@
     1100        @$(CC) $(FLAGS) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
     1101
     1102bin/locktest@EXEEXT@: proto_exists $(LOCKTEST_OBJ) bin/.dummy
    10961103        @echo Linking $@
    10971104        @$(CC) $(FLAGS) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    10981105
    1099 bin/nsstest@EXEEXT@: $(NSSTEST_OBJ) bin/.dummy
     1106bin/nsstest@EXEEXT@: proto_exists $(NSSTEST_OBJ) bin/.dummy
    11001107        @echo Linking $@
    11011108        @$(CC) $(FLAGS) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS)  $(LDAP_LIBS)
    11021109
    1103 bin/pdbtest@EXEEXT@: $(PDBTEST_OBJ) bin/.dummy
     1110bin/pdbtest@EXEEXT@: proto_exists $(PDBTEST_OBJ) bin/.dummy
    11041111        @echo Linking $@
    11051112        @$(CC) $(FLAGS) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@
    11061113
    1107 bin/vfstest@EXEEXT@: $(VFSTEST_OBJ) @BUILD_POPT@ bin/.dummy
     1114bin/vfstest@EXEEXT@: proto_exists $(VFSTEST_OBJ) @BUILD_POPT@ bin/.dummy
    11081115        @echo Linking $@
    11091116        @$(CC) $(FLAGS) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ $(NSCD_LIBS)
     
    11131120        @$(CC) $(FLAGS) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(LIBS) @POPTLIBS@
    11141121
    1115 bin/log2pcap@EXEEXT@: $(LOG2PCAP_OBJ) @BUILD_POPT@ bin/.dummy
     1122bin/log2pcap@EXEEXT@: proto_exists $(LOG2PCAP_OBJ) @BUILD_POPT@ bin/.dummy
    11161123        @echo Linking $@
    11171124        @$(CC) $(FLAGS) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) @POPTLIBS@ $(LIBS)
    11181125
    1119 bin/locktest2@EXEEXT@: $(LOCKTEST2_OBJ) bin/.dummy
     1126bin/locktest2@EXEEXT@: proto_exists $(LOCKTEST2_OBJ) bin/.dummy
    11201127        @echo Linking $@
    11211128        @$(CC) $(FLAGS) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
     
    11251132        @$(CC) $(FLAGS) -o $@ $(RPCTORTURE_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    11261133
    1127 bin/debug2html@EXEEXT@: $(DEBUG2HTML_OBJ) bin/.dummy
     1134bin/debug2html@EXEEXT@: proto_exists $(DEBUG2HTML_OBJ) bin/.dummy
    11281135        @echo Linking $@
    11291136        @$(CC) $(FLAGS) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
    11301137
    1131 bin/smbfilter@EXEEXT@: $(SMBFILTER_OBJ) bin/.dummy
     1138bin/smbfilter@EXEEXT@: proto_exists $(SMBFILTER_OBJ) bin/.dummy
    11321139        @echo Linking $@
    11331140        @$(CC) $(FLAGS) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
    11341141
    1135 bin/libaddns.@SHLIBEXT@: $(LIBADDNS_OBJ)
     1142bin/libaddns.@SHLIBEXT@: proto_exists $(LIBADDNS_OBJ)
    11361143        @echo Linking libaddns shared library $@
    11371144        @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBADDNS_OBJ) $(LDFLAGS) $(LIBS) \
     
    11391146                @SONAMEFLAG@`basename $@`.$(LIBADDNS_MAJOR)
    11401147
    1141 bin/libaddns.a: $(LIBADDNS_OBJ)
     1148bin/libaddns.a: proto_exists $(LIBADDNS_OBJ)
    11421149        @echo Linking libaddns non-shared library $@
    11431150        @-$(AR) -rc $@ $(LIBADDNS_OBJ)
    11441151
    1145 bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_OBJ)
     1152bin/libsmbclient.@SHLIBEXT@: proto_exists $(LIBSMBCLIENT_OBJ)
    11461153        @echo Linking libsmbclient shared library $@
    11471154        @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_OBJ) $(LDFLAGS) $(LIBS) \
     
    11491156                @SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR)
    11501157
    1151 bin/libsmbclient.a: $(LIBSMBCLIENT_OBJ)
     1158bin/libsmbclient.a: proto_exists $(LIBSMBCLIENT_OBJ)
    11521159        @echo Linking libsmbclient non-shared library $@
    11531160        @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ)
    11541161
    1155 bin/libsmbsharemodes.@SHLIBEXT@: $(LIBSMBSHAREMODES_OBJ)
     1162bin/libsmbsharemodes.@SHLIBEXT@: proto_exists $(LIBSMBSHAREMODES_OBJ)
    11561163        @echo Linking libsmbsharemodes shared library $@
    11571164        @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBSHAREMODES_OBJ) $(LDFLAGS) $(LIBS) \
     
    11591166                @SONAMEFLAG@`basename $@`.$(LIBSMBSHAREMODES_MAJOR)
    11601167
    1161 bin/libsmbsharemodes.a: $(LIBSMBSHAREMODES_OBJ)
     1168bin/libsmbsharemodes.a: proto_exists $(LIBSMBSHAREMODES_OBJ)
    11621169        @echo Linking libsmbsharemodes non-shared library $@
    11631170        @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ)
    11641171
    1165 bin/libmsrpc.@SHLIBEXT@: $(CAC_OBJ)
     1172bin/libmsrpc.@SHLIBEXT@: proto_exists $(CAC_OBJ)
    11661173        @echo Linking libmsrpc shared library $@
    11671174        @$(SHLD) $(LDSHFLAGS) -o $@ $(CAC_OBJ) $(LDFLAGS) $(LIBS) \
    11681175        @SONAMEFLAG@`basename $@`.$(LIBMSRPC_MAJOR)
    11691176
    1170 bin/libmsrpc.a: $(CAC_OBJ)
     1177bin/libmsrpc.a: proto_exists $(CAC_OBJ)
    11711178        @echo Linking libmsrpc non-shared library $@
    11721179        @-$(AR) -rc $@ $(CAC_OBJ)
    11731180
    1174 # This is probably wrong for anything other than the GNU linker. 
    1175 bin/libbigballofmud.@SHLIBEXT@: $(LIBBIGBALLOFMUD_OBJ)
     1181# This is probably wrong for anything other than the GNU linker.
     1182bin/libbigballofmud.@SHLIBEXT@: proto_exists $(LIBBIGBALLOFMUD_OBJ)
    11761183        @echo Linking bigballofmud shared library $@
    11771184        @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) $(LIBS) \
     
    11901197libaddns: $(LIBADDNS)
    11911198
    1192 bin/librpc_lsarpc.@SHLIBEXT@: $(RPC_LSA_OBJ)
     1199bin/librpc_lsarpc.@SHLIBEXT@: proto_exists $(RPC_LSA_OBJ)
    11931200        @echo "Linking $@"
    11941201        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_OBJ) -lc \
    11951202                @SONAMEFLAG@`basename $@`
    11961203
    1197 bin/librpc_samr.@SHLIBEXT@: $(RPC_SAMR_OBJ)
     1204bin/librpc_samr.@SHLIBEXT@: proto_exists $(RPC_SAMR_OBJ)
    11981205        @echo "Linking $@"
    11991206        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SAMR_OBJ) -lc \
    12001207                @SONAMEFLAG@`basename $@`
    12011208
    1202 bin/librpc_unixinfo.@SHLIBEXT@: $(RPC_UNIXINFO_OBJ)
     1209bin/librpc_unixinfo.@SHLIBEXT@: proto_exists $(RPC_UNIXINFO_OBJ)
    12031210        @echo "Linking $@"
    12041211        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_UNIXINFO_OBJ) -lc \
    12051212                @SONAMEFLAG@`basename $@`
    12061213
    1207 bin/librpc_srvsvc.@SHLIBEXT@: $(RPC_SVC_OBJ)
     1214bin/librpc_srvsvc.@SHLIBEXT@: proto_exists $(RPC_SVC_OBJ)
    12081215        @echo "Linking $@"
    12091216        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SVC_OBJ) -lc \
    12101217                @SONAMEFLAG@`basename $@`
    12111218
    1212 bin/librpc_svcctl.@SHLIBEXT@: $(RPC_SVCCTL_OBJ)
     1219bin/librpc_svcctl.@SHLIBEXT@: proto_exists $(RPC_SVCCTL_OBJ)
    12131220        @echo "Linking $@"
    12141221        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SVCCTL_OBJ) -lc \
    12151222                @SONAMEFLAG@`basename $@`
    12161223
    1217 bin/librpc_ntsvcs.@SHLIBEXT@: $(RPC_NTSVCS_OBJ)
     1224bin/librpc_ntsvcs.@SHLIBEXT@: proto_exists $(RPC_NTSVCS_OBJ)
    12181225        @echo "Linking $@"
    12191226        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_NTSVCS_OBJ) -lc \
    12201227                @SONAMEFLAG@`basename $@`
    12211228
    1222 bin/librpc_wkssvc.@SHLIBEXT@: $(RPC_WKS_OBJ)
     1229bin/librpc_wkssvc.@SHLIBEXT@: proto_exists $(RPC_WKS_OBJ)
    12231230        @echo "Linking $@"
    12241231        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_WKS_OBJ) -lc \
    12251232                @SONAMEFLAG@`basename $@`
    12261233
    1227 bin/librpc_NETLOGON.@SHLIBEXT@: $(RPC_NETLOG_OBJ)
     1234bin/librpc_NETLOGON.@SHLIBEXT@: proto_exists $(RPC_NETLOG_OBJ)
    12281235        @echo "Linking $@"
    12291236        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_NETLOG_OBJ) -lc \
    12301237                @SONAMEFLAG@`basename $@`
    12311238
    1232 bin/librpc_reg.@SHLIBEXT@: $(RPC_REG_OBJ)
     1239bin/librpc_reg.@SHLIBEXT@: proto_exists $(RPC_REG_OBJ)
    12331240        @echo "Linking $@"
    12341241        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_REG_OBJ) -lc \
    12351242                @SONAMEFLAG@`basename $@`
    12361243
    1237 bin/librpc_initshutdown.@SHLIBEXT@: $(RPC_INITSHUTDOWN_OBJ)
     1244bin/librpc_initshutdown.@SHLIBEXT@: proto_exists $(RPC_INITSHUTDOWN_OBJ)
    12381245        @echo "Linking $@"
    12391246        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_INITSHUTDOWN_OBJ) -lc \
    12401247                @SONAMEFLAG@`basename $@`
    12411248
    1242 bin/librpc_lsa_ds.@SHLIBEXT@: $(RPC_LSA_DS_OBJ)
     1249bin/librpc_lsa_ds.@SHLIBEXT@: proto_exists $(RPC_LSA_DS_OBJ)
    12431250        @echo "Linking $@"
    12441251        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_LSA_DS_OBJ) -lc \
    12451252                @SONAMEFLAG@`basename $@`
    12461253
    1247 bin/librpc_spoolss.@SHLIBEXT@: $(RPC_SPOOLSS_OBJ)
     1254bin/librpc_spoolss.@SHLIBEXT@: proto_exists $(RPC_SPOOLSS_OBJ)
    12481255        @echo "Linking $@"
    12491256        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_SPOOLSS_OBJ) -lc \
    12501257                @SONAMEFLAG@`basename $@`
    12511258
    1252 bin/librpc_eventlog.@SHLIBEXT@: $(RPC_EVENTLOG_OBJ)
     1259bin/librpc_eventlog.@SHLIBEXT@: proto_exists $(RPC_EVENTLOG_OBJ)
    12531260        @echo "Linking $@"
    12541261        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_EVENTLOG_OBJ) -lc \
    12551262                @SONAMEFLAG@`basename $@`
    12561263
    1257 bin/librpc_netdfs.@SHLIBEXT@: $(RPC_DFS_OBJ)
     1264bin/librpc_netdfs.@SHLIBEXT@: proto_exists $(RPC_DFS_OBJ)
    12581265        @echo "Linking $@"
    12591266        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_DFS_OBJ) -lc \
    12601267                @SONAMEFLAG@`basename $@`
    12611268
    1262 bin/librpc_echo.@SHLIBEXT@: $(RPC_ECHO_OBJ)
     1269bin/librpc_echo.@SHLIBEXT@: proto_exists $(RPC_ECHO_OBJ)
    12631270        @echo "Linking $@"
    12641271        @$(SHLD) $(LDSHFLAGS) -o $@ $(RPC_ECHO_OBJ) -lc \
    12651272                @SONAMEFLAG@`basename $@`
    12661273
    1267 bin/winbindd@EXEEXT@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
     1274bin/winbindd@EXEEXT@: proto_exists $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
    12681275        @echo "Linking $@"
    12691276        @$(CC) $(FLAGS) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
     
    12751282                @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
    12761283
    1277 @WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_OBJ)
     1284@WINBIND_WINS_NSS@: proto_exists $(WINBIND_WINS_NSS_OBJ)
    12781285        @echo "Linking $@"
    12791286        @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
     
    12811288                @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
    12821289
    1283 @SMB_KRB5_LOCATOR@: $(SMB_KRB5_LOCATOR_OBJ)
     1290@SMB_KRB5_LOCATOR@: proto_exists $(SMB_KRB5_LOCATOR_OBJ)
    12841291        @echo "Linking $@"
    12851292        @$(SHLD) $(LDSHFLAGS) -o $@ $(SMB_KRB5_LOCATOR_OBJ) \
     
    12901297        @echo "Linking shared library $@"
    12911298        @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ $(GPLIBS) \
    1292                 @SONAMEFLAG@`basename $@` 
    1293 
    1294 bin/builtin.@SHLIBEXT@: $(AUTH_BUILTIN_OBJ)
     1299                @SONAMEFLAG@`basename $@`
     1300
     1301bin/builtin.@SHLIBEXT@: proto_exists $(AUTH_BUILTIN_OBJ)
    12951302        @echo "Building plugin $@"
    12961303        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_BUILTIN_OBJ) @SONAMEFLAG@`basename $@`
    12971304
    1298 bin/domain.@SHLIBEXT@: $(AUTH_DOMAIN_OBJ)
     1305bin/domain.@SHLIBEXT@: proto_exists $(AUTH_DOMAIN_OBJ)
    12991306        @echo "Building plugin $@"
    13001307        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_DOMAIN_OBJ) @SONAMEFLAG@`basename $@`
    13011308
    1302 bin/script.@SHLIBEXT@: $(AUTH_SCRIPT_OBJ)
     1309bin/script.@SHLIBEXT@: proto_exists $(AUTH_SCRIPT_OBJ)
    13031310        @echo "Building plugin $@"
    13041311        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SCRIPT_OBJ) @SONAMEFLAG@`basename $@`
    13051312
    1306 bin/smbserver.@SHLIBEXT@: $(AUTH_SERVER_OBJ)
     1313bin/smbserver.@SHLIBEXT@: proto_exists $(AUTH_SERVER_OBJ)
    13071314        @echo "Building plugin $@"
    13081315        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SERVER_OBJ) @SONAMEFLAG@`basename $@`
    13091316
    1310 bin/winbind.@SHLIBEXT@: $(AUTH_WINBIND_OBJ)
     1317bin/winbind.@SHLIBEXT@: proto_exists $(AUTH_WINBIND_OBJ)
    13111318        @echo "Building plugin $@"
    13121319        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_WINBIND_OBJ) @SONAMEFLAG@`basename $@`
    13131320
    1314 bin/unix.@SHLIBEXT@: $(AUTH_UNIX_OBJ)
     1321bin/unix.@SHLIBEXT@: proto_exists $(AUTH_UNIX_OBJ)
    13151322        @echo "Building plugin $@"
    13161323        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_UNIX_OBJ) @SONAMEFLAG@`basename $@`
    13171324
    1318 bin/sam.@SHLIBEXT@: $(AUTH_SAM_OBJ)
     1325bin/sam.@SHLIBEXT@: proto_exists $(AUTH_SAM_OBJ)
    13191326        @echo "Building plugin $@"
    13201327        @$(SHLD) $(LDSHFLAGS) -o $@ $(AUTH_SAM_OBJ) @SONAMEFLAG@`basename $@`
     
    13251332                @SONAMEFLAG@`basename $@`
    13261333
    1327 bin/tdbsam.@SHLIBEXT@: passdb/pdb_tdb.o
     1334bin/tdbsam.@SHLIBEXT@: proto_exists passdb/pdb_tdb.o
    13281335        @echo "Building plugin $@"
    13291336        @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_tdb.o \
    13301337                @SONAMEFLAG@`basename $@`
    13311338
    1332 bin/smbpasswd.@SHLIBEXT@: passdb/pdb_smbpasswd.o
     1339bin/smbpasswd.@SHLIBEXT@: proto_exists passdb/pdb_smbpasswd.o
    13331340        @echo "Building plugin $@"
    13341341        @$(SHLD) $(LDSHFLAGS) -o $@ passdb/pdb_smbpasswd.o \
    13351342                @SONAMEFLAG@`basename $@`
    13361343
    1337 bin/rid.@SHLIBEXT@: nsswitch/idmap_rid.o
     1344bin/rid.@SHLIBEXT@: proto_exists nsswitch/idmap_rid.o
    13381345        @echo "Building plugin $@"
    13391346        @$(SHLD) $(LDSHFLAGS) -o $@ nsswitch/idmap_rid.o \
     
    13451352                @SONAMEFLAG@`basename $@`
    13461353
    1347 bin/weird.@SHLIBEXT@: $(DEVEL_HELP_WEIRD_OBJ)
     1354bin/weird.@SHLIBEXT@: proto_exists $(DEVEL_HELP_WEIRD_OBJ)
    13481355        @echo "Building plugin $@"
    13491356        @$(SHLD) $(LDSHFLAGS) -o $@ $(DEVEL_HELP_WEIRD_OBJ) \
    13501357                @SONAMEFLAG@`basename $@`
    13511358
    1352 bin/CP850.@SHLIBEXT@: $(CP850_OBJ)
     1359bin/CP850.@SHLIBEXT@: proto_exists $(CP850_OBJ)
    13531360        @echo "Building plugin $@"
    13541361        @$(SHLD) $(LDSHFLAGS) -o $@ $(CP850_OBJ) \
    13551362                @SONAMEFLAG@`basename $@`
    13561363
    1357 bin/CP437.@SHLIBEXT@: $(CP437_OBJ)
     1364bin/CP437.@SHLIBEXT@: proto_exists $(CP437_OBJ)
    13581365        @echo "Building plugin $@"
    13591366        @$(SHLD) $(LDSHFLAGS) -o $@ $(CP437_OBJ) \
     
    13681375# this one MUST MUST MUST be built statically.
    13691376
    1370 bin/audit.@SHLIBEXT@: $(VFS_AUDIT_OBJ)
     1377bin/audit.@SHLIBEXT@: proto_exists $(VFS_AUDIT_OBJ)
    13711378        @echo "Building plugin $@"
    13721379        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_AUDIT_OBJ) \
    13731380                @SONAMEFLAG@`basename $@`
    13741381
    1375 bin/extd_audit.@SHLIBEXT@: $(VFS_EXTD_AUDIT_OBJ)
     1382bin/extd_audit.@SHLIBEXT@: proto_exists $(VFS_EXTD_AUDIT_OBJ)
    13761383        @echo "Building plugin $@"
    13771384        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_EXTD_AUDIT_OBJ) \
    13781385                @SONAMEFLAG@`basename $@`
    13791386
    1380 bin/full_audit.@SHLIBEXT@: $(VFS_FULL_AUDIT_OBJ)
     1387bin/full_audit.@SHLIBEXT@: proto_exists $(VFS_FULL_AUDIT_OBJ)
    13811388        @echo "Building plugin $@"
    13821389        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_FULL_AUDIT_OBJ) \
    13831390                @SONAMEFLAG@`basename $@`
    13841391
    1385 bin/recycle.@SHLIBEXT@: $(VFS_RECYCLE_OBJ)
     1392bin/recycle.@SHLIBEXT@: proto_exists $(VFS_RECYCLE_OBJ)
    13861393        @echo "Building plugin $@"
    13871394        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_RECYCLE_OBJ) \
    13881395                @SONAMEFLAG@`basename $@`
    13891396
    1390 bin/netatalk.@SHLIBEXT@: $(VFS_NETATALK_OBJ)
     1397bin/netatalk.@SHLIBEXT@: proto_exists $(VFS_NETATALK_OBJ)
    13911398        @echo "Building plugin $@"
    13921399        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_NETATALK_OBJ) \
    13931400                @SONAMEFLAG@`basename $@`
    13941401
    1395 bin/fake_perms.@SHLIBEXT@: $(VFS_FAKE_PERMS_OBJ)
     1402bin/fake_perms.@SHLIBEXT@: proto_exists $(VFS_FAKE_PERMS_OBJ)
    13961403        @echo "Building plugin $@"
    13971404        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_FAKE_PERMS_OBJ) \
    13981405                @SONAMEFLAG@`basename $@`
    13991406
    1400 bin/default_quota.@SHLIBEXT@: $(VFS_DEFAULT_QUOTA_OBJ)
     1407bin/default_quota.@SHLIBEXT@: proto_exists $(VFS_DEFAULT_QUOTA_OBJ)
    14011408        @echo "Building plugin $@"
    14021409        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_DEFAULT_QUOTA_OBJ) \
    14031410                @SONAMEFLAG@`basename $@`
    14041411
    1405 bin/readonly.@SHLIBEXT@: $(VFS_READONLY_OBJ)
     1412bin/readonly.@SHLIBEXT@: proto_exists $(VFS_READONLY_OBJ)
    14061413        @echo "Building plugin $@"
    14071414        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_READONLY_OBJ) \
    14081415                @SONAMEFLAG@`basename $@`
    14091416
    1410 bin/shadow_copy.@SHLIBEXT@: $(VFS_SHADOW_COPY_OBJ)
     1417bin/shadow_copy.@SHLIBEXT@: proto_exists $(VFS_SHADOW_COPY_OBJ)
    14111418        @echo "Building plugin $@"
    14121419        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_SHADOW_COPY_OBJ) \
    14131420                @SONAMEFLAG@`basename $@`
    14141421
    1415 bin/cap.@SHLIBEXT@: $(VFS_CAP_OBJ)
     1422bin/cap.@SHLIBEXT@: proto_exists $(VFS_CAP_OBJ)
    14161423        @echo "Building plugin $@"
    14171424        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CAP_OBJ) \
    14181425                @SONAMEFLAG@`basename $@`
    14191426
    1420 bin/expand_msdfs.@SHLIBEXT@: $(VFS_EXPAND_MSDFS_OBJ)
     1427bin/expand_msdfs.@SHLIBEXT@: proto_exists $(VFS_EXPAND_MSDFS_OBJ)
    14211428        @echo "Building plugin $@"
    14221429        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_EXPAND_MSDFS_OBJ) \
     
    14481455                @SONAMEFLAG@`basename $@`
    14491456
    1450 bin/irixacl.@SHLIBEXT@: $(VFS_IRIXACL_OBJ)
     1457bin/irixacl.@SHLIBEXT@: proto_exists $(VFS_IRIXACL_OBJ)
    14511458        @echo "Building plugin $@"
    14521459        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_IRIXACL_OBJ) \
    14531460                @SONAMEFLAG@`basename $@`
    14541461
    1455 bin/hpuxacl.@SHLIBEXT@: $(VFS_HPUXACL_OBJ)
     1462bin/hpuxacl.@SHLIBEXT@: proto_exists $(VFS_HPUXACL_OBJ)
    14561463        @echo "Building plugin $@"
    14571464        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_HPUXACL_OBJ) \
     
    14631470                @SONAMEFLAG@`basename $@`
    14641471
    1465 bin/catia.@SHLIBEXT@: $(VFS_CATIA_OBJ)
     1472bin/catia.@SHLIBEXT@: proto_exists $(VFS_CATIA_OBJ)
    14661473        @echo "Building plugin $@"
    14671474        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CATIA_OBJ) \
    14681475                @SONAMEFLAG@`basename $@`
    14691476
    1470 bin/cacheprime.@SHLIBEXT@: $(VFS_CACHEPRIME_OBJ)
     1477bin/cacheprime.@SHLIBEXT@: proto_exists $(VFS_CACHEPRIME_OBJ)
    14711478        @echo "Building plugin $@"
    14721479        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_CACHEPRIME_OBJ) \
    14731480                @SONAMEFLAG@`basename $@`
    14741481
    1475 bin/prealloc.@SHLIBEXT@: $(VFS_PREALLOC_OBJ)
     1482bin/prealloc.@SHLIBEXT@: proto_exists $(VFS_PREALLOC_OBJ)
    14761483        @echo "Building plugin $@"
    14771484        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_PREALLOC_OBJ) \
    14781485                @SONAMEFLAG@`basename $@`
    14791486
    1480 bin/commit.@SHLIBEXT@: $(VFS_COMMIT_OBJ)
     1487bin/commit.@SHLIBEXT@: proto_exists $(VFS_COMMIT_OBJ)
    14811488        @echo "Building plugin $@"
    14821489        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_COMMIT_OBJ) \
     
    14911498        @echo "Building plugin $@"
    14921499        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_NOTIFY_FAM_OBJ) \
     1500                @SONAMEFLAG@`basename $@`
     1501
     1502bin/readahead.@SHLIBEXT@: $(VFS_READAHEAD_OBJ)
     1503        @echo "Building plugin $@"
     1504        @$(SHLD) $(LDSHFLAGS) -o $@ $(VFS_READAHEAD_OBJ) \
    14931505                @SONAMEFLAG@`basename $@`
    14941506
     
    14991511#########################################################
    15001512
    1501 bin/wbinfo@EXEEXT@: $(WBINFO_OBJ) @BUILD_POPT@ bin/.dummy
     1513bin/wbinfo@EXEEXT@: proto_exists $(WBINFO_OBJ) @BUILD_POPT@ bin/.dummy
    15021514        @echo Linking $@
    15031515        @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) $(LDAP_LIBS) @POPTLIBS@
    15041516
    1505 bin/ntlm_auth@EXEEXT@: $(NTLM_AUTH_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
     1517bin/ntlm_auth@EXEEXT@: proto_exists $(NTLM_AUTH_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
    15061518                @BUILD_POPT@ bin/.dummy
    15071519        @echo Linking $@
     
    15141526        @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
    15151527
    1516 bin/tdbbackup@EXEEXT@: $(TDBBACKUP_OBJ) bin/.dummy
     1528bin/tdbbackup@EXEEXT@: proto_exists $(TDBBACKUP_OBJ) bin/.dummy
    15171529        @echo Linking $@
    15181530        @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBBACKUP_OBJ)
     
    15261538        @$(CC) $(FLAGS) -o $@ $(LDFLAGS) $(DYNEXP) $(LIBS) $(TDBDUMP_OBJ)
    15271539
    1528 bin/t_strcmp@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
     1540bin/t_strcmp@EXEEXT@: proto_exists bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
    15291541        $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strcmp.o -L ./bin -lbigballofmud
    15301542
    1531 bin/t_strstr@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
     1543bin/t_strstr@EXEEXT@: proto_exists bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
    15321544        $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strstr.o -L ./bin -lbigballofmud
    15331545
    1534 bin/t_strappend@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
     1546bin/t_strappend@EXEEXT@: proto_exists bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
    15351547        $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_strappend.o -L ./bin -lbigballofmud
    15361548
     
    15381550        $(CC) $(FLAGS) -o $@ $(DYNEXP) torture/t_stringoverflow.o -L./bin -lbigballofmud
    15391551
    1540 bin/t_doschar@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_doschar.o
     1552bin/t_doschar@EXEEXT@: proto_exists bin/libbigballofmud.@SHLIBEXT@ torture/t_doschar.o
    15411553        $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_doschar.o -L ./bin -lbigballofmud
    1542 bin/t_push_ucs2@EXEEXT@: bin/libbigballofmud.@SHLIBEXT@ torture/t_push_ucs2.o
     1554bin/t_push_ucs2@EXEEXT@: proto_exists bin/libbigballofmud.@SHLIBEXT@ torture/t_push_ucs2.o
    15431555        $(CC) $(FLAGS) -o $@ $(DYNEXP) $(LIBS) torture/t_push_ucs2.o -L ./bin -lbigballofmud
    15441556
     
    15471559        @$(CC) $(FLAGS) -o $@ $(DYNEXP) script/tests/timelimit.o
    15481560
    1549 install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@ 
     1561install: installservers installbin @INSTALL_CIFSMOUNT@ installman installscripts installdat installswat installmodules @INSTALL_LIBSMBCLIENT@ @INSTALL_LIBMSRPC@ @INSTALL_PAM_MODULES@ @INSTALL_LIBSMBSHAREMODES@
    15501562
    15511563
     
    15731585        @$(SHELL) script/installbin.sh $(INSTALLPERMS) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
    15741586
    1575 # Some symlinks are required for the 'probing' of modules. 
     1587# Some symlinks are required for the 'probing' of modules.
    15761588# This mechanism should go at some point..
    15771589installmodules: modules installdirs
     
    16631675# revert to the previously installed version
    16641676revert:
    1665         @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS) 
     1677        @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
    16661678        @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
    16671679
     
    16871699
    16881700
    1689 uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@ 
     1701uninstall: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ uninstallscripts uninstalldat uninstallswat uninstallmodules @UNINSTALL_LIBSMBCLIENT@ @UNINSTALL_LIBMSRPC@ @UNINSTALL_PAM_MODULES@ @UNINSTALL_LIBSMBSHAREMODES@
    16901702
    16911703uninstallman:
     
    17211733        @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
    17221734
    1723 uninstallclientlib: 
     1735uninstallclientlib:
    17241736        -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbclient.@SHLIBEXT@
    17251737        -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbclient.a
    17261738        -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
    17271739
    1728 uninstalllibmsrpc: 
     1740uninstalllibmsrpc:
    17291741        -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libmsrpc.@SHLIBEXT@
    17301742        -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libmsrpc.a
    17311743        -rm -f $(DESTDIR)${prefix}/include/libmsrpc.h
    17321744
    1733 uninstalllibsmbsharemodes: 
     1745uninstalllibsmbsharemodes:
    17341746        -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.@SHLIBEXT@
    17351747        -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libsmbsharemodes.a
    17361748
    1737 uninstalllibaddns: 
     1749uninstalllibaddns:
    17381750        -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
    17391751        -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
     
    17541766                $(MODULES) $(TORTURE_PROGS) $(LIBSMBCLIENT) $(LIBADDNS) \
    17551767                $(LIBSMBSHAREMODES) $(EVERYTHING_PROGS) $(LIBMSRPC) \
    1756                 .headers.stamp */src/*.o
     1768                .headers.stamp */src/*.o proto_exists
    17571769        -rm -rf t_dir
    17581770
     
    17641776        nsswitch/winbindd_proto.h web/swat_proto.h \
    17651777        client/client_proto.h utils/net_proto.h utils/ntlm_auth_proto.h smbd/build_options.c
     1778        @touch proto_exists
    17661779
    17671780delheaders:
     
    18311844        $(MAKE) utils/passwd_proto.h;
    18321845
    1833 proto: headers 
     1846proto: headers
    18341847
    18351848.PHONY: headers proto
     
    18621875        nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
    18631876        nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
    1864         comm -13 nmused.txt nmfns.txt 
     1877        comm -13 nmused.txt nmfns.txt
    18651878
    18661879
     
    18771890######################################################################
    18781891# Samba Testing Framework
     1892
     1893# Check for NSS module problems.
     1894test_nss_modules: nss_modules
     1895        @echo "Testing $(NSS_MODULES) "
     1896        @for module in $(NSS_MODULES); do \
     1897                ./script/tests/dlopen.sh $${module} \
     1898                        || exit 1; \
     1899        done
    18791900
    18801901# Check for PAM module problems.  Specifically, check that every module we
Note: See TracChangeset for help on using the changeset viewer.