File: Makefile.linux.irs

package info (click to toggle)
libnss-ldap 122-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 680 kB
  • ctags: 819
  • sloc: ansic: 8,324; perl: 89; makefile: 34
file content (109 lines) | stat: -rw-r--r-- 2,837 bytes parent folder | download
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Test makefile for OpenStep for Mach 4.2.

# 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.linux.irs,v 2.1 2000/08/30 23:31:11 lukeh Exp $
#

MODULE=nss_ldap
PLATFORM=nextstep
HDRS=	\
	ldap-alias.h \
	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 \
	ldap-spwd.h \
	util.h \
	globals.h \
	ltf.h \
	irs-nss.h \
	resolve.h \
	dnsconfig.h \
	snprintf.h \
	resolve.h

SRCS=	ldap-nss.c \
	ldap-pwd.c \
	ldap-grp.c \
	ldap-rpc.c \
	ldap-hosts.c \
	ldap-network.c \
	ldap-proto.c \
	ldap-spwd.c \
	ldap-alias.c \
	ldap-service.c \
	ldap-ethers.c \
	ldap-bp.c \
	irs-nss.c \
	util.c \
	ltf.c \
	snprintf.c \
	resolve.c \
	dnsconfig.c \
	globals.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 -DNETSCAPE_API_EXTENSIONS -DRFC2307BIS -DSSL
# uncomment BSDFLAGS if you are building this as part of the BIND IRS
BSDFLAGS=-DIRS_NSS 
BIND=../../../src/bind/src
INCDIRS=-I/usr/local/include -I. -I${BIND}/port/linux/include -I${BIND}/include -I${BIND}/lib/irs -I${BIND}/port/${PLATFORM}/include
LIBDIRS=-L/usr/local/ldapsdk/lib
LIBS=-lldapssl30
WARNINGS =  -Wwrite-strings \
	-Wpointer-arith -Wcast-qual -Wcast-align \
	-Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
	-Wnested-externs -Winline -Wshadow -pedantic
#GCCFLAGS=-g $(WARNINGS)
GCCFLAGS=-g -Wall

CC=cc
COMPILERFLAGS=${GCCFLAGS}

CFLAGS= -DLDAP_REFERRALS ${NSFLAGS} ${SUNFLAGS} ${BSDFLAGS} ${GNUFLAGS} ${COMPILERFLAGS} ${INCDIRS}

all: ${MODULE} install

${MODULE}: ${OBJS}
	gcc -shared -o ${LIB} -Wl,-soname,${LIB} ${OBJS} ${LIBDIRS} ${LIBS}

install:

clean:
	rm -f ${OBJS} ${LIB}

test: ${MODULE} testpw4.c
	cc -L../bind/src/lib -L. ${BSDFLAGS} ${COMPILERFLAGS} ${INCDIRS} \
		-Wl,-m -o testpw4 testpw4.c -lnss_ldap \
		../bind/src/lib/inet/inet_ntop.o \
		../bind/src/lib/inet/inet_addr.o \
		../bind/src/lib/inet/inet_ntoa.o 


#-lbind