1 # ========================================================================
2 # Copyright 1988-2007 University of Washington
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
8 # http://www.apache.org/licenses/LICENSE-2.0
11 # ========================================================================
13 # Program: Portable C client makefile -- Windows 2000/XP version
15 # Author: Mark Crispin
16 # Networks and Distributed Computing
17 # Computing & Communications
18 # University of Washington
19 # Administration Building, AG-44
21 # Internet: MRC@CAC.Washington.EDU
24 # Last Edited: 23 May 2007
31 AUTHENTICATORS = ext gss md5 pla log
32 DRIVERS = imap nntp pop3 mbx mtx tenex unix
36 VSCOMPAT = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
37 CFLAGS = /MT /W3 /Ox /DCHUNKSIZE=65536 $(OSCOMPAT) $(VSCOMPAT) -nologo /I.. $(EXTRACFLAGS)
39 CCLIENTLIB = cclient.lib
44 $(CC) -c $(CFLAGS) $*.c
48 drivers $(EXTRADRIVERS) $(DRIVERS) dummy
49 setproto $(CREATEDRIVER) $(APPENDDRIVER)
50 echo ssl_onceonlyinit (); >> linkage.c
51 mkauths $(EXTRAAUTHENTICATORS) $(AUTHENTICATORS)
52 echo mail_versioncheck (CCLIENTVERSION); >> linkage.c
55 copy ip$(IP)_nt.c ip_nt.c
57 mail.obj: mail.h misc.h osdep.h mail.c
59 misc.obj: mail.h misc.h misc.c
61 fdstring.obj: mail.h misc.h osdep.h fdstring.h fdstring.c
63 flstring.obj: mail.h misc.h osdep.h flstring.h flstring.c
65 netmsg.obj: mail.h misc.h netmsg.h osdep.h netmsg.c
67 newsrc.obj: mail.h misc.h newsrc.h osdep.h newsrc.c
69 rfc822.obj: mail.h rfc822.h misc.h rfc822.c
71 smanager.obj: mail.h misc.h smanager.c
73 utf8.obj: mail.h misc.h osdep.h utf8.h
75 utf8aux.obj: mail.h misc.h osdep.h utf8.h
77 imap4r1.obj: mail.h imap4r1.h misc.h osdep.h imap4r1.c
79 nntp.obj: mail.h nntp.h smtp.h rfc822.h misc.h osdep.h nntp.c
81 pop3.obj: mail.h rfc822.h misc.h osdep.h pop3.c
83 smtp.obj: mail.h smtp.h rfc822.h misc.h osdep.h smtp.c
85 os_w2k.obj: mail.h osdep.h env_nt.h fs.h ftl.h nl.h tcp.h tcp_nt.h yunchan.h \
86 os_w2k.c fs_nt.c ftl_nt.c nl_nt.c env_nt.c ssl_w2k.c ssl_none.c \
87 ip_nt.c tcp_nt.c yunchan.c pmatch.c write.c \
88 mailfile.h auth_gss.c auth_md5.c auth_ntl.c auth_pla.c auth_log.c \
91 mbxnt.obj: mail.h misc.h osdep.h mbxnt.c
93 mtxnt.obj: mail.h misc.h osdep.h mtxnt.c
95 tenexnt.obj: mail.h misc.h osdep.h tenexnt.c
97 unixnt.obj: mail.h unixnt.h pseudo.h misc.h osdep.h unixnt.c
99 dummynt.obj: mail.h dummy.h misc.h osdep.h dummynt.c
103 $(CCLIENTLIB): mail.obj misc.obj fdstring.obj flstring.obj netmsg.obj \
104 newsrc.obj rfc822.obj smanager.obj utf8.obj utf8aux.obj \
105 imap4r1.obj nntp.obj pop3.obj smtp.obj os_w2k.obj \
106 mbxnt.obj mtxnt.obj tenexnt.obj unixnt.obj dummynt.obj pseudo.obj
107 if exist $(CCLIENTLIB) del $(CCLIENTLIB)
108 LIB /NOLOGO /OUT:cclient.lib \
109 mail.obj misc.obj fdstring.obj flstring.obj netmsg.obj \
110 newsrc.obj rfc822.obj smanager.obj utf8.obj utf8aux.obj \
111 imap4r1.obj nntp.obj pop3.obj smtp.obj os_w2k.obj \
112 mbxnt.obj mtxnt.obj tenexnt.obj unixnt.obj dummynt.obj pseudo.obj
115 del *.lib *.obj linkage.* osdep.* ip_nt.c auths.c *.exe *.exp || rem
117 # A monument to a hack of long ago and far away...