- Timestamp:
- Dec 13, 2005 4:46:52 AM (19 years ago)
- Location:
- trunk/src/gmake
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/Makefile.kmk
r356 r362 9 9 kmk_TEMPLATE = BIN 10 10 kmk_DEPS = $(PATH_TARGET)/config.h 11 kmk_DEFS.win32 = __WIN32__ 11 12 kmk_INCS = $(PATH_TARGET) . 12 13 #kmk_INCS.win32 = kmkbuiltin/w32 … … 61 62 glob/fnmatch.c \ 62 63 63 ifneq ($(BUILD_TARGET),win32)64 64 # 65 65 # kmkbuiltin commands … … 71 71 kmkbuiltin/echo.c \ 72 72 kmkbuiltin/mkdir.c \ 73 kmkbuiltin/setmode.c 74 ifneq ($(BUILD_TARGET),win32) 75 kmk_SOURCES += \ 73 76 kmkbuiltin/rm.c \ 74 77 kmkbuiltin/cp.c \ 75 78 kmkbuiltin/cp_utils.c \ 76 79 \ 77 kmkbuiltin/setmode.c \78 80 kmkbuiltin/strmode.c \ 79 81 kmkbuiltin/strlcpy.c 82 endif 80 83 81 84 … … 83 86 # Standalone kmkbuiltin commands. 84 87 # 88 ifneq ($(BUILD_TARGET),win32) 85 89 PROGRAMS += kmk_append kmk_cp kmk_echo kmk_mkdir kmk_rm 90 else 91 PROGRAMS += kmk_append kmk_echo kmk_mkdir 92 endif 86 93 87 94 kmk_append_TEMPLATE = BIN … … 108 115 kmkbuiltin/mkdir.c \ 109 116 kmkbuiltin/setmode.c 117 kmk_mkdir_INCS.win32 = $(PATH_TARGET) . 118 kmk_mkdir_DEFS.win32 = HAVE_CONFIG_H 119 kmk_mkdir_SOURCES.win32 = \ 120 getopt.c \ 121 getopt1.c \ 110 122 111 123 kmk_rm_TEMPLATE = BIN … … 115 127 kmkbuiltin/setmode.c \ 116 128 kmkbuiltin/strmode.c 117 endif118 129 119 130 -
trunk/src/gmake/kmkbuiltin.c
r348 r362 187 187 if (!strcmp(pszCmd, "append")) 188 188 rc = kmk_builtin_append(argc, argv, environ); 189 #ifndef _MSC_VER 189 190 else if (!strcmp(pszCmd, "cp")) 190 191 rc = kmk_builtin_cp(argc, argv, environ); 191 192 //else if (!strcmp(pszCmd, "chmod")) 192 193 // rc = kmk_builtin_chmod(argc, argv, environ); 194 #endif 193 195 else if (!strcmp(pszCmd, "echo")) 194 196 rc = kmk_builtin_echo(argc, argv, environ); 195 197 else if (!strcmp(pszCmd, "mkdir")) 196 198 rc = kmk_builtin_mkdir(argc, argv, environ); 199 #ifndef _MSC_VER 197 200 //else if (!strcmp(pszCmd, "mv")) 198 201 // rc = kmk_builtin_mv(argc, argv, environ); … … 201 204 //else if (!strcmp(pszCmd, "rmdir")) 202 205 // rc = kmk_builtin_rmdir(argc, argv, environ); 206 #endif 203 207 else 204 208 { -
trunk/src/gmake/variable.c
r350 r362 685 685 #ifdef CONFIG_WITH_KMK_BUILTIN 686 686 /* The supported kMk Builtin commands. */ 687 #ifdef _MSC_VER 688 (void) define_variable ("KMK_BUILTIN", 11, "append echo mkdir", o_default, 0); 689 #else 687 690 (void) define_variable ("KMK_BUILTIN", 11, "append cp echo mkdir rm", o_default, 0); 691 #endif 688 692 #endif 689 693
Note:
See TracChangeset
for help on using the changeset viewer.