1 use ExtUtils::MakeMaker;
4 VERSION_FROM => "lib/List/Util.pm",
5 MAN3PODS => {}, # Pods will be built by installman.
7 DEFINE => "-DPERL_EXT",
12 # We go through the ListUtil.c trickery to foil platforms
13 # that have the feature combination of
15 # (2) allowing only one object by the same name in the static library
16 # (3) the object name matching being case-blind
17 # This means that we can't have the top-level util.o
18 # and the extension-level Util.o in the same build.
19 # One such platform is the POSIX-BC BS2000 EBCDIC mainframe platform.
23 unless (defined $Config{usedl}) {
27 return '' unless $self->needs_linking();
30 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) Util.xs > ListUtil.xsc && $(MV) ListUtil.xsc ListUtil.c
36 return '' unless $self->needs_linking();
39 Util$(OBJ_EXT): ListUtil.c
40 $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) ListUtil.c
41 $(MV) ListUtil$(OBJ_EXT) Util$(OBJ_EXT)