DBD-QBase
view release on metacpan or search on metacpan
Makefile.working view on Meta::CPAN
# 1. (For static extensions) by the ld command when the perl binary
# is linked with the extension library. See EXTRALIBS below.
#
# 2. (For dynamic extensions) by the ld command when the shared
# object is built/linked. See LDLOADLIBS below.
#
# 3. (For dynamic extensions) by the DynaLoader when the shared
# object is loaded. See BSLOADLIBS below.
#
# EXTRALIBS = List of libraries that need to be linked with when
# linking a perl binary which includes this extension
# Only those libraries that actually exist are included.
# These are written to a file and used when linking perl.
#
# LDLOADLIBS = List of those libraries which can or must be linked into
# the shared library when created using ld. These may be
# static or dynamic libraries.
# LD_RUN_PATH is a colon separated list of the directories
# in LDLOADLIBS. It is passed as an environment variable to
# the process that links the shared library.
#
# BSLOADLIBS = List of those libraries that are needed but can be
# linked in dynamically at run time on this platform.
# SunOS/Solaris does not need this because ld records
# the information (from LDLOADLIBS) into the object file.
# This list is used to create a .bs (bootstrap) file.
#
EXTRALIBS = -L$(LIBHOME)
LDLOADLIBS =
BSLOADLIBS =
LD_RUN_PATH=
# --- MakeMaker const_cccmd section:
CCCMD = $(CC) -c -DUSE_NEXT_CTYPE -O
# --- MakeMaker tool_autosplit section:
# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
AUTOSPLITFILE = $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e 'use AutoSplit;autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1) ;'
# --- MakeMaker tool_xsubpp section:
XSUBPPDIR = $(PERL_LIB)/ExtUtils
XSUBPP = $(XSUBPPDIR)/xsubpp
XSUBPPDEPS = $(XSUBPPDIR)/typemap
XSUBPPARGS = -typemap $(XSUBPPDIR)/typemap
# --- MakeMaker tools_other section:
SHELL = /bin/sh
LD = ld
TOUCH = touch
CP = cp
MV = mv
RM_F = rm -f
RM_RF = rm -rf
CHMOD = chmod
# The following is a portable way to say mkdir -p
MKPATH = $(PERL) -wle '$$"="/"; foreach $$p (@ARGV){ next if -d $$p; my(@p); foreach(split(/\//,$$p)){ push(@p,$$_); next if -d "@p/"; print "mkdir @p"; mkdir("@p",0777)||die $$! }} exit 0;'
# --- MakeMaker macro section:
# --- MakeMaker post_constants section:
# --- MakeMaker pasthru section:
PASTHRU1 = INST_LIB="$(INST_LIB)"\
INST_ARCHLIB="$(INST_ARCHLIB)"\
INST_EXE="$(INST_EXE)"\
INSTALLPRIVLIB="$(INSTALLPRIVLIB)"\
INSTALLARCHLIB="$(INSTALLARCHLIB)"\
INSTALLBIN="$(INSTALLBIN)"\
LIBPERL_A="$(LIBPERL_A)"\
LINKTYPE="$(LINKTYPE)"
PASTHRU2 = INSTALLPRIVLIB="$(INSTALLPRIVLIB)"\
INSTALLARCHLIB="$(INSTALLARCHLIB)"\
INSTALLBIN="$(INSTALLBIN)"\
LIBPERL_A="$(LIBPERL_A)"\
LINKTYPE="$(LINKTYPE)"
# --- MakeMaker c_o section:
.c.o:
$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $(INC) $*.c
# --- MakeMaker xs_c section:
.xs.c:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $*.xs >$*.tc && mv $*.tc $@
# --- MakeMaker xs_o section:
.xs.o:
$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $*.xs >xstmp.c && mv xstmp.c $*.c
$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) $(INC) $*.c
# --- MakeMaker top_targets section:
all :: config linkext $(INST_PM)
config :: Makefile $(INST_LIBDIR)/.exists $(INST_ARCHAUTODIR)/.exists Version_check
$(INST_LIBDIR)/.exists :: $(PERL)
@ $(MKPATH) $(INST_LIBDIR)
@ $(TOUCH) $(INST_LIBDIR)/.exists
$(INST_ARCHAUTODIR)/.exists :: $(PERL)
Makefile.working view on Meta::CPAN
$(INST_LIB)/QBase.pm: QBase.pm Makefile $(INST_LIB)/.exists
@ rm -f $@
cp QBase.pm $@
$(CHMOD) 644 $@
@echo $@ >> $(INST_ARCHAUTODIR)/.packlist
@$(AUTOSPLITFILE) $@ $(INST_LIB)/auto
$(INST_LIB)/.exists :: $(PERL)
@ $(MKPATH) $(INST_LIB)
@ $(TOUCH) $(INST_LIB)/.exists
# --- MakeMaker processPL section:
# --- MakeMaker installbin section:
# --- MakeMaker subdirs section:
# none
# --- MakeMaker clean section:
# Delete temporary files but do not touch installed files. We don't delete
# the Makefile here so a later make realclean still has a makefile to use.
clean ::
-rm -rf *~ t/*~ *.o *.a mon.out core so_locations $(BOOTSTRAP) $(BASEEXT).bso $(BASEEXT).exp QBase.c ./blib
# --- MakeMaker realclean section:
# Delete temporary files (via clean) and also delete installed files
realclean purge :: clean
rm -rf $(INST_AUTODIR) $(INST_ARCHAUTODIR)
rm -f $(INST_DYNAMIC) $(INST_BOOT)
rm -f $(INST_STATIC) $(INST_PM)
rm -rf Makefile Makefile.old
# --- MakeMaker dist section:
DISTFILES=RCS/*
ci:
-ci -u $(DISTFILES) 2>&1 | grep -v "no lock set by "
-rcs -q -Nv`echo "$(VERSION)" | tr . _`: $(DISTFILES)
rcsdiff:
for f in $(DISTFILES); do rcsdiff -r$(V) $$f; done 2>&1 | less
dist: ci clean
rcs -q -sRel $(DISTFILES)
co -q -u $(DISTFILES)
rm -f Makefile *~ t/*~
cd ..; tar cvFf $(DISTNAME)-$(VERSION).tar \
`sed -e "s:^:$(BASEEXT)/:" < $(BASEEXT)/MANIFEST`
@cd ..; compress $(DISTNAME)-$(VERSION).tar;
@chmod -w ../$(DISTNAME)-$(VERSION).tar.Z
mv ../$(DISTNAME)-$(VERSION).tar.Z $$HOME/perl/db/DBD/QBase//
cp README $$HOME/perl/db/DBD/QBase/
@cd $$HOME/perl/db/DBD/QBase; pwd; ls -l *.Z
# --- MakeMaker install section:
doc_install ::
@ echo Appending installation info to $(INSTALLARCHLIB)/perllocal.pod
@ $(PERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) \
-e "use ExtUtils::MakeMaker; MM->writedoc('Module', '$(NAME)', \
'LINKTYPE=$(LINKTYPE)', 'VERSION=$(VERSION)', \
'EXE_FILES=$(EXE_FILES)')" >> $(INSTALLARCHLIB)/perllocal.pod
install :: pure_install doc_install
pure_install ::
@$(PERL) -e 'foreach (@ARGV){die qq{You do not have permissions to install into $$_\n} unless -w $$_}' $(INSTALLPRIVLIB) $(INSTALLARCHLIB)
: perl5.000 and MM pre 3.8 autosplit into INST_ARCHLIB, we delete these old files here
rm -f $(INSTALLARCHLIB)/auto/$(FULLEXT)/*.al
rm -f $(INSTALLARCHLIB)/auto/$(FULLEXT)/*.ix
$(MAKE) INST_LIB=$(INSTALLPRIVLIB) INST_ARCHLIB=$(INSTALLARCHLIB) INST_EXE=$(INSTALLBIN)
@$(PERL) -i.bak -lne 'print unless $$seen{$$_}++' $(INSTALLARCHLIB)/auto/$(FULLEXT)/.packlist
#### UNINSTALL IS STILL EXPERIMENTAL ####
uninstall ::
$(RM_RF) `cat $(INSTALLARCHLIB)/auto/$(FULLEXT)/.packlist`
# --- MakeMaker force section:
# Phony target to force checking subdirectories.
FORCE:
# --- MakeMaker perldepend section:
PERL_HDRS = $(PERL_INC)/EXTERN.h $(PERL_INC)/INTERN.h \
$(PERL_INC)/XSUB.h $(PERL_INC)/av.h $(PERL_INC)/cop.h \
$(PERL_INC)/cv.h $(PERL_INC)/dosish.h $(PERL_INC)/embed.h \
$(PERL_INC)/form.h $(PERL_INC)/gv.h $(PERL_INC)/handy.h \
$(PERL_INC)/hv.h $(PERL_INC)/keywords.h $(PERL_INC)/mg.h \
$(PERL_INC)/op.h $(PERL_INC)/opcode.h $(PERL_INC)/patchlevel.h \
$(PERL_INC)/perl.h $(PERL_INC)/perly.h $(PERL_INC)/pp.h \
$(PERL_INC)/proto.h $(PERL_INC)/regcomp.h $(PERL_INC)/regexp.h \
$(PERL_INC)/scope.h $(PERL_INC)/sv.h $(PERL_INC)/unixish.h \
$(PERL_INC)/util.h $(PERL_INC)/config.h
$(OBJECT) : $(PERL_HDRS)
QBase.c : $(XSUBPPDEPS)
# --- MakeMaker makefile section:
$(OBJECT) : Makefile
# We take a very conservative approach here, but it's worth it.
# We move Makefile to Makefile.old here to avoid gnu make looping.
( run in 0.676 second using v1.01-cache-2.11-cpan-39bf76dae61 )