1# ========================================================================
2# Copyright 1988-2007 University of Washington
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10#
11# ========================================================================
12
13
14# Program:	Portable C client makefile -- MS-DOS version
15#
16# Author:	Mark Crispin
17#		Networks and Distributed Computing
18#		Computing & Communications
19#		University of Washington
20#		Administration Building, AG-44
21#		Seattle, WA  98195
22#		Internet: MRC@CAC.Washington.EDU
23#
24# Date:		11 May 1989
25# Last Edited:	23 May 2007
26
27
28OS = wsk
29EXTRAAUTHENTICATORS=
30DEFAULTAUTHENTICATORS= ext md5 pla log
31EXTRADRIVERS =
32DRIVERS = imap nntp pop3 mtx bezerk
33DEFAULTDRIVER = mtx
34CFLAGS= -AL /DCHUNKSIZE=4096 -nologo $(EXTRACFLAGS)
35CC = cl
36
37all:	mtest.exe
38
39.c.obj:
40	$(CC) -c $(CFLAGS) $*.c
41
42osdep.h: os_$(OS).h
43	copy os_$(OS).h osdep.h
44	drivers $(EXTRADRIVERS) $(DRIVERS) dummy
45	mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
46	ECHO #define DEFAULTPROTO $(DEFAULTDRIVER)proto >> LINKAGE.H
47	ECHO   if (!mail_parameters (NIL,GET_GETS)) >> LINKAGE.C
48	ECHO     mail_parameters (NIL,SET_GETS,(void *) dos_default_gets); >> LINKAGE.C
49	ECHO mail_versioncheck (CCLIENTVERSION); >> LINKAGE.C
50
51mtest.obj: mail.h smtp.h misc.h osdep.h mtest.c
52
53mail.obj: mail.h misc.h osdep.h mail.c
54
55misc.obj: mail.h misc.h misc.c
56
57fdstring.obj: mail.h misc.h osdep.h fdstring.h fdstring.c
58
59flstring.obj: mail.h misc.h osdep.h flstring.h flstring.c
60
61netmsg.obj: mail.h misc.h netmsg.h osdep.h netmsg.c
62
63newsrc.obj: mail.h misc.h newsrc.h osdep.h newsrc.c
64
65rfc822.obj: mail.h rfc822.h misc.h rfc822.c
66
67smanager.obj: mail.h misc.h smanager.c
68
69utf8.obj: mail.h misc.h osdep.h utf8.h
70
71utf8aux.obj: mail.h misc.h osdep.h utf8.h
72
73imap4r1.obj: mail.h imap4r1.h misc.h osdep.h imap4r1.c
74
75nntp.obj: mail.h nntp.h smtp.h rfc822.h misc.h osdep.h nntp.c
76
77pop3.obj: mail.h rfc822.h misc.h osdep.h pop3.c
78
79smtp.obj: mail.h smtp.h rfc822.h misc.h osdep.h smtp.c
80
81os_$(OS).obj: mail.h osdep.h env_dos.h fs.h ftl.h nl.h tcp.h \
82	os_$(OS).c fs_dos.c ftl_dos.c nl_dos.c env_dos.c pmatch.c write.c
83
84mtxdos.obj: mail.h misc.h osdep.h mtxdos.c
85
86bezrkdos.obj: mail.h misc.h osdep.h bezrkdos.c
87
88dummydos.obj: mail.h dummy.h misc.h osdep.h dummydos.c
89
90cclient.lib: mail.obj misc.obj fdstring.obj flstring.obj netmsg.obj \
91	newsrc.obj rfc822.obj smanager.obj utf8.obj utf8aux.obj \
92	imap4r1.obj nntp.obj pop3.obj smtp.obj os_$(OS).obj \
93	mtxdos.obj bezrkdos.obj dummydos.obj
94	erase cclient.lib
95	lib cclient +mail+misc+fdstring+flstring+netmsg+newsrc+rfc822+smanager+utf8+utf8aux+imap4r1+nntp+pop3+smtp+os_$(OS)+mtxdos+bezrkdos+dummydos;
96
97mtest.exe: cclient.lib mtest.obj
98	mtest$(OS)
99