
SQUID_OBJ =squid_ldap_auth.o

LIBS = -lldap -llber -lm -lresolv -lnsl

OPTIONS = -g -O2 -Wall

all: squid_ldap_auth

squid_ldap_auth: $(SQUID_OBJ)
	$(CC) $(OPTIONS) $(SQUID_OBJ) $(LIBS) -o squid_ldap_auth

install:
	cp -f squid_ldap_auth /usr/local/squid/libexec/
	cp -f squid_ldap_auth.8 /usr/local/squid/man/man8/

clean:
	rm -f squid_ldap_auth *.o

