merged with tip
[olsrd.git] / make / Makefile.obsd
index 0af0a40..d844e6b 100644 (file)
@@ -2,15 +2,28 @@
 # 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 =         -lm
+CPPFLAGS +=    -D__OpenBSD__
+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_CFLAG_PTHREAD =
+OS_LIB_DYNLOAD =
+
+# Local Variables:
+# mode: makefile
+# End: