mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Makefile.watcom update by Csaba Raduly.
This commit is contained in:
parent
a4f97e2965
commit
71045a2853
@ -1,3 +1,8 @@
|
|||||||
|
2001-05-16 Csaba Raduly <csaba.raduly@sophos.com>
|
||||||
|
|
||||||
|
* windows/Makefile.watcom: Make linker accept space-separated list
|
||||||
|
of object files.
|
||||||
|
|
||||||
2001-05-14 Herold Heiko <Heiko.Herold@previnet.it>
|
2001-05-14 Herold Heiko <Heiko.Herold@previnet.it>
|
||||||
|
|
||||||
* windows/Makefile.src: Update for SSL.
|
* windows/Makefile.src: Update for SSL.
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
CC=wcc386 /zq
|
CC=wcc386 /zq
|
||||||
LINK=wlink
|
LINK=wlink
|
||||||
|
|
||||||
|
#
|
||||||
|
# Note: this will wipe anything in the env.var PATH !
|
||||||
|
#
|
||||||
.BEFORE
|
.BEFORE
|
||||||
@SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
|
@SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
|
||||||
|
|
||||||
@ -27,7 +30,7 @@ CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /DWINDOWS /DHAVE_CONFIG_H
|
|||||||
# /zp4= pack structure members with this alignment
|
# /zp4= pack structure members with this alignment
|
||||||
# /d1 = line number debug info
|
# /d1 = line number debug info
|
||||||
# /w4 = warning level
|
# /w4 = warning level
|
||||||
# /fpd= ??? no such switch !
|
# /fpd= Pentium floatingpoint bug workaround
|
||||||
# /5s = Pentium stack-based calling
|
# /5s = Pentium stack-based calling
|
||||||
# /fp5= Pentium floating point
|
# /fp5= Pentium floating point
|
||||||
# /bm = build multi-threaded
|
# /bm = build multi-threaded
|
||||||
@ -48,42 +51,10 @@ CFLAGS+= /os /d2
|
|||||||
#CFLAGS+= /DDEBUG_MALLOC
|
#CFLAGS+= /DDEBUG_MALLOC
|
||||||
# ^^-- mind the gap !!
|
# ^^-- mind the gap !!
|
||||||
|
|
||||||
#
|
OBJS = cmpt.obj connect.obj cookies.obj fnmatch.obj ftp.obj ftp-basic.obj &
|
||||||
# The trouble: dependencies need to be space-separated (exe : obj1 obj2)
|
ftp-ls.obj ftp-opie.obj getopt.obj hash.obj headers.obj host.obj html-parse.obj html-url.obj &
|
||||||
# wlink wants them comma-separated ( wlink FILE obj1,obj2 )
|
http.obj init.obj log.obj main.obj md5.obj netrc.obj rbuf.obj &
|
||||||
# The trick : Use wmake's "immediate expansion" feautre ( $+ turns it on,
|
recur.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj
|
||||||
# end-of-line and $_ turns it off ) to construct
|
|
||||||
# Background : wmake expands macros in macro definitions at the place of
|
|
||||||
# the macro call (GNU make's = behaviour)
|
|
||||||
# $+ changes this behaviour to expand the macros at the
|
|
||||||
# place of the macro *definition* (kinda like gmake's := does)
|
|
||||||
#
|
|
||||||
# See the "Macros" topic in the Watcom Tools Guide
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add new object files to OBJS, with $_ appended
|
|
||||||
# Note: There MUST NOT be a $_ on the last one !!
|
|
||||||
# & is the line continuation character (also shouldn't be present at the end)
|
|
||||||
#
|
|
||||||
OBJS = cmpt.obj$_ connect.obj$_ cookies.obj$_ fnmatch.obj$_ ftp.obj$_ ftp-basic.obj$_ &
|
|
||||||
ftp-ls.obj$_ ftp-opie.obj$_ getopt.obj$_ hash.obj$_ headers.obj$_ host.obj$_ html-parse.obj$_ html-url.obj$_ &
|
|
||||||
http.obj$_ init.obj$_ log.obj$_ main.obj$_ md5.obj$_ netrc.obj$_ rbuf.obj$_ &
|
|
||||||
recur.obj$_ retr.obj$_ safe-ctype.obj$_ url.obj$_ utils.obj$_ version.obj$_ mswindows.obj
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# For LINKOBJS, $_ is defined as a comma
|
|
||||||
#
|
|
||||||
_=,
|
|
||||||
LINKOBJS=FILE $+$(OBJS)$-
|
|
||||||
|
|
||||||
#
|
|
||||||
# Empty $_ again. OBJS can now be used as the dependency list for wget.exe
|
|
||||||
#
|
|
||||||
_=
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LIBFILES =
|
LIBFILES =
|
||||||
#
|
#
|
||||||
@ -100,8 +71,13 @@ all : config.h $(BINNAME) .SYMBOLIC
|
|||||||
config.h : ..\windows\config.h.ms
|
config.h : ..\windows\config.h.ms
|
||||||
copy $[@ $^@
|
copy $[@ $^@
|
||||||
|
|
||||||
|
#
|
||||||
|
# Note: this will pass all the OBJ files to wlink,
|
||||||
|
# resulting in a very long command line (410 chars, last I counted)
|
||||||
|
# This might fail on Win9x (works with NT's cmd.exe)
|
||||||
|
#
|
||||||
$(BINNAME): $(OBJS) Makefile
|
$(BINNAME): $(OBJS) Makefile
|
||||||
$(LINK) $(LFLAGS) NAME $(BINNAME) $(LINKOBJS) $(LIBPATH) $(LIBFILES)
|
$(LINK) $(LFLAGS) NAME $(BINNAME) FILE { $(OBJS) } $(LIBPATH) $(LIBFILES)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user