VirtualBox

Changeset 362 in kBuild for trunk


Ignore:
Timestamp:
Dec 13, 2005 4:46:52 AM (19 years ago)
Author:
bird
Message:

Adding builtin commands to MSC version.

Location:
trunk/src/gmake
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/Makefile.kmk

    r356 r362  
    99kmk_TEMPLATE        = BIN
    1010kmk_DEPS            = $(PATH_TARGET)/config.h
     11kmk_DEFS.win32      = __WIN32__
    1112kmk_INCS            = $(PATH_TARGET) .
    1213#kmk_INCS.win32      = kmkbuiltin/w32
     
    6162        glob/fnmatch.c \
    6263
    63 ifneq ($(BUILD_TARGET),win32)
    6464#
    6565# kmkbuiltin commands
     
    7171        kmkbuiltin/echo.c \
    7272        kmkbuiltin/mkdir.c \
     73        kmkbuiltin/setmode.c
     74ifneq ($(BUILD_TARGET),win32)
     75kmk_SOURCES += \
    7376        kmkbuiltin/rm.c \
    7477        kmkbuiltin/cp.c \
    7578        kmkbuiltin/cp_utils.c \
    7679        \
    77         kmkbuiltin/setmode.c \
    7880        kmkbuiltin/strmode.c \
    7981        kmkbuiltin/strlcpy.c
     82endif
    8083
    8184
     
    8386# Standalone kmkbuiltin commands.
    8487#
     88ifneq ($(BUILD_TARGET),win32)
    8589PROGRAMS += kmk_append kmk_cp kmk_echo kmk_mkdir kmk_rm
     90else
     91PROGRAMS += kmk_append kmk_echo kmk_mkdir
     92endif
    8693
    8794kmk_append_TEMPLATE = BIN
     
    108115        kmkbuiltin/mkdir.c \
    109116        kmkbuiltin/setmode.c
     117kmk_mkdir_INCS.win32 = $(PATH_TARGET) .
     118kmk_mkdir_DEFS.win32 = HAVE_CONFIG_H
     119kmk_mkdir_SOURCES.win32 = \
     120        getopt.c \
     121        getopt1.c \
    110122
    111123kmk_rm_TEMPLATE = BIN
     
    115127        kmkbuiltin/setmode.c \
    116128        kmkbuiltin/strmode.c
    117 endif
    118129
    119130
  • trunk/src/gmake/kmkbuiltin.c

    r348 r362  
    187187    if (!strcmp(pszCmd, "append"))
    188188        rc = kmk_builtin_append(argc, argv, environ);
     189#ifndef _MSC_VER
    189190    else if (!strcmp(pszCmd, "cp"))
    190191        rc = kmk_builtin_cp(argc, argv, environ);
    191192    //else if (!strcmp(pszCmd, "chmod"))
    192193    //    rc = kmk_builtin_chmod(argc, argv, environ);
     194#endif
    193195    else if (!strcmp(pszCmd, "echo"))
    194196        rc = kmk_builtin_echo(argc, argv, environ);
    195197    else if (!strcmp(pszCmd, "mkdir"))
    196198        rc = kmk_builtin_mkdir(argc, argv, environ);
     199#ifndef _MSC_VER
    197200    //else if (!strcmp(pszCmd, "mv"))
    198201    //    rc = kmk_builtin_mv(argc, argv, environ);
     
    201204    //else if (!strcmp(pszCmd, "rmdir"))
    202205    //    rc = kmk_builtin_rmdir(argc, argv, environ);
     206#endif
    203207    else
    204208    {
  • trunk/src/gmake/variable.c

    r350 r362  
    685685#ifdef CONFIG_WITH_KMK_BUILTIN
    686686  /* The supported kMk Builtin commands. */
     687#ifdef _MSC_VER
     688  (void) define_variable ("KMK_BUILTIN", 11, "append echo mkdir", o_default, 0);
     689#else
    687690  (void) define_variable ("KMK_BUILTIN", 11, "append cp echo mkdir rm", o_default, 0);
     691#endif
    688692#endif
    689693
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