1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
# Makefile for experimental dynamic loading under Digital UNIX.
# Copyright (C) 1997 Luke Howard.
# This file is part of the nss_ldap Library.
# The nss_ldap library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
# The nss_ldap Library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
# You should have received a copy of the GNU Library General Public
# License along with the nss_ldap Library; see the file COPYING.LIB. If not,
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# $Id: Makefile.osf,v 2.6 1999/06/17 00:13:49 lukeh Exp $
#
MODULE=nss_ldap
HDRS= \
ldap-ethers.h \
ldap-grp.h \
ldap-hosts.h \
ldap-netgrp.h \
ldap-network.h \
ldap-nss.h \
ldap-proto.h \
ldap-pwd.h \
ldap-rpc.h \
ldap-service.h \
util.h \
globals.h \
ltf.h \
irs-nss.h \
dl-pwd.h \
snprintf.h \
resolve.h \
dnsconfig.h
SRCS= ldap-nss.c \
ldap-pwd.c \
ldap-grp.c \
ldap-rpc.c \
ldap-hosts.c \
ldap-network.c \
ldap-proto.c \
ldap-service.c \
ldap-ethers.c \
util.c \
globals.c \
dl-pwd.c \
dl-grp.c \
snprintf.c \
resolve.c \
dnsconfig.c
OBJS=${SRCS:.c=.o}
LIB=lib${MODULE}.so
# uncomment NSFLAGS if you are using the Netscape SDK
#NSFLAGS=-I/usr/local/ldapsdk/include -DLDAP_VERSION3_API
# uncomment GNUFLAGS if you are building a GNU glibc-2.x module
GNUFLAGS=-DDL_NSS -DOSF1 -DNEEDPROTOS -D_REENTRANT
INCDIRS=-I. -I/u2/local/include
LIBDIRS=-L../nss_libldap
LIBS=-lldap -lc_r
CCFLAGS= -w0
CC=cc
COMPILERFLAGS=${CCFLAGS}
CFLAGS=-DLDAP_REFERRALS ${NSFLAGS} ${SUNFLAGS} ${BSDFLAGS} ${GNUFLAGS} ${COMPILERFLAGS} ${INCDIRS}
all: ${MODULE} install
#HIDEOPTS=-hidden -exported_symbol "`cat exports.osf`"
${MODULE}: ${OBJS}
ld -shared ${HIDEOPTS} -o ${LIB} ${OBJS} ${LIBDIRS} ${LIBS}
#-rodata_shared -no_unresolved
install:
clean:
rm -f ${OBJS} ${LIB}
test:
cc -o testpw testpw.c dl-pwd.o ldap-pwd.o globals.o ldap-nss.o util.o snprintf.o -L/usr/local/ldapsdk/lib -lldap
|