linux: add support for common (autoconf) make variables (v3)
[olsrd.git] / make / Makefile.obsd
index 723cf0c..1cac7df 100644 (file)
@@ -2,18 +2,21 @@
 # OPENBSD SPECIFIC CONFIGURATION
 #
 
-INSTALL_PREFIX ?=
-LIBDIR =       $(INSTALL_PREFIX)/usr/lib
+DESTDIR ?=
+LIBDIR =       $(DESTDIR)/usr/lib
 
-SRCS +=                $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
-HDRS +=                $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
+SRCS +=                $(wildcard src/bsd/*.c src/unix/*.c)
+HDRS +=                $(wildcard src/bsd/*.h src/unix/*.h)
 
-DEFINES =      -D__OpenBSD__
-LIBS =         
+CPPFLAGS +=    -D__OpenBSD__
+LIBS +=                
 
+PLUGIN_SONAME ?= $(PLUGIN_NAME)
 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
@@ -21,4 +24,9 @@ LDFLAGS +=    -fPIC
 endif
 
 OS_LIB_PTHREAD =
+OS_CFLAG_PTHREAD =
 OS_LIB_DYNLOAD =
+
+# Local Variables:
+# mode: makefile
+# End: