summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 81cc5a3..4c7597b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
-OPENLDAP_SOURCE := ../source/openldap-2.4.40+dfsg
-
TARGET := service_passwords
-CFLAGS := -I$(OPENLDAP_SOURCE)/include -D_REENTRANT -fPIC -Wall -Wextra $(CFLAGS)
+CFLAGS := -D_REENTRANT -fPIC -Wall -Wextra $(CFLAGS)
all: $(TARGET).so
@@ -9,8 +7,8 @@ clean:
$(RM) $(TARGET).o $(TARGET).so
$(RM) -r html/ latex/
-%.so: %.o
- gcc $(LDFLAGS) -shared -Wl,-soname,$(TARGET) -llber -o $@ $^
+$(TARGET).so: $(TARGET).o
+ gcc $(LDFLAGS) -shared -Wl,-soname,$(TARGET) -llber -o $@ $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $^
@@ -18,6 +16,5 @@ clean:
doc:
doxygen Doxyfile
-install: $(TARGET).so
- install -d $(DESTDIR)/usr/lib/ldap/
- install -m=0644 $(TARGET).so $(DESTDIR)/usr/lib/ldap/
+install: all
+ install -D $(TARGET).so $(DESTDIR)/usr/lib/ldap/$(TARGET).so