Skip to content

Commit

Permalink
INTEGRATION: CWS dmake48 (1.3.16); FILE MERGED
Browse files Browse the repository at this point in the history
2007/03/17 19:00:37 vq 1.3.16.1: #i73499# Add new .WINPATH attribute to generate Windows style paths
(with regular slashes) instead of the default cygwin style (POSIX)
paths for dmake's dynamic macros.

This attribute is specific for cygwin dmake executables and non-cygwin
environments ignore this attribute.

The windows style paths use regular slashes ('/') instead of the
usual windows backslash ('\') as directory separator to avoid quoting
problems (It still is a cygwin dmake!) and cygwin as well as native
windows programs should have no problems using this (c:/foo/bar) path
representation.

The affected macros are $@, $*, $>, $?, $<, $&, $^ and $(PWD),
$(MAKEDIR) and $(TMD).

Examples:

Content of $(PWD) without .WINPATH (default):  /cygdrive/c/temp

Content of $(PWD) with .WINPATH set:           c:/temp
  • Loading branch information
obo committed Jun 12, 2007
1 parent 25ba57f commit 56619ac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dmdump.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* RCS $Id: dmdump.c,v 1.3 2006-06-29 11:23:21 ihi Exp $
/* RCS $Id: dmdump.c,v 1.4 2007-06-12 06:05:11 obo Exp $
--
-- SYNOPSIS
-- Dump the internal dag to stdout.
Expand Down Expand Up @@ -111,7 +111,17 @@ STRINGPTR sp;

static char *_attrs[] = { ".PRECIOUS", ".SILENT", ".LIBRARY",
".EPILOG", ".PROLOG", ".IGNORE", ".SYMBOL", ".NOINFER",
".UPDATEALL", ".SEQUENTIAL", ".SETDIR=", ".USESHELL", ".SWAP", ".MKSARGS",
".UPDATEALL", ".SEQUENTIAL", ".SETDIR=", ".USESHELL",
#if defined(MSDOS)
".SWAP",
#else
# if defined(__CYGWIN__)
".WINPATH",
# else
"- unused -",
# endif
#endif
".MKSARGS",
".PHONY", ".NOSTATE", ".IGNOREGROUP", ".EXECUTE", ".ERRREMOVE" };

static void
Expand Down

0 comments on commit 56619ac

Please sign in to comment.