imapext-2007

diff src/osdep/vms/build.com @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/osdep/vms/build.com	Mon Sep 14 15:17:45 2009 +0900
     1.3 @@ -0,0 +1,99 @@
     1.4 +$! ========================================================================
     1.5 +$! Copyright 1988-2006 University of Washington
     1.6 +$!
     1.7 +$! Licensed under the Apache License, Version 2.0 (the "License");
     1.8 +$! you may not use this file except in compliance with the License.
     1.9 +$! You may obtain a copy of the License at
    1.10 +$!
    1.11 +$!     http://www.apache.org/licenses/LICENSE-2.0
    1.12 +$!
    1.13 +$! 
    1.14 +$! ========================================================================
    1.15 +$!
    1.16 +$! Program:	Portable c-client build for VMS
    1.17 +$!
    1.18 +$! Author:	Mark Crispin
    1.19 +$!		Networks and Distributed Computing
    1.20 +$!		Computing & Communications
    1.21 +$!		University of Washington
    1.22 +$!		Administration Building, AG-44
    1.23 +$!		Seattle, WA  98195
    1.24 +$!		Internet: MRC@CAC.Washington.EDU
    1.25 +$!
    1.26 +$! Date:	2 August 1994
    1.27 +$! Last Edited:	30 August 2006
    1.28 +$!
    1.29 +$!  Change this to your local timezone.  This value is the number of minutes
    1.30 +$! east of UTC (formerly known as GMT).  Sample values: -300 (US east coast),
    1.31 +$! -480 (US west coast), 540 (Japan), 60 (western Europe).
    1.32 +$!  VAX C's HELP information says that you should be able to use gmtime(), but
    1.33 +$! it returns 0 for the struct.  ftime(), you ask?  It, too, returns 0 for a
    1.34 +$! timezone.  Nothing sucks like a VAX!
    1.35 +$!
    1.36 +$ CC_TIMEZONE=-480
    1.37 +$!
    1.38 +$! CC options
    1.39 +$!
    1.40 +$ CC_PREF = "/OPTIMIZE/INCLUDE=[]"
    1.41 +$ CC_PREF = CC_PREF + "/DEFINE=net_getbuffer=NET_GETBUF"
    1.42 +$ CC_PREF = CC_PREF + "/DEFINE=LOCALTIMEZONE='CC_TIMEZONE'"
    1.43 +$!
    1.44 +$! Determine TCP type
    1.45 +$!
    1.46 +$ TCP_TYPE = "VMSN"		! default to none
    1.47 +$ IF F$LOCATE("MULTINET", P1) .LT. F$LENGTH(P1)
    1.48 +$ THEN
    1.49 +$	DEFINE SYS MULTINET_ROOT:[MULTINET.INCLUDE.SYS],sys$library
    1.50 +$	DEFINE NETINET MULTINET_ROOT:[MULTINET.INCLUDE.NETINET]
    1.51 +$	DEFINE ARPA MULTINET_ROOT:[MULTINET.INCLUDE.ARPA]
    1.52 +$	TCP_TYPE = "VMSM"	! Multinet
    1.53 +$	LINK_OPT = ",LINK_MNT/OPTION"
    1.54 +$ ENDIF
    1.55 +$ IF F$LOCATE("NETLIB", P1) .LT. F$LENGTH(P1)
    1.56 +$ THEN
    1.57 +$	DEFINE SYS SYS$LIBRARY:	! normal .H location
    1.58 +$	DEFINE NETINET SYS$LIBRARY:
    1.59 +$	DEFINE ARPA SYS$LIBRARY:
    1.60 +$	LINK_OPT = ",LINK_NLB/OPTION"
    1.61 +$	TCP_TYPE = "VMSL"	! NETLIB
    1.62 +$ ENDIF
    1.63 +$ IF TCP_TYPE .EQS. "VMSN"
    1.64 +$ THEN
    1.65 +$	DEFINE SYS SYS$LIBRARY:	! normal .H location
    1.66 +$	DEFINE NETINET SYS$LIBRARY:
    1.67 +$	DEFINE ARPA SYS$LIBRARY:
    1.68 +$	LINK_OPT = ""
    1.69 +$ ENDIF
    1.70 +$!
    1.71 +$ COPY TCP_'TCP_TYPE'.C TCP_VMS.C;
    1.72 +$!
    1.73 +$ COPY OS_VMS.H OSDEP.H;
    1.74 +$ SET VERIFY
    1.75 +$ CC'CC_PREF' MAIL
    1.76 +$ CC'CC_PREF' IMAP4R1
    1.77 +$ CC'CC_PREF' SMTP
    1.78 +$ CC'CC_PREF' NNTP
    1.79 +$ CC'CC_PREF' POP3
    1.80 +$ CC'CC_PREF' DUMMYVMS
    1.81 +$ CC'CC_PREF' RFC822
    1.82 +$ CC'CC_PREF' MISC
    1.83 +$ CC'CC_PREF' OS_VMS
    1.84 +$ CC'CC_PREF' SMANAGER
    1.85 +$ CC'CC_PREF' FLSTRING
    1.86 +$ CC'CC_PREF' NEWSRC
    1.87 +$ CC'CC_PREF' NETMSG
    1.88 +$ CC'CC_PREF' UTF8
    1.89 +$ CC'CC_PREF' UTF8AUX
    1.90 +$ CC'CC_PREF' MTEST
    1.91 +$ CC'CC_PREF' MAILUTIL
    1.92 +$!
    1.93 +$ LINK MTEST,OS_VMS,MAIL,IMAP4R1,SMTP,NNTP,POP3,DUMMYVMS,RFC822,MISC,UTF8,-
    1.94 +	UTF8AUX,SMANAGER,FLSTRING,NEWSRC,NETMSG,-
    1.95 +	SYS$INPUT:/OPTION'LINK_OPT',LINK/OPTION
    1.96 +PSECT=_CTYPE_,NOWRT
    1.97 +$ LINK MAILUTIL,OS_VMS,MAIL,IMAP4R1,SMTP,NNTP,POP3,DUMMYVMS,RFC822,MISC,UTF8,-
    1.98 +	UTF8AUX,SMANAGER,FLSTRING,NEWSRC,NETMSG,-
    1.99 +	SYS$INPUT:/OPTION'LINK_OPT',LINK/OPTION
   1.100 +PSECT=_CTYPE_,NOWRT
   1.101 +$ SET NOVERIFY
   1.102 +$ EXIT

UW-IMAP'd extensions by yuuji