aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent44e5e37f3895f67a94fedb6040ba800a9992762e (diff)
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 'lib')
-rw-r--r--lib/Makefile.Watcom14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/Makefile.Watcom b/lib/Makefile.Watcom
index 07f2a2d9a..e74ab0f36 100644
--- a/lib/Makefile.Watcom
+++ b/lib/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
@@ -110,7 +115,7 @@ clean: .SYMBOLIC
-$(RM) $(RESOURCE) $(LINK_ARG) $(LIB_ARG)
vclean realclean: clean .SYMBOLIC
- -$(RM) $(TARGETS) $(LIBNAME).map
+ -$(RM) $(TARGETS) $(LIBNAME).map $(LIBNAME).sym
-$(RD) $(OBJ_BASE)\stat
-$(RD) $(OBJ_BASE)\dyn
-$(RD) $(OBJ_BASE)
@@ -135,7 +140,7 @@ $(RESOURCE): libcurl.rc
.ERASE
.c{$(OBJ_BASE)\dyn}.obj:
- $(CC) $(CFLAGS) -bd $[@ -fo=$^@
+ $(CC) $(CFLAGS) -bd -br $[@ -fo=$^@
.ERASE
.c{$(OBJ_BASE)\stat}.obj:
@@ -145,9 +150,12 @@ $(LINK_ARG): $(__MAKEFILES__)
%create $^@
@%append $^@ system nt dll
@%append $^@ file { $(OBJS_DYN) }
+!ifdef %debug
+ @%append $^@ debug all
+ @%append $^@ option symfile
+!endif
@%append $^@ option quiet, map, caseexact, eliminate, implib=$(LIBNAME)_imp.lib,
@%append $^@ res=$(RESOURCE) libpath $(SYS_LIBS)
-# @%append $^@ library clib3r.lib
@%append $^@ library wldap32.lib
!ifdef %use_watt32
@%append $^@ library $(%watt_root)\lib\wattcpw_imp.lib