]> git.sur5r.net Git - openldap/blob - build/platforms/vms/make.com
01fe3265a4135e6abeac9749735101e6d3c29472
[openldap] / build / platforms / vms / make.com
1 $! 30-Nov-1995  ldap V3.2  Craig Watkins  Innosoft International, Inc.
2 $!
3 $! This is a crude make procedure to build the ldap libraries and the test
4 $! program.  This should work with DECC or VAXC compilers.
5 $!
6 $! This links with UCX libraries so that it should work on any TCP/IP
7 $! package that has UCX emulation.  This has been tested with MultiNet.
8 $! You may have to change the LINK to find your copy of UCX$IPC.OLB.
9 $!
10 $ ARCH = "VAX"
11 $ if f$getsyi("hw_model") .GE. 1024 then ARCH = "ALPHA"
12 $ !
13 $ ! If we are on an alpha/axp, we need to use DECC -- otherwise, your choice
14 $ COMPILER = "VAXC"
15 $ if ARCH .eqs. "ALPHA" then COMPILER = "DECC"
16 $ !
17 $ if COMPILER .eqs. "VAXC"
18 $ then
19 $   define arpa sys$library:
20 $   define sys sys$library:
21 $   define netinet sys$library:
22 $! This assumes your default compiler is VAXC; if not, add /VAXC below 
23 $   cc_switches = "/include=([---.include],[---.libraries.vms])/define=(LDAP_DEBUG,CLDAP,LDAP_REFERRALS,STR_TRANSLATION,LDAP_CHARSET_8859=88591)"
24 $!
25 $ else
26 $!
27 $   cc_switches = "/decc/standard=vaxc/include=([---.include],[---.libraries.vms])/define=(__STDC__,LDAP_DEBUG,CLDAP,LDAP_REFERRALS,STR_TRANSLATION,LDAP_CHARSET_8859=88591)
28 $ endif
29 $ !
30 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.liblber]io
31 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.liblber]encode
32 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.liblber]decode
33 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.liblber]version
34 $ !
35 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]ABANDON        
36 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]ADD            
37 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]ADDENTRY       
38 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]BIND           
39 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]CACHE          
40 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]CHARSET
41 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]CLDAP          
42 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]COMPARE        
43 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]DELETE         
44 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]DISPTMPL       
45 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]DSPARSE        
46 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]ERROR          
47 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]FREE           
48 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]FRIENDLY       
49 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETATTR        
50 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETDN          
51 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETDXBYNAME
52 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETENTRY       
53 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETFILTER      
54 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]GETVALUES      
55 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]KBIND          
56 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]MODIFY         
57 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]MODRDN         
58 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]OPEN           
59 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]OS-IP
60 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]REGEX          
61 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]REQUEST          
62 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]RESULT         
63 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]SBIND          
64 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]SEARCH         
65 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]SORT           
66 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]SRCHPREF       
67 $ cc 'CC_SWITCHES' 'P1' /define="TEMPLATEFILE=""LDAP_ETC:ldaptemplates.conf""" -
68                         [---.libraries.libldap]TMPLOUT        
69 $!CC 'CC_SWITCHES' 'P1' [---.libraries.libldap]TMPLTEST       
70 $ cc 'CC_SWITCHES' 'P1' /define="FILTERFILE=""LDAP_ETC:ldapfilter.conf""" -
71                         [---.libraries.libldap]UFN            
72 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]UNBIND         
73 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]VERSION        
74 $ !
75 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.vms]getopt
76 $ cc 'CC_SWITCHES' 'P1'  [---.libraries.vms]strings
77 $ !
78 $ library/create/log ldap.olb *.obj
79 $ !
80 $ cc 'CC_SWITCHES' 'P1' [---.libraries.libldap]TEST           
81 $ !
82 $ if COMPILER .eqs. "VAXC"
83 $ then
84 $!
85 $  link test, sys$input/opt
86 ldap.olb/lib
87 sys$library:ucx$ipc.olb/lib
88 sys$share:vaxcrtl.exe/share
89 $!
90 $ else
91 $!
92 $  link test, sys$input/opt
93 ldap.olb/lib
94 $ endif
95 $!