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