d3eb2427dfddef5454988c18d762ca909a095276
[olsrd.git] / make / Makefile.fbsd
1 #
2 # FREEBSD SPECIFIC CONFIGURATION
3 #
4
5 PREFIX ?= /usr/local
6 SBINDIR = $(PREFIX)/sbin
7 ETCDIR = $(PREFIX)/etc
8 LIBDIR = $(PREFIX)/lib
9 DOCDIR = $(PREFIX)/share/doc
10 MANDIR = $(PREFIX)/man
11
12 SRCS +=         $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
13 HDRS +=         $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
14
15 LIBS =
16
17 CPPFLAGS +=     -DOLSRD_GLOBAL_CONF_FILE=\"$(CFGFILE)\"
18
19 ifdef NO_80211
20 CPPFLAGS +=     -DFBSD_NO_80211=1
21 endif
22
23 ifdef LIBNET
24
25 CPPFLAGS +=     -DSPOOF -I$(PREFIX)/include
26 LIBS +=         -L$(PREFIX)/lib -lnet
27
28 endif
29
30 ifdef OLSRD_PLUGIN
31 CFLAGS +=       -fPIC
32 LDFLAGS +=      -fPIC
33 endif
34
35 PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
36 INSTALL_LIB =   install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
37                 /sbin/ldconfig
38
39 OS_LIB_PTHREAD = -pthread
40 OS_CFLAG_PTHREAD = -pthread
41 OS_LIB_DYNLOAD =
42
43 # Local Variables:
44 # mode: makefile
45 # End: