summaryrefslogtreecommitdiff
path: root/imap/src/osdep/vms/build.com
blob: aedbcc8290482cb8e73ff582cfb05ddd9300e715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
$! ========================================================================
$! Copyright 1988-2006 University of Washington
$!
$! Licensed under the Apache License, Version 2.0 (the "License");
$! you may not use this file except in compliance with the License.
$! You may obtain a copy of the License at
$!
$!     http://www.apache.org/licenses/LICENSE-2.0
$!
$! 
$! ========================================================================
$!
$! Program:	Portable c-client build for VMS
$!
$! Author:	Mark Crispin
$!		Networks and Distributed Computing
$!		Computing & Communications
$!		University of Washington
$!		Administration Building, AG-44
$!		Seattle, WA  98195
$!		Internet: MRC@CAC.Washington.EDU
$!
$! Date:	2 August 1994
$! Last Edited:	30 August 2006
$!
$!  Change this to your local timezone.  This value is the number of minutes
$! east of UTC (formerly known as GMT).  Sample values: -300 (US east coast),
$! -480 (US west coast), 540 (Japan), 60 (western Europe).
$!  VAX C's HELP information says that you should be able to use gmtime(), but
$! it returns 0 for the struct.  ftime(), you ask?  It, too, returns 0 for a
$! timezone.  Nothing sucks like a VAX!
$!
$ CC_TIMEZONE=-480
$!
$! CC options
$!
$ CC_PREF = "/OPTIMIZE/INCLUDE=[]"
$ CC_PREF = CC_PREF + "/DEFINE=net_getbuffer=NET_GETBUF"
$ CC_PREF = CC_PREF + "/DEFINE=LOCALTIMEZONE='CC_TIMEZONE'"
$!
$! Determine TCP type
$!
$ TCP_TYPE = "VMSN"		! default to none
$ IF F$LOCATE("MULTINET", P1) .LT. F$LENGTH(P1)
$ THEN
$	DEFINE SYS MULTINET_ROOT:[MULTINET.INCLUDE.SYS],sys$library
$	DEFINE NETINET MULTINET_ROOT:[MULTINET.INCLUDE.NETINET]
$	DEFINE ARPA MULTINET_ROOT:[MULTINET.INCLUDE.ARPA]
$	TCP_TYPE = "VMSM"	! Multinet
$	LINK_OPT = ",LINK_MNT/OPTION"
$ ENDIF
$ IF F$LOCATE("NETLIB", P1) .LT. F$LENGTH(P1)
$ THEN
$	DEFINE SYS SYS$LIBRARY:	! normal .H location
$	DEFINE NETINET SYS$LIBRARY:
$	DEFINE ARPA SYS$LIBRARY:
$	LINK_OPT = ",LINK_NLB/OPTION"
$	TCP_TYPE = "VMSL"	! NETLIB
$ ENDIF
$ IF TCP_TYPE .EQS. "VMSN"
$ THEN
$	DEFINE SYS SYS$LIBRARY:	! normal .H location
$	DEFINE NETINET SYS$LIBRARY:
$	DEFINE ARPA SYS$LIBRARY:
$	LINK_OPT = ""
$ ENDIF
$!
$ COPY TCP_'TCP_TYPE'.C TCP_VMS.C;
$!
$ COPY OS_VMS.H OSDEP.H;
$ SET VERIFY
$ CC'CC_PREF' MAIL
$ CC'CC_PREF' IMAP4R1
$ CC'CC_PREF' SMTP
$ CC'CC_PREF' NNTP
$ CC'CC_PREF' POP3
$ CC'CC_PREF' DUMMYVMS
$ CC'CC_PREF' RFC822
$ CC'CC_PREF' MISC
$ CC'CC_PREF' OS_VMS
$ CC'CC_PREF' SMANAGER
$ CC'CC_PREF' FLSTRING
$ CC'CC_PREF' NEWSRC
$ CC'CC_PREF' NETMSG
$ CC'CC_PREF' UTF8
$ CC'CC_PREF' UTF8AUX
$ CC'CC_PREF' MTEST
$ CC'CC_PREF' MAILUTIL
$!
$ LINK MTEST,OS_VMS,MAIL,IMAP4R1,SMTP,NNTP,POP3,DUMMYVMS,RFC822,MISC,UTF8,-
	UTF8AUX,SMANAGER,FLSTRING,NEWSRC,NETMSG,-
	SYS$INPUT:/OPTION'LINK_OPT',LINK/OPTION
PSECT=_CTYPE_,NOWRT
$ LINK MAILUTIL,OS_VMS,MAIL,IMAP4R1,SMTP,NNTP,POP3,DUMMYVMS,RFC822,MISC,UTF8,-
	UTF8AUX,SMANAGER,FLSTRING,NEWSRC,NETMSG,-
	SYS$INPUT:/OPTION'LINK_OPT',LINK/OPTION
PSECT=_CTYPE_,NOWRT
$ SET NOVERIFY
$ EXIT