APXS      = apxs
APXSFLAGS =
DSO   = mod_auth_mysql.so
SRCS  = mod_auth_mysql.c
HDRS  = mod_auth_mysql.h
OPTS  = -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient

all: $(DSO)

$(DSO): $(SRCS) $(HDRS)
	$(APXS) $(APXSFLAGS) -o $(DSO) $(OPTS) -c $(SRCS)

install: $(DSO)
	$(APXS) $(APXSFLAGS) $(NAME) -i -A $(DSO)

clean:
	-rm -f *.o $(DSO)

