Merge branch 'release-0.6.4'
[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_SONAME ?= $(PLUGIN_NAME)
15 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
16 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
17                 /sbin/ldconfig
18 UNINSTALL_LIB = rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
19                 /sbin/ldconfig
20
21 ifdef OLSRD_PLUGIN
22 CFLAGS +=       -fPIC
23 LDFLAGS +=      -fPIC
24 endif
25
26 OS_LIB_PTHREAD = 
27 OS_CFLAG_PTHREAD =
28 OS_LIB_DYNLOAD =
29
30 # Local Variables:
31 # mode: makefile
32 # End: