| 123456789101112131415161718192021222324252627282930 |
- SRC= ldap-auth.cpp \
- ldapReader.cpp
- OBJ= $(SRC:.cpp=.o)
- NAME= auth_ldap.so
- CXXFLAGS+=-O2 -I/usr/include/mysql/server -fPIC -DMYSQL_DYNAMIC_PLUGIN -std=c++11
- LDFLAGS= -lldap
- $(NAME): all
- all: $(OBJ) test
- $(CC) $(OBJ) -o $(NAME) -shared $(LDFLAGS)
- clean:
- $(RM) $(OBJ) test.o
- fclean: clean
- $(RM) $(NAME) test
- test: $(OBJ) test.o
- $(CXX) $(OBJ) test.o -O2 -o test $(LDFLAGS)
- re: fclean all
- .PHONY: all clean fclean re
|