svn commit: samba r14543 - in branches/SAMBA_4_0/source/build/smb_build: .

jelmer at samba.org jelmer at samba.org
Sat Mar 18 16:05:22 GMT 2006


Author: jelmer
Date: 2006-03-18 16:05:22 +0000 (Sat, 18 Mar 2006)
New Revision: 14543

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14543

Log:
Fix some build dependency problems caused by the use of $(builddir)

Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/build/smb_build/output.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm	2006-03-18 15:42:57 UTC (rev 14542)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm	2006-03-18 16:05:22 UTC (rev 14543)
@@ -191,12 +191,12 @@
 {
 	my ($self,$ctx) = @_;
 
-	$self->output("\$(builddir)/bin/deps/$ctx->{TYPE}_$ctx->{NAME}: \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST:.o=.c)");
+	$self->output("bin/deps/$ctx->{TYPE}_$ctx->{NAME}: \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST:.o=.c)");
 	$self->output("\n");
 	$self->output("\t\@echo \"Generating dependency info for $ctx->{NAME}\"\n");
 	$self->output("\t\@./script/cdeps.pl \$^ > \$@\n");
 	$self->output("\n");
-	$self->output("-include \$(builddir)/bin/deps/$ctx->{TYPE}_$ctx->{NAME}\n\n");
+	$self->output("-include bin/deps/$ctx->{TYPE}_$ctx->{NAME}\n\n");
 }
 
 sub SharedLibrary($$)
@@ -245,14 +245,14 @@
 		$proto_fn =~ s/\(\*\)/$ctx->{INIT_FUNCTION}/;
 
 		$self->output(<< "__EOD__"
-\$(builddir)/bin/$ctx->{NAME}_init_module.c:
+bin/$ctx->{NAME}_init_module.c:
 	\@echo Creating \$\@
 	\@echo \"#include \\\"includes.h\\\"\" > \$\@
 	\@echo \"$proto_fn;\" >> \$\@
 	\@echo -e \"_PUBLIC_ $init_fn \\n{\\n\\treturn $ctx->{INIT_FUNCTION}();\\n}\\n\" >> \$\@
 __EOD__
 );
-		$init_obj = "\$(builddir)/bin/$ctx->{NAME}_init_module.o";
+		$init_obj = "bin/$ctx->{NAME}_init_module.o";
 	}
 
 	my $soarg = "";
@@ -371,9 +371,9 @@
 	my $installdir;
 	
 	if ($self->{duplicate_build}) {
-		$installdir = "\$(builddir)/bin/install";
+		$installdir = "bin/install";
 	} else {
-		$installdir = "\$(builddir)/bin";
+		$installdir = "bin";
 	}
 
 	push(@{$self->{all_objs}}, "\$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST)");
@@ -385,7 +385,7 @@
 		push (@{$self->{bin_progs}}, "$installdir/$ctx->{BINARY}");
 	}
 
-	push (@{$self->{binaries}}, "\$(builddir)/bin/$ctx->{BINARY}");
+	push (@{$self->{binaries}}, "bin/$ctx->{BINARY}");
 
 	$self->_prepare_list($ctx, "OBJ_LIST");
 	$self->_prepare_list($ctx, "CFLAGS");
@@ -396,7 +396,7 @@
 	if ($self->{duplicate_build}) {
 	$self->output(<< "__EOD__"
 #
-\$(builddir)/bin/$ctx->{BINARY}: \$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST) 
+bin/$ctx->{BINARY}: \$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST) 
 	\@echo Linking \$\@
 	\@\$(CC) \$(LDFLAGS) -o \$\@ \$(LOCAL_LINK_FLAGS) \$(INSTALL_LINK_FLAGS) \\
 		\$\($ctx->{TYPE}_$ctx->{NAME}_LINK_LIST) \\
