diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-24 02:55:55 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-30 02:16:41 +0100 |
commit | e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118 (patch) | |
tree | c7616764b389edf8cc7cc0291cf49065066e1e87 /Makefile | |
parent | 205fd2d988145dd4772d9086fa5fff9229827513 (diff) | |
download | ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.tar.gz ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.tar.bz2 ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.zip |
Basic plugin structure
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b1538b --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +OPENLDAP_SOURCE := ../source/openldap-2.4.40+dfsg + +TARGET = service_passwords +INCLUDE_FLAGS = -I$(OPENLDAP_SOURCE)/include +CFLAGS = $(INCLUDE_FLAGS) -D_REENTRANT -fPIC -Wall -Wextra +LDFLAGS = -G + +all: $(TARGET).so + +clean: + rm -f $(TARGET).o $(TARGET).so + +%.so: %.o + $(LD) $(LDFLAGS) -o $@ $^ + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $^ |