Skip to content

Commit

Permalink
Fix to overwrite libcurl name.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Aug 7, 2010
1 parent af4eae7 commit 6ea043a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions lib/Makefile.Watcom
Expand Up @@ -10,15 +10,17 @@ SYS_INCL = -I$(%watcom)\h\nt -I$(%watcom)\h
SYS_LIBS = $(%watcom)\lib386\nt;$(%watcom)\lib386
!endif

!ifndef %libname
!ifdef %libname
LIBNAME = $(%libname)
!else
LIBNAME = libcurl
!endif
TARGETS = $(LIBNAME).dll $(LIBNAME)_imp.lib $(LIBNAME).lib

CC = wcc386
LD = wlink
RC = wrc
AR = wlib
RC = wrc

!ifdef __LOADDLL__
! loaddll wcc386 wccd386
Expand Down
13 changes: 9 additions & 4 deletions src/Makefile.Watcom
Expand Up @@ -10,12 +10,17 @@ SYS_INCL = -I$(%watcom)\h\nt -I$(%watcom)\h
SYS_LIBS = $(%watcom)\lib386\nt;$(%watcom)\lib386
!endif

TARGETS = libcurl_wc.dll libcurl_wc_imp.lib libcurl_wc.lib
!ifdef %libname
LIBNAME = $(%libname)
!else
LIBNAME = libcurl
!endif
TARGETS = $(LIBNAME).dll $(LIBNAME)_imp.lib $(LIBNAME).lib

CC = wcc386
LD = wlink
RC = wrc
AR = wlib
RC = wrc

!ifdef __LOADDLL__
! loaddll wcc386 wccd386
Expand Down Expand Up @@ -123,15 +128,15 @@ $(LINK_ARG): $(__MAKEFILES__)
# @%append $^@ library clib3r.lib
!ifdef %curl_static
@%append $^@ library wldap32.lib
@%append $^@ library ..\lib\libcurl.lib
@%append $^@ library ..\lib\$(LIBNAME).lib
!ifdef %use_zlib
@%append $^@ library $(ZLIB_ROOT)\zlib.lib
!endif
!ifdef %use_ares
@%append $^@ library $(ARES_ROOT)\cares.lib
!endif
!else
@%append $^@ library ..\lib\libcurl_imp.lib
@%append $^@ library ..\lib\$(LIBNAME)_imp.lib
!endif
!ifeq USE_WATT32 1
@%append $^@ library $(%watt_root)\lib\wattcpw_imp.lib
Expand Down

0 comments on commit 6ea043a

Please sign in to comment.