jsoninfo: also output SmartGatewayInstanceId
[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 RCDIR =         /etc/rc.d
12
13 RCFILE =        openbsd/olsrd.rcd
14
15 SRCS +=         $(wildcard src/bsd/*.c src/unix/*.c)
16 HDRS +=         $(wildcard src/bsd/*.h src/unix/*.h)
17
18 CPPFLAGS +=     -D__OpenBSD__
19 LIBS +=         
20
21 PLUGIN_SONAME ?= $(PLUGIN_NAME)
22 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
23 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
24                 /sbin/ldconfig
25 UNINSTALL_LIB = rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
26                 /sbin/ldconfig
27
28 ifdef OLSRD_PLUGIN
29 CFLAGS +=       -fPIC
30 LDFLAGS +=      -fPIC
31 endif
32
33 OS_LIB_PTHREAD =
34 OS_CFLAG_PTHREAD =
35 OS_LIB_DYNLOAD =
36
37 # Local Variables:
38 # mode: makefile
39 # End: