# $Id$ DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk GMAKE ?= $(PATH_KBUILD_BIN)/kmk_gmake$(HOSTSUFF_EXE) EXTRAS := ifndef NOT_BOOTSTRAPPING_KNIX EXTRAS := -Dgmake=$(GMAKE) \ -Dmake=$(GMAKE) endif ifeq ($(BUILD_TYPE),debug) EXTRAS += -Doptimize='-g' else EXTRAS += -Doptimize='-g -O2 -fno-omit-frame-pointer' endif ifdef PERL_SH_DIR $(error This is gonna cause trouble: PERL_SH_DIR=$(PERL_SH_DIR)) endif # # No parallel building her. # .NOTPARALLEL: GMAKE := $(GMAKE) -j1 # # The usual targets. # all_recursive: \ config \ build \ install # configuring .PHONY: config .NOTPARALLEL: config config: $(RM) -f config.sh Policy.sh EMXSHELL="$(ASH)" \ ./Configure -des \ -Dprefix=/@unixroot/usr \ -Dvendorprefix=/@unixroot/usr \ -Dsiteprefix=/@unixroot/usr \ -Dscriptdir=/@unixroot/usr/bin \ -Dman1dir=/@unixroot/usr/share/man/man1 \ -Dman3dir=/@unixroot/usr/share/man/man3 \ -Dinstallman1dir=/@unixroot/usr/share/man/man1 \ -Dinstallman3dir=/@unixroot/usr/share/man/man3 \ -Dpager=/@unixroot/usr/bin/less.exe \ $(EXTRAS) \ -Dd_dirfd='undef' \ -Dcf_by='kNIX' # building .PHONY: build .NOTPARALLEL: build build: +$(GMAKE) MAKE=$(GMAKE) # testing .PHONY: check test .NOTPARALLEL: check test check test: +$(GMAKE) MAKE=$(GMAKE) test # installation .PHONY: install .NOTPARALLEL: install install: +$(GMAKE) MAKE=$(GMAKE) \ INSTALLPREFIXEXP=$(PATH_INS)/usr \ bin=$(PATH_INS)/usr/bin \ scriptdir=$(PATH_INS)/usr/bin \ shrpdir=$(PATH_INS)/usr/lib/perl5/5.8.8/os2/CORE \ privlib=$(PATH_INS)/usr/lib/perl5/5.8.8 \ man1dir=$(PATH_INS)/usr/share/man/man1 \ man3dir=$(PATH_INS)/usr/share/man/man3 \ \ DESTDIR=$(PATH_INS) \ INSTALLFLAGS="-V" \ \ install # packing .PHONY: pass_packing .NOTPARALLEL: pass_packing pass_packing: defaultpacking # # perl specific. # .PHONY: depend veryclean depend: $(RMDIR) $(wildcard .depending ./*/.depending ./*/*/.depending ./*/*/*/.depending) +$(GMAKE) MAKE=$(GMAKE) depend veryclean: +$(GMAKE) MAKE=$(GMAKE) veryclean # # Misc helper targets. # myclean: svn st --no-ignore | grep "^[I?]" | cut -b 8- | xargs rm -Rf