diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2020-08-25 18:28:29 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2020-08-25 19:02:44 +0200 |
commit | 7c4ebbc02f0f9b7c61ce13aac9ec50eb13877536 (patch) | |
tree | 7411347a9ecddc569ee6aae2559bf2f348574ccf | |
parent | 2630138a5746cde098622c80ee6e875c9743a05f (diff) | |
download | ldap-plugin-7c4ebbc02f0f9b7c61ce13aac9ec50eb13877536.tar.gz ldap-plugin-7c4ebbc02f0f9b7c61ce13aac9ec50eb13877536.tar.bz2 ldap-plugin-7c4ebbc02f0f9b7c61ce13aac9ec50eb13877536.zip |
-rw-r--r-- | Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 |