Changeset 585 for trunk/kBuild


Ignore:
Timestamp:
Nov 24, 2006, 6:14:13 AM (19 years ago)
Author:
bird
Message:

BUILD_TYPE defaults to 'release'. BUILD_MODE is the only variant needing lowercasing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r578 r585  
    7878
    7979#
    80 # Assert build type.
     80# Set default build type.
    8181#
    8282ifndef BUILD_TYPE
    83 ifndef BUILD_MODE
    84 $(error kBuild: You must define BUILD_TYPE!)
    85 endif
    86 BUILD_TYPE          := $(BUILD_MODE)
    87 endif
    88 ifeq ($(BUILD_TYPE),DEBUG)
    89 BUILD_TYPE          := debug
    90 endif
    91 ifeq ($(BUILD_TYPE),RELEASE)
     83 ifdef BUILD_MODE
     84 # BUILD_MODE is legacy from the OS/2 build system. :)
     85BUILD_TYPE          := $(tolower $(BUILD_MODE))
     86 else
    9287BUILD_TYPE          := release
    93 endif
    94 ifeq ($(BUILD_TYPE),PROFILE)
    95 BUILD_TYPE          := profile
     88 endif
    9689endif
    9790
Note: See TracChangeset for help on using the changeset viewer.