summaryrefslogtreecommitdiff
path: root/src/Makefile.Watcom
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-08-10 17:29:06 +0200
committerGuenter Knauf <lists@gknw.net>2010-08-10 17:29:06 +0200
commit495d3e07d441e8c50fb930bd3b5fe5cda7ca63a8 (patch)
tree7e9e1fe45194047cd097c853406206c35b2a840a /src/Makefile.Watcom
parent44e5e37f3895f67a94fedb6040ba800a9992762e (diff)
downloadgnurl-495d3e07d441e8c50fb930bd3b5fe5cda7ca63a8.tar.gz
gnurl-495d3e07d441e8c50fb930bd3b5fe5cda7ca63a8.tar.bz2
gnurl-495d3e07d441e8c50fb930bd3b5fe5cda7ca63a8.zip
More Watcom makefile fixes.
Added the -br switch to dynamic builds which fixes the issue I saw with curl's --version output. Added debug info and symfile for debug builds to linker opts. Added DLL loader for wlink back, but this time dependend on wlink version. Patch posted to the list by malak.jiri AT gmail.com.
Diffstat (limited to 'src/Makefile.Watcom')
-rw-r--r--src/Makefile.Watcom13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.Watcom b/src/Makefile.Watcom
index 9fa3ab4a0..1f67cbc91 100644
--- a/src/Makefile.Watcom
+++ b/src/Makefile.Watcom
@@ -26,6 +26,11 @@ RC = wrc
! loaddll wcc386 wccd386
! loaddll wpp386 wppd386
! loaddll wlib wlibd
+! if $(__VERSION__) < 1280
+! loaddll wlink wlinkd
+! else
+! loaddll wlink wlink
+! endif
!endif
MD = mkdir
@@ -80,6 +85,7 @@ OBJS = $(CURL_CFILES:.c=.obj)
!ifdef %curl_static
CFLAGS += -DCURL_STATICLIB
!else
+CFLAGS += -br
OBJS += $(CURLX_SOURCES:.c=.obj)
!endif
OBJS = $OBJ_DIR\$(OBJS: = $OBJ_DIR\)
@@ -95,7 +101,7 @@ clean: .SYMBOLIC
vclean realclean: clean .SYMBOLIC
-$(RD) $(OBJ_DIR)
- -$(RM) curl.exe curl.map hugehelp.c
+ -$(RM) curl.exe curl.map curl.sym hugehelp.c
hugehelp.c: hugehelp.c.cvs
$(CP) $[@ $^@
@@ -123,9 +129,12 @@ $(LINK_ARG): $(__MAKEFILES__)
%create $^@
@%append $^@ system nt
@%append $^@ file { $(OBJS) }
+!ifdef %debug
+ @%append $^@ debug all
+ @%append $^@ option symfile
+!endif
@%append $^@ option quiet, map, caseexact, eliminate,
@%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)
-# @%append $^@ library clib3r.lib
!ifdef %curl_static
@%append $^@ library wldap32.lib
@%append $^@ library ..\lib\$(LIBNAME).lib