summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2020-08-25 18:28:29 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2020-08-25 19:02:44 +0200
commit7c4ebbc02f0f9b7c61ce13aac9ec50eb13877536 (patch)
tree7411347a9ecddc569ee6aae2559bf2f348574ccf
parent2630138a5746cde098622c80ee6e875c9743a05f (diff)
downloadldap-plugin-master.tar.gz
ldap-plugin-master.tar.bz2
ldap-plugin-master.zip
Update makefileHEADmaster
-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