@@ -512,8 +512,8 @@
 
 	# nasty hack to allow running locally
 	if ($self->{duplicate_build}) {
-		$self->output("\$(builddir)/bin/libdynconfig.\$(SHLIBEXT): dynconfig-devel.o\n");
-		$self->output("\$(builddir)/bin/libdynconfig.\$(SHLIBEXT): LIBRARY_DYNCONFIG_OBJ_LIST=dynconfig-devel.o\n");
+		$self->output("bin/libdynconfig.\$(SHLIBEXT): dynconfig-devel.o\n");
+		$self->output("bin/libdynconfig.\$(SHLIBEXT): LIBRARY_DYNCONFIG_OBJ_LIST=dynconfig-devel.o\n");
 	}
 
 	$self->_prepare_mk_files();

Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/output.pm	2006-03-18 15:42:57 UTC (rev 14542)
+++ branches/SAMBA_4_0/source/build/smb_build/output.pm	2006-03-18 16:05:22 UTC (rev 14543)
@@ -28,14 +28,14 @@
 {
 	my $subsys = shift;
 
-	$subsys->{OUTPUT} = $subsys->{TARGET} = "\$(builddir)/bin/subsystems/$subsys->{TYPE}_$subsys->{NAME}.o";
+	$subsys->{OUTPUT} = $subsys->{TARGET} = "bin/subsystems/$subsys->{TYPE}_$subsys->{NAME}.o";
 }
 
 sub generate_objlist($)
 {
 	my $subsys = shift;
 
-	$subsys->{TARGET} = "\$(builddir)/bin/.$subsys->{TYPE}_$subsys->{NAME}";
+	$subsys->{TARGET} = "bin/.$subsys->{TYPE}_$subsys->{NAME}";
 	$subsys->{OUTPUT} = "\$($subsys->{TYPE}_$subsys->{NAME}_OBJ_LIST)";
 }
 
@@ -58,15 +58,15 @@
 		$lib_name = "lib$link_name";
 	}
 
-	$lib->{DEBUGDIR} = "\$(builddir)/bin";
-	$lib->{RELEASEDIR} = "\$(builddir)/bin/install";
+	$lib->{DEBUGDIR} = "bin";
+	$lib->{RELEASEDIR} = "bin/install";
 	$lib->{LIBRARY_REALNAME} = $lib->{LIBRARY_NAME} = "$lib_name.\$(SHLIBEXT)";
 
 	if (defined($lib->{VERSION})) {
 		$lib->{LIBRARY_SONAME} = $lib->{LIBRARY_NAME}.".$lib->{SO_VERSION}";
 		$lib->{LIBRARY_REALNAME} = $lib->{LIBRARY_NAME}.".$lib->{VERSION}";
 	} elsif ($lib->{TYPE} eq "MODULE") {
-		$lib->{DEBUGDIR} = "\$(builddir)/bin/modules/$lib->{SUBSYSTEM}";
+		$lib->{DEBUGDIR} = "bin/modules/$lib->{SUBSYSTEM}";
 	}
 	$lib->{TARGET} = "$lib->{DEBUGDIR}/$lib->{LIBRARY_REALNAME}";
 	$lib->{OUTPUT} = $lib->{TARGET};
@@ -86,7 +86,7 @@
 	@{$lib->{LINK_LIST}} = ("\$($lib->{TYPE}_$lib->{NAME}\_OBJ_LIST)");
 	@{$lib->{LINK_FLAGS}} = ();
 
-	$lib->{TARGET} = "\$(builddir)/bin/$lib->{LIBRARY_NAME}";
+	$lib->{TARGET} = "bin/$lib->{LIBRARY_NAME}";
 	$lib->{OUTPUT} = "-l".lc($link_name);
 }
 
@@ -98,8 +98,8 @@
 	@{$bin->{LINK_LIST}} = ("\$($bin->{TYPE}_$bin->{NAME}\_OBJ_LIST)");
 	@{$bin->{LINK_FLAGS}} = ();
 
-	$bin->{RELEASEDIR} = "\$(builddir)/bin/install";
-	$bin->{DEBUGDIR} = "\$(builddir)/bin/";
+	$bin->{RELEASEDIR} = "bin/install";
+	$bin->{DEBUGDIR} = "bin/";
 	$bin->{TARGET} = $bin->{OUTPUT} = "$bin->{DEBUGDIR}/$bin->{NAME}";
 	$bin->{BINARY} = $bin->{NAME};
 }



More information about the samba-cvs mailing list