# Defines for ACL API example programs running under Linux

CC_CMD=/usr/bin/gcc -fpic -DNET_SSL -DLinux -DLINUX -D_REENTRANT
LD_SHAREDCMD=/usr/bin/gcc -shared



# 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/ldapsdk50
#   as they would be after a normal installation procedure.
#
LDAPSDKINC = -I../include/ldapsdk50
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)
