* avoid as much code and linker information as possible
[olsrd.git] / make / Makefile.nbsd
index f06a912..0a8d467 100644 (file)
@@ -2,15 +2,27 @@
 # NETBSD 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)
 
 DEFINES =      -D__NetBSD__
-LIBS =         -lm
+LIBS =         
 
 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
 INSTALL_LIB =  install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
-               /sbin/ldconfig
\ No newline at end of file
+               /sbin/ldconfig
+
+ifdef OLSRD_PLUGIN
+CFLAGS +=      -fPIC
+LDFLAGS +=     -fPIC
+endif
+
+OS_LIB_PTHREAD = 
+OS_LIB_DYNLOAD =
+
+# Local Variables:
+# mode: makefile
+# End: