SRC= php_auth_ldap.c OBJ= $(SRC:.c=.o) NAME= auth_ldap.so CFLAGS+=-g3 -I/usr/include/php/ -I/usr/include/php/main/ -I/usr/include/php/ext/mysqlnd/ -I/usr/include/php/Zend -I/usr/include/php/TSRM/ -fPIC LDFLAGS=-g3 $(NAME): all all: $(OBJ) $(CC) $(OBJ) -o $(NAME) -shared $(LDFLAGS) clean: $(RM) $(OBJ) fclean: clean $(RM) $(NAME) re: fclean all .PHONY: all clean fclean re