# Sun Solaris/sparc Makefile for ACL API example plugins

TARGET = example.so

CC_CMD = $(CC) -DSOLARIS -D_REENTRANT -DXP_UNIX
LD_SHAREDCMD = $(LD) -G


# Define include flag for server public header files.
#   This assumes that the header files are in
#   <server-root>/plugins/include,
#   as they would be after a normal installation procedure.
#
SERVERINC = -I../include

# Define include flag for LDAP SDK header files.
#   This assumes that the header files are in
#   <server-root>/plugins/include/ldapsdk31
#   as they would be after a normal installation procedure.
#
LDAPSDKINC = -I../include/ldapsdk31
LDAPOBJS = lasemail.o

# Define flags for all include directories
#
INCLUDES = $(SERVERINC) $(SERVERINC)/base $(SERVERINC)/frame $(LDAPSDKINC)

OBJS = lasref.o $(LDAPOBJS)

all: $(TARGET)

$(TARGET): $(OBJS)
	$(LD_SHAREDCMD) $(OBJS) -o $@

.c.o:
	$(CC_CMD) $(DEFINES) $(INCLUDES) -c $< 

clean:
	-rm $(OBJS) $(TARGET)
