Adjusted OpenBSD installation paths
[olsrd.git] / make / Makefile.obsd
1 #
2 # OPENBSD SPECIFIC CONFIGURATION
3 #
4
5 PREFIX ?=       /usr/local
6 SBINDIR =       $(PREFIX)/sbin
7 ETCDIR =        /etc/olsrd
8 LIBDIR =        $(PREFIX)/lib
9 DOCDIR =        $(PREFIX)/share/doc
10 MANDIR =        $(PREFIX)/man
11
12 SRCS +=         $(wildcard src/bsd/*.c src/unix/*.c)
13 HDRS +=         $(wildcard src/bsd/*.h src/unix/*.h)
14
15 CPPFLAGS +=     -D__OpenBSD__
16 LIBS +=         
17
18 PLUGIN_SONAME ?= $(PLUGIN_NAME)
19 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
20 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
21                 /sbin/ldconfig
22 UNINSTALL_LIB = rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
23                 /sbin/ldconfig
24
25 ifdef OLSRD_PLUGIN
26 CFLAGS +=       -fPIC
27 LDFLAGS +=      -fPIC
28 endif
29
30 OS_LIB_PTHREAD =
31 OS_CFLAG_PTHREAD =
32 OS_LIB_DYNLOAD =
33
34 # Local Variables:
35 # mode: makefile
36 # End: