summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
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 $@ $^