summaryrefslogtreecommitdiffstats
path: root/lib/base/Makefile
blob: 6676436ade05cf63a253b01b9acf59a25cf45316 (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
71
72
73
74
75
76
77
78
79
80
81
82
#
# BEGIN COPYRIGHT BLOCK
# Copyright 2001 Sun Microsystems, Inc.
# Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# The base library contains the base set of functionality for ldapserver
# servers. Cross-platform I/O and other generic functions are
# provided here.


BUILD_ROOT=../..
MODULE=LibBase

include $(BUILD_ROOT)/nsdefs.mk

OBJDEST=$(OBJDIR)/lib/base

ifeq ($(ARCH), WINNT)
LIBS=$(OBJDIR)/lib/libbase.lib
ifeq ($(BSCINFO), yes)
BSCS=$(OBJDIR)/lib/libbase.bsc
endif
else
LIBS=$(OBJDIR)/lib/libbase.a
endif

include $(BUILD_ROOT)/nsconfig.mk

MCC_INCLUDE += $(ADMINUTIL_INCLUDE)

LOCAL_DEPS = $(NSPR_DEP) $(ADMINUTIL_DEP) $(SECURITY_DEP) $(DBM_DEP)

all: $(LOCAL_DEPS) $(OBJDEST) $(LIBS) $(BSCS)

$(OBJDEST):
	mkdir -p $(OBJDEST)

ifeq ($(ARCH), WINNT)
OSOBJS = nterrors.o eventlog.o
else
OSOBJS = 
endif

OBJS = $(addprefix $(OBJDEST)/,	\
				shexp.o \
				plist.o \
				file.o \
				util.o \
				net.o \
				fsmutex.o \
				systhr.o \
				crit.o \
				rwlock.o \
				dns.o \
				dnsdmain.o \
				lexer.o \
				pool.o \
				system.o \
				nscperror.o \
				ereport.o \
				$(OSOBJS) \
				) 


MODULE_CFLAGS=-I$(BUILD_ROOT)/include/base -I$(BUILD_ROOT)/ldap/servers/slapd

$(LIBS): $(OBJS)
	rm -f $@
	$(AR) $(OBJS)
	$(RANLIB) $@

ifeq ($(ARCH), WINNT)
ifeq ($(BSCINFO), yes)
$(BSCS): $(OBJS)
	$(BSCMAKE) $(OBJDEST)/*.sbr
endif
endif

include $(INCLUDE_DEPENDS)