1999-12-02 02:42:23 -05:00
|
|
|
## Compiler, linker, and lib stuff
|
|
|
|
## Makefile for use with watcom win95/winnt executable.
|
2001-04-28 10:14:24 -04:00
|
|
|
#
|
2001-05-14 11:19:12 -04:00
|
|
|
# Copy this file to the ..\src directory (maybe rename to Makefile).
|
2001-04-28 10:14:24 -04:00
|
|
|
#
|
1999-12-02 02:42:23 -05:00
|
|
|
|
2001-01-03 10:14:02 -05:00
|
|
|
CC=wcc386 /zq
|
1999-12-02 02:42:23 -05:00
|
|
|
LINK=wlink
|
|
|
|
|
2001-05-16 16:27:12 -04:00
|
|
|
#
|
|
|
|
# Note: this will wipe anything in the env.var PATH !
|
|
|
|
#
|
2001-05-14 11:19:12 -04:00
|
|
|
.BEFORE
|
|
|
|
@SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
|
|
|
|
|
2004-05-09 17:08:38 -04:00
|
|
|
LFLAGS=op q sys nt op st=32767 op map op de 'GNU Wget' de dw op symf
|
2001-05-14 11:19:12 -04:00
|
|
|
#
|
|
|
|
# op q : quiet !
|
|
|
|
# sys nt : producing an NT app
|
|
|
|
# op st(ack)=32768 : stack size
|
|
|
|
# op vers(ion)=1.7 : "Image version" in the EXE header ( major.minor )
|
|
|
|
# op map : produce a map file
|
|
|
|
# op de : textual description, placed in the executable
|
|
|
|
# de dw : debug info on Dwarf format
|
|
|
|
# op symf : place debug info in a separate wget.sym
|
|
|
|
#
|
|
|
|
|
2004-05-09 17:08:38 -04:00
|
|
|
CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /I. /DWINDOWS /DHAVE_CONFIG_H
|
2001-05-14 11:19:12 -04:00
|
|
|
# ^^^^^^^^ wget will run on NT. We can safely assume a Pentium :-)
|
2001-01-03 10:14:02 -05:00
|
|
|
# /zp4= pack structure members with this alignment
|
|
|
|
# /d1 = line number debug info
|
|
|
|
# /w4 = warning level
|
2001-05-16 16:27:12 -04:00
|
|
|
# /fpd= Pentium floatingpoint bug workaround
|
2001-01-03 10:14:02 -05:00
|
|
|
# /5s = Pentium stack-based calling
|
|
|
|
# /fp5= Pentium floating point
|
|
|
|
# /bm = build multi-threaded
|
|
|
|
# /mf = flat memory model
|
|
|
|
# /bt = "build target" (nt)
|
|
|
|
|
2001-05-14 11:19:12 -04:00
|
|
|
#
|
|
|
|
# Choose one of the following three:
|
|
|
|
# /od /d2 for no optimization, full debug info
|
|
|
|
# /os /d2 to optimize for size, full debug info (or /d1 for line number debug info)
|
|
|
|
# /othexan for "heavy-duty" optimizations, no debug info
|
|
|
|
#
|
|
|
|
#CFLAGS+= /od /d2
|
|
|
|
CFLAGS+= /os /d2
|
|
|
|
#CFLAGS+= /othexan
|
|
|
|
# ^^-- mind the gap !!
|
|
|
|
|
|
|
|
#CFLAGS+= /DDEBUG_MALLOC
|
|
|
|
# ^^-- mind the gap !!
|
|
|
|
|
2003-10-25 20:35:15 -04:00
|
|
|
OBJS = cmpt.obj convert.obj connect.obj cookies.obj ftp.obj ftp-basic.obj &
|
2003-11-21 03:48:45 -05:00
|
|
|
ftp-ls.obj ftp-opie.obj getopt.obj hash.obj host.obj html-parse.obj html-url.obj &
|
2003-11-20 20:48:11 -05:00
|
|
|
http.obj init.obj log.obj main.obj gen-md5.obj gnu-md5.obj netrc.obj progress.obj &
|
2005-02-11 16:34:42 -05:00
|
|
|
recur.obj res.obj retr.obj safe-ctype.obj string_t.obj url.obj utils.obj version.obj &
|
2005-01-01 16:29:11 -05:00
|
|
|
mswindows.obj xmalloc.obj
|
2001-05-14 05:21:27 -04:00
|
|
|
|
|
|
|
LIBFILES =
|
|
|
|
#
|
|
|
|
# Add extra libs like this :
|
|
|
|
#LIBFILES = LIBF lz32.lib,gdi32.lib
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
BINNAME=wget.exe
|
|
|
|
|
2001-05-14 11:19:12 -04:00
|
|
|
all : config.h $(BINNAME) .SYMBOLIC
|
|
|
|
|
|
|
|
#
|
|
|
|
# We use config.h.ms
|
|
|
|
#
|
|
|
|
config.h : ..\windows\config.h.ms
|
|
|
|
copy $[@ $^@
|
|
|
|
|
2001-05-16 16:27:12 -04:00
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
#
|
2001-05-14 05:21:27 -04:00
|
|
|
$(BINNAME): $(OBJS) Makefile
|
2001-05-16 16:27:12 -04:00
|
|
|
$(LINK) $(LFLAGS) NAME $(BINNAME) FILE { $(OBJS) } $(LIBPATH) $(LIBFILES)
|
1999-12-02 02:42:23 -05:00
|
|
|
|
2001-04-28 10:14:24 -04:00
|
|
|
|
2001-05-14 05:21:27 -04:00
|
|
|
#
|
|
|
|
# Explicit dependencies not needed because Watcom C stores
|
|
|
|
# dependency information in the object file. Wmake can read this information
|
|
|
|
# if prompted by .AUTODEPEND
|
|
|
|
#
|
2001-01-03 10:14:02 -05:00
|
|
|
|
2001-05-14 05:21:27 -04:00
|
|
|
.c.obj: .AUTODEPEND
|
2001-05-14 11:19:12 -04:00
|
|
|
$(CC) $(CFLAGS) $[@
|
|
|
|
|
2001-12-19 13:23:10 -05:00
|
|
|
.c.i: .AUTODEPEND
|
|
|
|
$(CC) $(CFLAGS) -fo=$@ /Pc $[@
|
|
|
|
|