1999-09-09 13:30:12 +08:00
|
|
|
|
# $OpenLDAP$
|
1999-08-05 07:59:53 +08:00
|
|
|
|
#
|
2004-01-02 03:15:16 +08:00
|
|
|
|
# Copyright 1998-2004 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-05 07:59:53 +08:00
|
|
|
|
# COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
#
|
1999-06-19 05:24:04 +08:00
|
|
|
|
|
2003-03-29 04:37:51 +08:00
|
|
|
|
!include ../build/version.var
|
|
|
|
|
|
|
|
|
|
!if "$(ol_patch)" != "X"
|
|
|
|
|
ol_version=$(ol_major).$(ol_minor).$(ol_patch)
|
|
|
|
|
ol_type=Release
|
|
|
|
|
!elseif "$(ol_minor)" != "X"
|
|
|
|
|
ol_version=$(ol_major).$(ol_minor).$(ol_patch)
|
|
|
|
|
ol_type=Engineering
|
|
|
|
|
!else
|
|
|
|
|
ol_version=$(ol_major).$(ol_minor)
|
|
|
|
|
ol_type=Devel
|
|
|
|
|
!endif
|
|
|
|
|
ol_string="$(ol_package) $(ol_version)-$(ol_type)"
|
|
|
|
|
|
1999-08-25 07:47:11 +08:00
|
|
|
|
.SUFFIXES: .nt
|
1999-06-19 05:24:04 +08:00
|
|
|
|
|
1999-08-25 07:47:11 +08:00
|
|
|
|
.nt.h:
|
|
|
|
|
copy $*.nt $*.h
|
1999-06-19 09:53:15 +08:00
|
|
|
|
|
2003-03-29 14:27:37 +08:00
|
|
|
|
all: setup.txt
|
1999-06-19 05:24:04 +08:00
|
|
|
|
|
1999-08-25 07:47:11 +08:00
|
|
|
|
setup.txt: lber_types.h ldap_config.h ldap_features.h portable.h setup.mak
|
|
|
|
|
copy setup.mak setup.txt
|
1999-06-19 05:24:04 +08:00
|
|
|
|
|
1999-08-25 07:47:11 +08:00
|
|
|
|
lber_types.h: lber_types.nt
|
|
|
|
|
ldap_config.h: ldap_config.nt
|
|
|
|
|
ldap_features.h: ldap_features.nt
|
2003-03-29 04:37:51 +08:00
|
|
|
|
|
|
|
|
|
# note - the edlin script has non-printable characters:
|
|
|
|
|
# you must use a Ctrl-C to terminate the (i)nput command
|
1999-08-25 07:47:11 +08:00
|
|
|
|
portable.h: portable.nt
|
2003-03-29 04:37:51 +08:00
|
|
|
|
echo Setting up $(ol_string)...
|
|
|
|
|
copy portable.nt portable.h
|
|
|
|
|
edlin portable.h < <<
|
|
|
|
|
1,#sOPENLDAP_PACKAGE
|
|
|
|
|
d
|
|
|
|
|
i
|
|
|
|
|
#define OPENLDAP_PACKAGE "$(ol_package)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1,#sOPENLDAP_VERSION
|
|
|
|
|
d
|
|
|
|
|
i
|
|
|
|
|
#define OPENLDAP_VERSION "$(ol_version)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
e
|
|
|
|
|
<<NOKEEP
|
2003-03-19 09:31:42 +08:00
|
|
|
|
|