-$(BINNAME): $(LINKOBJS)
- $(LINK) $(LFLAGS) NAME $(BINNAME) $(OBJS) $(LIBPATH) $(LIBFILES)
-
-cmpt.obj: cmpt.c wget.h sysdep.h options.h
-connect.obj: connect.c wget.h sysdep.h options.h connect.h host.h
-fnmatch.obj: fnmatch.c wget.h sysdep.h options.h fnmatch.h
-ftp-basic.obj: ftp-basic.c wget.h sysdep.h options.h utils.h rbuf.h connect.h host.h ftp.h
-ftp-ls.obj: ftp-ls.c wget.h sysdep.h options.h utils.h ftp.h rbuf.h url.h ftpparse.h
-ftp-opie.obj: ftp-opie.c wget.h sysdep.h options.h md5.h
-ftp.obj: ftp.c wget.h sysdep.h options.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
-ftpparse.obj: ftpparse.c ftpparse.h
-getopt.obj: getopt.c wget.h sysdep.h options.h getopt.h
-hash.obj: hash.c wget.h sysdep.h options.h utils.h hash.h
-headers.obj: headers.c wget.h sysdep.h options.h connect.h rbuf.h headers.h
-host.obj: host.c wget.h sysdep.h options.h utils.h host.h url.h hash.h
-html-parse.obj: html-parse.c wget.h sysdep.h options.h html-parse.h
-html-url.obj: html-url.c wget.h sysdep.h options.h html-parse.h url.h utils.h
-http.obj: http.c wget.h sysdep.h options.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h fnmatch.h netrc.h md5.h
-init.obj: init.c wget.h sysdep.h options.h utils.h init.h host.h recur.h netrc.h
-log.obj: log.c wget.h sysdep.h options.h utils.h
-main.obj: main.c wget.h sysdep.h options.h utils.h getopt.h init.h retr.h rbuf.h recur.h host.h
-md5.obj: md5.c wget.h sysdep.h options.h md5.h
-netrc.obj: netrc.c wget.h sysdep.h options.h utils.h netrc.h init.h
-rbuf.obj: rbuf.c wget.h sysdep.h options.h rbuf.h connect.h
-recur.obj: recur.c wget.h sysdep.h options.h url.h recur.h utils.h retr.h rbuf.h ftp.h fnmatch.h host.h hash.h
-retr.obj: retr.c wget.h sysdep.h options.h utils.h retr.h rbuf.h url.h recur.h ftp.h host.h connect.h hash.h
-snprintf.obj: snprintf.c
-url.obj: url.c wget.h sysdep.h options.h utils.h url.h host.h
-utils.obj: utils.c wget.h sysdep.h options.h utils.h fnmatch.h hash.h
-version.obj: version.c
-
-.c.obj:
+all : config.h $(BINNAME) .SYMBOLIC
+
+#
+# We use config.h.ms
+#
+config.h : ..\windows\config.h.ms
+ 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
+ $(LINK) $(LFLAGS) NAME $(BINNAME) FILE { $(OBJS) } $(LIBPATH) $(LIBFILES)
+
+
+#
+# Explicit dependencies not needed because Watcom C stores
+# dependency information in the object file. Wmake can read this information
+# if prompted by .AUTODEPEND
+#
+
+.c.obj: .AUTODEPEND