VirtualBox

Changeset 996 in kBuild


Ignore:
Timestamp:
May 29, 2007 9:18:10 PM (18 years ago)
Author:
bird
Message:

quick debug round (and selecting the right editor mode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap.gmk

    r995 r996  
    2828#
    2929# ASSUMES:
    30 #   - BUILD_TARGET, BUILD_PLATFORM_ARCH, BUILD_PLATFORM_CPU in the env.
     30#   - BUILD_TARGET, BUILD_PLATFORM_ARCH, BUILD_PLATFORM_CPU and BUILD_TYPE in the env.
    3131#   - PATH_KBUILD points to ./kBuild with an absolute path.
     32#   - PATH_KBUILD_BIN must *NOT* be defined anywhere.
    3233#   - Current directory == bootstrap.gmk directory.
    3334#   - mkdir -p works.
     
    3637#   - cd somedir && command works.
    3738#   - echo done > file works.
     39#   - GNU make implements CURDIR, if not please define SRCDIR.
    3840#
    3941# Tip. kBuild/env.sh (g)make -f bootstrap.kmk
     
    4749#
    4850
    49 srcdir = .
    50 OUTDIR = $(srcdir)/out/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)/$(BUILD_TYPE)/bootstrap
     51SRCDIR = $(CURDIR)
     52OUTDIR = $(SRCDIR)/out/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)/$(BUILD_TYPE)/bootstrap
    5153
    52 .NOTPARALLEL:
    5354
    54 .PHONEY: all stage1 stage2
    55 all: stage1
     55all: stage1 stage2
     56
    5657
    5758#
     
    6364    $(OUTDIR)/kmk/kmk_ash \
    6465    $(OUTDIR)/kmk/kmk_sed \
    65     $(srcdir)/src/kmk/config.h.$(BUILD_TARGET) \
    66     $(srcdir)/src/sed/config.h.$(BUILD_TARGET)
     66    $(SRCDIR)/src/kmk/config.h.$(BUILD_TARGET) \
     67    $(SRCDIR)/src/sed/config.h.$(BUILD_TARGET)
    6768
    6869# kmk
    69 $(OUTDIR)/kmk/:
    70     mkdir -p $@
    71 
    72 $(OUTDIR)/kmk/ts-autoreconf: $(OUTDIR)/kmk/
    73     cd $(srcdir)/src/kmk && autoreconf -i -v
    74     echo done > $@
     70$(OUTDIR)/kmk/ts-autoreconf:
     71        mkdir -p $(@D)
     72        cd $(SRCDIR)/src/kmk && autoreconf -i -v
     73        echo done > $@
    7574
    7675$(OUTDIR)/kmk/ts-configured: $(OUTDIR)/kmk/ts-autoreconf
    77     cd $(OUTDIR)/kmk && $(srcdir)/src/kmk/configure
    78     echo done > $@
     76        cd $(OUTDIR)/kmk && $(SRCDIR)/src/kmk/configure
     77        echo done > $@
    7978
    8079$(OUTDIR)/kmk/config.h: $(OUTDIR)/kmk/ts-configured
    8180
    82 $(srcdir)/src/kmk/config.h.$(BUILD_TARGET): $(OUTDIR)/kmk/config.h
    83     cp -f $(OUTDIR)/kmk/config.h $(srcdir)/src/kmk/config.h.$(BUILD_TARGET)
     81$(SRCDIR)/src/kmk/config.h.$(BUILD_TARGET): $(OUTDIR)/kmk/config.h
     82        cp -f $(OUTDIR)/kmk/config.h $(SRCDIR)/src/kmk/config.h.$(BUILD_TARGET)
    8483
    8584$(OUTDIR)/kmk/kmk: $(OUTDIR)/kmk/ts-configured
    86     $(MAKE) -C $(@D)
     85        $(MAKE) -C $(@D)
    8786
    8887# sed
    89 $(OUTDIR)/sed/:
    90     mkdir -p $@
    91 
    92 $(OUTDIR)/sed/ts-autoreconf: $(OUTDIR)/sed/
    93     cd $(srcdir)/src/sed && autoreconf -i -v
    94     echo done > $@
     88$(OUTDIR)/sed/ts-autoreconf:
     89        mkdir -p $(@D)
     90        @# only required on OS/2, so skip it.
     91        @# cd $(SRCDIR)/src/sed && autoreconf -i -v
     92        echo done > $@
    9593
    9694$(OUTDIR)/sed/ts-configured: $(OUTDIR)/sed/ts-autoreconf
    97     cd $(OUTDIR)/sed && $(srcdir)/src/sed/configure --without-libintl --disable-nls
    98     echo done > $@
     95        cd $(OUTDIR)/sed && $(SRCDIR)/src/sed/configure --without-libintl --disable-nls
     96        echo done > $@
    9997
    10098$(OUTDIR)/sed/config.h: $(OUTDIR)/sed/ts-configured
    10199
    102 $(srcdir)/src/sed/config.h.$(BUILD_TARGET): $(OUTDIR)/sed/config.h
    103     cp -f $< $@
     100$(SRCDIR)/src/sed/config.h.$(BUILD_TARGET): $(OUTDIR)/sed/config.h
     101        cp -f $< $@
    104102
    105 $(OUTDIR)/sed/src/sed: $(OUTDIR)/sed/ts-configured
    106     $(MAKE) -C $(@D)
     103$(OUTDIR)/sed/sed/sed: $(OUTDIR)/sed/ts-configured
     104        $(MAKE) -C $(@D)/..
    107105
    108 $(OUTDIR)/kmk/kmk_sed: $(OUTDIR)/sed/src/sed
    109     cp -f $< $@
     106$(OUTDIR)/kmk/kmk_sed: $(OUTDIR)/sed/sed/sed
     107        cp -f $< $@
    110108
    111109$(OUTDIR)/kmk/kmk_ash:
    112     ln -s /bin/sh $@
     110        ln -s /bin/sh $@
    113111
    114112#
     
    120118    $(OUTDIR)/ts-stage2-install
    121119
    122 $(OUTDIR)/ts-stage2-build:
    123     PATH_KBUILD_BIN=$(OUTDIR)/kmk $(OUTDIR)/kmk -C $(srcdir)
    124     echo done > $@
     120$(OUTDIR)/ts-stage2-build: \
     121                $(SRCDIR)/src/kmk/config.h.$(BUILD_TARGET) \
     122                $(SRCDIR)/src/sed/config.h.$(BUILD_TARGET) \
     123                $(OUTDIR)/kmk/kmk
     124        $(OUTDIR)/kmk/kmk -C $(SRCDIR)
     125        echo done > $@
    125126
    126 $(OUTDIR)/ts-stage2-install:
    127     PATH_KBUILD_BIN=$(OUTDIR)/kmk $(OUTDIR)/kmk -C $(srcdir) PATH_INS=$(srcdir) install
    128     echo done > $@
     127$(OUTDIR)/ts-stage2-install: $(OUTDIR)/ts-stage2-build
     128        $(OUTDIR)/kmk/kmk -C $(SRCDIR) PATH_INS=`pwd` install
     129        echo done > $@
    129130
     131
     132##
     133## Clean the output files...
     134##
     135#clean:
     136#       rm -Rf $(OUTDIR)
     137
     138
     139# can't hurt...
     140.NOTPARALLEL:
     141
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette