#
# This Makefile is for Solaris only right now.
#
# Note: examples 15.1, 15.2, 15.3 are missing because they are
#	LDAP URL examples, not code.
#
# You'll have to change the -I and -L paths to point to wherever
# you have installed the ldap include files and library.
#
HDIR	= /share/builds/components/ldapsdk/latest/SunOS5.4_DBG.OBJ/include
LDIR	= /share/builds/components/ldapsdk/latest/SunOS5.4_DBG.OBJ/lib
CFLAGS	= -g -DTEST -I$(HDIR)
LDFLAGS	= -g -L$(LDIR) -lldap10 -lnsl -lsocket

PROGS = 03.1 03.2 03.3 \
	06.1 06.2 06.3 06.4 \
	07.1 \
	08.1 08.2 08.3 \
	09.1 09.2 \
	10.1 \
	11.1 11.2 11.3 11.4 11.5 11.6 \
	12.1 12.2 \
	13.1 13.2 13.3 13.4 13.5 \
	14.1 14.2 14.3 14.4 14.5 \
	15.4 15.5 15.6 \
	16.1 example

all: $(PROGS)

07.1:	07.1.o
	$(CC) 07.1.o $(LDFLAGS) -lpthread -o $@

clean:
	rm -f *.o a.out $(PROGS)
