#
# OPENBSD SPECIFIC CONFIGURATION
#

PREFIX ?=	/usr/local
SBINDIR =       $(PREFIX)/sbin
ETCDIR =        /etc/olsrd
LIBDIR =        $(PREFIX)/lib
DOCDIR =        $(PREFIX)/share/doc
MANDIR =        $(PREFIX)/man
RCDIR =         /etc/rc.d

RCFILE =        openbsd/olsrd.rcd

SRCS +=		$(wildcard src/bsd/*.c src/unix/*.c)
HDRS +=		$(wildcard src/bsd/*.h src/unix/*.h)

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
LDFLAGS +=	-fPIC
endif

OS_LIB_PTHREAD =
OS_CFLAG_PTHREAD =
OS_LIB_DYNLOAD =

# Local Variables:
# mode: makefile
# End:
