Makefiles: define UNINSTALL_LIB macro
authorFerry Huberts <f.huberts@mindef.nl>
Mon, 25 Jul 2011 14:09:24 +0000 (16:09 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Thu, 11 Aug 2011 11:57:34 +0000 (13:57 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
make/Makefile.android
make/Makefile.fbsd
make/Makefile.kfbsd
make/Makefile.linux
make/Makefile.nbsd
make/Makefile.obsd
make/Makefile.osx
make/Makefile.win32

index 74c6fce..e323ec8 100644 (file)
@@ -73,6 +73,8 @@ endif
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
                /sbin/ldconfig -n $(LIBDIR)
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
+               /sbin/ldconfig -n $(LIBDIR)
 
 ifdef OLSRD_PLUGIN
 GENERATE_PIC = true
index d3eb242..67074c8 100644 (file)
@@ -35,6 +35,8 @@ endif
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
                /sbin/ldconfig
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
+               /sbin/ldconfig
 
 OS_LIB_PTHREAD = -pthread
 OS_CFLAG_PTHREAD = -pthread
index 68bdbf9..b2841ae 100644 (file)
@@ -36,6 +36,7 @@ endif
 
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME);
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME);
 
 OS_LIB_PTHREAD = -pthread
 OS_CFLAG_PTHREAD = -pthread
index c75d69a..3292258 100644 (file)
@@ -15,6 +15,8 @@ LIBS +=
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
                /sbin/ldconfig -n $(LIBDIR)
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
+               /sbin/ldconfig -n $(LIBDIR)
 
 ifdef OLSRD_PLUGIN
 GENERATE_PIC = true
index 474fc2a..4d655f3 100644 (file)
@@ -14,6 +14,8 @@ LIBS +=
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
                /sbin/ldconfig
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
+               /sbin/ldconfig
 
 ifdef OLSRD_PLUGIN
 CFLAGS +=      -fPIC
index d844e6b..ea2c1e0 100644 (file)
@@ -14,6 +14,8 @@ LIBS +=
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
                /sbin/ldconfig
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
+               /sbin/ldconfig
 
 ifdef OLSRD_PLUGIN
 CFLAGS +=      -fPIC
index 43547ea..a74dc16 100644 (file)
@@ -17,6 +17,7 @@ LIBS +=
 
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME)
+UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME)
 
 ifdef OLSRD_PLUGIN
 LDFLAGS = -bundle -flat_namespace -undefined suppress
index 946939d..ae0bfd1 100644 (file)
@@ -15,6 +15,7 @@ CFLAGS +=     -mno-cygwin
 
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).dll
 INSTALL_LIB =  cp $(PLUGIN_FULLNAME) ../..
+UNINSTALL_LIB =        del /F ../../$(PLUGIN_FULLNAME)
 
 ifdef OLSRD_PLUGIN
 LDFLAGS +=     -L$(TOPDIR)