* the contents of INCLUDES and DEFINES should now be placed into CPPFLAGS
[olsrd.git] / make / Makefile.fbsd
index 3966e0f..3586e9c 100644 (file)
@@ -2,24 +2,28 @@
 # FREEBSD SPECIFIC CONFIGURATION
 #
 
-INSTALL_PREFIX ?= /usr/local
-SBINDIR = $(INSTALL_PREFIX)/sbin
-ETCDIR = $(INSTALL_PREFIX)/etc
-LIBDIR = $(INSTALL_PREFIX)/lib
-DOCDIR = $(INSTALL_PREFIX)/share/doc
-MANDIR = $(INSTALL_PREFIX)/man
+DESTDIR ?= /usr/local
+SBINDIR = $(DESTDIR)/sbin
+ETCDIR = $(DESTDIR)/etc
+LIBDIR = $(DESTDIR)/lib
+DOCDIR = $(DESTDIR)/share/doc
+MANDIR = $(DESTDIR)/man
 
 SRCS +=                $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
 HDRS +=                $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
 
 LIBS =
 
-CFLAGS +=      -DOLSRD_GLOBAL_CONF_FILE=\"$(CFGFILE)\"
+CPPFLAGS +=    -DOLSRD_GLOBAL_CONF_FILE=\"$(CFGFILE)\"
+
+ifdef NO_80211
+CPPFLAGS +=    -DFBSD_NO_80211=1
+endif
 
 ifdef LIBNET
 
-CFLAGS +=      -DSPOOF -I$(INSTALL_PREFIX)/include
-LIBS +=                -L$(INSTALL_PREFIX)/lib -lnet
+CPPFLAGS +=    -DSPOOF -I$(DESTDIR)/include
+LIBS +=                -L$(DESTDIR)/lib -lnet
 
 endif
 
@@ -34,3 +38,7 @@ INSTALL_LIB = install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
 
 OS_LIB_PTHREAD = -pthread
 OS_LIB_DYNLOAD =
+
+# Local Variables:
+# mode: makefile
+# End: