- Based on a patch by Gianni Costanzi <gianni.costanzi@gmail.com> (so credits
[olsrd.git] / make / Makefile.nbsd
1 #
2 # NETBSD SPECIFIC CONFIGURATION
3 #
4
5 DESTDIR ?=
6 LIBDIR =        $(DESTDIR)/usr/lib
7
8 SRCS +=         $(wildcard src/bsd/*.c src/unix/*.c)
9 HDRS +=         $(wildcard src/bsd/*.h src/unix/*.h)
10
11 CPPFLAGS +=     -D__NetBSD__
12 LIBS +=         
13
14 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
15 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
16                 /sbin/ldconfig
17
18 ifdef OLSRD_PLUGIN
19 CFLAGS +=       -fPIC
20 LDFLAGS +=      -fPIC
21 endif
22
23 OS_LIB_PTHREAD = 
24 OS_CFLAG_PTHREAD =
25 OS_LIB_DYNLOAD =
26
27 # Local Variables:
28 # mode: makefile
29 # End: