#
# Parameters.

PLUGIN  = arealdap.so
OBJECTS = arealdap.o

LDAP_SDK_DIR = /ldap/install/directory

RM      = rm -f

# Compiler flags.

CC      = xlc_r
LD      = ld
CFLAGS  = -I../../../include -I$(LDAP_SDK_DIR)/include -D_REENTRANT -D_THREAD_SAFE
LDFLAGS = -G -bexpall -bnoentry -L$(LDAP_SDK_DIR)/lib -L/usr/lpp/xLC/lib -blibpath:/usr/lib/threads:/usr/lib:/lib
LDLIBS  = -lpthreads -lc_r

# Standard targets.

all:	 $(PLUGIN)

$(PLUGIN): $(OBJECTS)
	$(LD) -o $(PLUGIN) $(OBJECTS) $(LDFLAGS) $(LDLIBS)

clean:
	$(RM) $(PLUGIN) $(OBJECTS) core
