]> git.sur5r.net Git - openldap/blob - include/setup.mak
Extended ber_mem functions, add context argument.
[openldap] / include / setup.mak
1 # $OpenLDAP$
2 #
3 # Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4 # COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 #
6
7 !include ../build/version.var
8
9 !if "$(ol_patch)" != "X"
10 ol_version=$(ol_major).$(ol_minor).$(ol_patch)
11 ol_type=Release
12 !elseif "$(ol_minor)" != "X"
13 ol_version=$(ol_major).$(ol_minor).$(ol_patch)
14 ol_type=Engineering
15 !else
16 ol_version=$(ol_major).$(ol_minor)
17 ol_type=Devel
18 !endif
19 ol_string="$(ol_package) $(ol_version)-$(ol_type)"
20
21 .SUFFIXES: .nt
22
23 .nt.h:
24         copy $*.nt $*.h
25
26 all: setup.txt
27
28 setup.txt: lber_types.h ldap_config.h ldap_features.h portable.h setup.mak
29         copy setup.mak setup.txt
30
31 lber_types.h: lber_types.nt
32 ldap_config.h: ldap_config.nt
33 ldap_features.h: ldap_features.nt
34
35 # note - the edlin script has non-printable characters:
36 # you must use a Ctrl-C to terminate the (i)nput command
37 portable.h: portable.nt
38         echo Setting up $(ol_string)...
39         copy portable.nt portable.h
40         edlin portable.h < <<
41 1,#sOPENLDAP_PACKAGE
42 d
43 i
44 #define OPENLDAP_PACKAGE "$(ol_package)"
45 \ 3
46
47 1,#sOPENLDAP_VERSION
48 d
49 i
50 #define OPENLDAP_VERSION "$(ol_version)"
51 \ 3
52
53 e
54 <<NOKEEP
55