1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Rely on GNU make to build static libraries.

Conflicts:

	source/build/smb_build/makefile.pm
This commit is contained in:
Jelmer Vernooij 2008-02-26 14:20:31 +01:00
parent 16c60cd347
commit f34a17a92b
2 changed files with 8 additions and 10 deletions

View File

@ -281,16 +281,7 @@ sub StaticLibrary($$)
$self->output("$ctx->{NAME}_OUTPUT = $ctx->{OUTPUT}\n");
$self->_prepare_list($ctx, "FULL_OBJ_LIST");
$self->output(<< "__EOD__"
#
$ctx->{RESULT_STATIC_LIBRARY}: \$($ctx->{NAME}_FULL_OBJ_LIST)
\@echo Linking \$@
\@rm -f \$@
\@mkdir -p $ctx->{STATICDIR}
\@\$(STLD) \$(STLD_FLAGS) \$@ \$($ctx->{NAME}_FULL_OBJ_LIST)
__EOD__
);
$self->output("$ctx->{RESULT_STATIC_LIBRARY}: \$($ctx->{NAME}_FULL_OBJ_LIST)\n");
}
sub Header($$)

View File

@ -100,6 +100,13 @@ check:: test
unused_macros:
$(srcdir)/script/find_unused_macros.pl `find . -name "*.[ch]"` | sort
# Create a static library
%.a:
@echo Linking $@
@rm -f $@
@mkdir -p $(@D)
@$(STLD) $(STLD_FLAGS) $@ $^
###############################################################################
# File types
###############################################################################