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 -- NT version + Kerberos
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
25 # Last Edited: 1 Aug 2018
31 AUTHENTICATORS = ext gss md5 pla log
32 DRIVERS = imap nntp pop3 mbx mtx tenex unix
35 OSCOMPAT = /DWIN32 /D_WIN32_WINNT=0x0501 /I\k5\include
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 if exist linkage.c del linkage.c
49 if exist linkage.h del linkage.h
50 if exist auths.c del auths.c
51 $(CC) -c $(CFLAGS) proc.c
52 link /subsystem:console /out:proc.exe proc.obj
53 proc drivers $(EXTRADRIVERS) $(DRIVERS) dummy
54 proc setproto $(CREATEDRIVER) $(APPENDDRIVER)
56 proc mkauths $(EXTRAAUTHENTICATORS) $(AUTHENTICATORS)
62 mail.obj: mail.h misc.h osdep.h mail.c
64 misc.obj: mail.h misc.h misc.c
66 fdstring.obj: mail.h misc.h osdep.h fdstring.h fdstring.c
68 flstring.obj: mail.h misc.h osdep.h flstring.h flstring.c
70 netmsg.obj: mail.h misc.h netmsg.h osdep.h netmsg.c
72 newsrc.obj: mail.h misc.h newsrc.h osdep.h newsrc.c
74 rfc822.obj: mail.h rfc822.h misc.h rfc822.c
76 smanager.obj: mail.h misc.h smanager.c
78 utf8.obj: mail.h misc.h osdep.h utf8.h
80 utf8aux.obj: mail.h misc.h osdep.h utf8.h
82 imap4r1.obj: mail.h imap4r1.h misc.h osdep.h imap4r1.c
84 nntp.obj: mail.h nntp.h smtp.h rfc822.h misc.h osdep.h nntp.c
86 pop3.obj: mail.h rfc822.h misc.h osdep.h pop3.c
88 smtp.obj: mail.h smtp.h rfc822.h misc.h osdep.h smtp.c
90 os_ntk.obj: mail.h osdep.h env_nt.h fs.h ftl.h nl.h tcp.h tcp_nt.h yunchan.h \
91 os_ntk.c fs_nt.c ftl_nt.c nl_nt.c env_nt.c ssl_nt.c ssl_none.c \
92 ip_nt.c tcp_nt.c yunchan.c pmatch.c write.c \
93 mailfile.h auth_gss.c auth_md5.c auth_ntl.c auth_pla.c auth_log.c \
96 mbxnt.obj: mail.h misc.h osdep.h mbxnt.c
98 mtxnt.obj: mail.h misc.h osdep.h mtxnt.c
100 tenexnt.obj: mail.h misc.h osdep.h tenexnt.c
102 unixnt.obj: mail.h unixnt.h pseudo.h misc.h osdep.h unixnt.c
104 dummynt.obj: mail.h dummy.h misc.h osdep.h dummynt.c
108 $(CCLIENTLIB): mail.obj misc.obj fdstring.obj flstring.obj netmsg.obj \
109 newsrc.obj rfc822.obj smanager.obj utf8.obj utf8aux.obj \
110 imap4r1.obj nntp.obj pop3.obj smtp.obj os_ntk.obj \
111 mbxnt.obj mtxnt.obj tenexnt.obj unixnt.obj dummynt.obj pseudo.obj
112 if exist $(CCLIENTLIB) del $(CCLIENTLIB)
113 LIB /NOLOGO /OUT:cclient.lib \
114 mail.obj misc.obj fdstring.obj flstring.obj netmsg.obj \
115 newsrc.obj rfc822.obj smanager.obj utf8.obj utf8aux.obj \
116 imap4r1.obj nntp.obj pop3.obj smtp.obj os_ntk.obj \
117 mbxnt.obj mtxnt.obj tenexnt.obj unixnt.obj dummynt.obj pseudo.obj
120 del *.lib *.obj linkage.* osdep.* ip_nt.c auths.c *.exe *.exp || rem
122 # A monument to a hack of long ago and far away...