blob: cf9d9a91c36bf0585e3480648b5bf4ef823614dc (
plain)
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
|
#
# BEGIN COPYRIGHT BLOCK
# Copyright 2001 Sun Microsystems, Inc.
# Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
# All rights reserved.
# END COPYRIGHT BLOCK
#
#
# GNU Makefile for libutil
#
LDAP_SRC = ../..
BUILD_ROOT = ../../..
NOSTDCLEAN=true # don't let nsconfig.mk define target clean
NOSTDSTRIP=true # don't let nsconfig.mk define target strip
NSPR20=true # probably should be defined somewhere else (not sure where)
OBJDEST = $(OBJDIR)/lib/libutil
LIBDIR = $(LDAP_LIBDIR)
include $(BUILD_ROOT)/nsdefs.mk
include $(BUILD_ROOT)/nsconfig.mk
include $(LDAP_SRC)/nsldap.mk
#
# ntdebug.c currently not used
#
LIBUTIL_OBJS= getopt.o ntevent.o \
ntreg.o ntstubs.o
ifeq ($(ARCH), WINNT)
LIBUTIL_OBJS += crypt.o
endif
OBJS = $(addprefix $(OBJDEST)/, $(LIBUTIL_OBJS))
LIBUTIL= $(addprefix $(LIBDIR)/, libutil.$(LIB_SUFFIX))
INCLUDES += -I$(LDAP_SRC)/servers/slapd -I$(OBJDIR)/include
SLAPDMESSAGES_H=$(BUILD_ROOT)/ldap/include/ntslapdmessages.h
ifeq ($(LDAP_NO_LIBLCACHE),1)
CFLAGS+=-DNO_LIBLCACHE
endif
clientSDK: all
all: $(OBJDEST) $(SLAPDMESSAGES_H) $(LIBDIR) $(OBJS) $(LIBUTIL)
$(LIBDIR):
$(MKDIR) $(LIBDIR)
$(LIBUTIL): $(OBJS)
$(LINK_LIB)
$(SLAPDMESSAGES_H):
@echo target: $@
cd $(BUILD_ROOT)/ldap/servers/slapd/ntmsgdll; $(MAKE) $(MFLAGS)
veryclean: clean
clean:
$(RM) $(OBJS)
$(RM) $(LIBUTIL)
$(OBJDEST):
$(MKDIR) $(OBJDEST)
|