summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-06-15 16:02:06 +0000
committerSteve Hay <SteveHay@planit.com>2005-06-15 16:02:06 +0000
commite54e7e92e82be930d3964d114c29e511355e5ecc (patch)
tree204381bef6c3228dc8d22fe1eac13309645e6227 /win32
parent61dbb99a522b2949bb5b65d33183104796a3c272 (diff)
downloadperl-e54e7e92e82be930d3964d114c29e511355e5ecc.tar.gz
Fix win32/makefile.mk for building with bcc32 5.5.1 and dmake 4.4
p4raw-id: //depot/perl@24852
Diffstat (limited to 'win32')
-rw-r--r--win32/makefile.mk31
1 files changed, 21 insertions, 10 deletions
diff --git a/win32/makefile.mk b/win32/makefile.mk
index d456ae7947..02ccd1fd7e 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -378,7 +378,7 @@ LINK32 = tlink32
.ENDIF
LIB32 = tlib /P128
IMPLIB = implib -c
-RSC = rc
+RSC = brcc32
#
# Options
@@ -391,7 +391,7 @@ SUBSYS = console
CXX_FLAG = -P
LIBC = cw32mti.lib
-LIBFILES = $(CRYPT_LIB) import32.lib $(LIBC)
+LIBFILES = $(CRYPT_LIB) ws2_32.lib import32.lib $(LIBC)
.IF "$(CFG)" == "Debug"
OPTIMIZE = -v -D_RTLDLL -DDEBUGGING
@@ -567,12 +567,23 @@ BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
# require backslashes to be doubled-up when written to $(mktmp) files.
# Other dmake's do not require this and would actually output a double
# backslash if they were doubled-up.
-.IF "$(shell type $(mktmp \\))"=="\\"
+.IF "$(shell @type $(mktmp \\))"=="\\"
B=\\
.ELSE
B=\\\
.ENDIF
+# There is a related issue with other escape sequences: Sarathy's old
+# dmake automatically maps escape sequences like \n to their ASCII values
+# when used in macros, while other dmake's only do so if this behaviour
+# is explicitly requested with the :m modifier.
+DONTUSETHIS=\n
+.IF "$(shell @type $(mktmp \n))"=="\n"
+N=$(DONTUSETHIS:m)
+.ELSE
+N=$(DONTUSETHIS)
+.ENDIF
+
o *= .obj
a *= .lib
@@ -1075,10 +1086,10 @@ perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
.IF "$(CCTYPE)" == "BORLAND"
$(LINK32) -Tpd -ap $(BLINK_FLAGS) \
- @$(mktmp c0d32$(o) $(PERLDLL_OBJ:s,\,$B,)\n \
- $@,\n \
- $(LIBFILES)\n \
- perldll.def\n)
+ @$(mktmp c0d32$(o) $(PERLDLL_OBJ:s,\,$B,)$N \
+ $@,$N \
+ $(LIBFILES)$N \
+ perldll.def$N)
$(IMPLIB) $*.lib $@
.ELIF "$(CCTYPE)" == "GCC"
$(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(BLINK_FLAGS) \
@@ -1149,9 +1160,9 @@ perlmain$(o) : perlmain.c
$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
.IF "$(CCTYPE)" == "BORLAND"
$(LINK32) -Tpe -ap $(BLINK_FLAGS) \
- @$(mktmp c0x32$(o) $(PERLEXE_OBJ:s,\,$B,)\n \
- $(@:s,\,$B,),\n \
- $(PERLIMPLIB) $(LIBFILES)\n)
+ @$(mktmp c0x32$(o) $(PERLEXE_OBJ:s,\,$B,)$N \
+ $(@:s,\,$B,),$N \
+ $(PERLIMPLIB) $(LIBFILES)$N)
.ELIF "$(CCTYPE)" == "GCC"
$(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
$(PERLEXE_OBJ) $(PERLIMPLIB) $(LIBFILES)