2 ## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
5 ## include Makefile.in for OpenLDAP
7 all-local: ldap_config.h FORCE
10 -$(MKDIR) $(DESTDIR)$(includedir)
11 for header in $(srcdir)/lber.h lber_types.h \
12 $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
13 $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
15 $(srcdir)/disptmpl.h $(srcdir)/srchpref.h; \
17 $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
23 veryclean-local: clean-local FORCE
24 $(RM) portable.h lber_types.h ldap_features.h
26 depend-local: ldap_config.h FORCE
28 LDAP_CONFIG=$(srcdir)/ldap_config.h.in
30 ldap_config.h: $(LDAP_CONFIG) Makefile
33 @echo "/* Generated from $(LDAP_CONFIG) on `date` */" > $@; \
34 if test $(PLAT) = NT; then \
35 sysconfdir=`cygpath -w $(sysconfdir) | \
36 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
37 datadir=`cygpath -w $(datadir) | \
38 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
39 bindir=`cygpath -w $(bindir) | \
40 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
41 sbindir=`cygpath -w $(sbindir) | \
42 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
43 libexecdir=`cygpath -w $(libexecdir) | \
44 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
45 localstatedir=`cygpath -w $(localstatedir) | \
46 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
47 editor=`cygpath -w $(EDITOR) | \
48 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
49 finger=`cygpath -w $(FINGER) | \
50 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
51 sendmail=`cygpath -w $(SENDMAIL) | \
52 $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
54 sysconfdir=$(sysconfdir); \
58 libexecdir=$(libexecdir); \
59 localstatedir=$(localstatedir); \
62 sendmail=$(SENDMAIL); \
65 -e "s;%SYSCONFDIR%;$$sysconfdir;" \
66 -e "s;%DATADIR%;$$datadir;" \
67 -e "s;%BINDIR%;$$bindir;" \
68 -e "s;%SBINDIR%;$$sbindir;" \
69 -e "s;%LIBEXECDIR%;$$libexecdir;" \
70 -e "s;%RUNDIR%;$$localstatedir;" \
71 -e "s;%EDITOR%;$$editor;" \
72 -e "s;%FINGER%;$$finger;" \
73 -e "s;%SENDMAIL%;$$sendmail;" \
74 $(LDAP_CONFIG) >> $@; \
78 install-common: all-common install-local
79 clean-common: clean-local
80 veryclean-common: veryclean-local
81 depend-common: depend-local