Ignore:
Timestamp:
Nov 23, 2006, 10:58:23 AM (19 years ago)
Author:
bird
Message:

versioning. fixes #5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r557 r576  
    213213
    214214#
    215 # Disable some features and stamp out predefines if we're running
    216 # vanilla GNU Make.
    217 #
    218 ifndef KMK_VERSION
    219 NO_COMPILE_CMDS_DEPS:= 1
    220 NO_LINK_CMDS_DEPS   := 1
    221 include $(PATH_KBUILD)/StampOutPredefines.kmk
    222 endif
     215# Check make version.
     216#
     217ifdef KMK_VERSION
     218 ifneq ($(KBUILD_VERSION_MAJOR).$(KBUILD_VERSION_MINOR),0.1)
     219  ifneq ($(KBUILD_VERSION_MAJOR),0)
     220   $(warning kBuild: kmk major version mismatch, expected '0' found '$(KBUILD_VERSION_MAJOR)'!)
     221  else
     222   $(warning kBuild: kmk minor version mismatch, expected '1' found '$(KBUILD_VERSION_MINOR)'!)
     223  endif
     224 endif
     225else
     226 # Vanilla GNU Make. Only supported for kBuild bootstrapping. Disable some features to make it work.
     227 NO_COMPILE_CMDS_DEPS:= 1
     228 NO_LINK_CMDS_DEPS   := 1
     229 sinclude $(PATH_KBUILD)/StampOutPredefines.kmk
     230 ifndef IS_BOOTSTRAPPING_KBUILD_NOW
     231  $(warning kBuild: Using vanilla GNU make isn't safe for anything but kBuild bootstrapping!)
     232 endif
     233endif
     234
    223235
    224236#
Note: See TracChangeset for help on using the changeset viewer.