summaryrefslogtreecommitdiff
path: root/menuselect/Makefile
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2018-04-20 12:40:21 +0200
committerAlexander Traud <pabstraud@compuserve.com>2018-04-20 12:44:12 +0200
commitd54637373ab890b9e8b239290a241ca821058077 (patch)
treecff82e54e62bbde618874f50abe4b1a6bec47f76 /menuselect/Makefile
parenta9c74fdc0462349bd9ae6f25ae72f071c95d1e76 (diff)
menuselect: Add DragonFly BSD.
In DragonFly BSD, added libraries from ports are placed into /usr/local. Therefore, this directory must be added for the preprocessor, compiler, and linker. Beside that, the script ./configure was updated: * OSARCH list was outdated and not used, removed. * AC_CANONICAL_BUILD was not used. * _REENTRANT, this feature test macro is obsolete. ASTERISK-27820 Change-Id: I186d88d99cfa4de6569888e12ac97bd2f441c422
Diffstat (limited to 'menuselect/Makefile')
-rw-r--r--menuselect/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/menuselect/Makefile b/menuselect/Makefile
index c2c9373f4..d949efd55 100644
--- a/menuselect/Makefile
+++ b/menuselect/Makefile
@@ -24,6 +24,14 @@ endif
OBJS:=menuselect.o strcompat.o
CFLAGS+=-g -D_GNU_SOURCE -Wall
+ifneq ($(findstring dragonfly,$(OSARCH)),)
+ CFLAGS += -isystem /usr/local/include
+else ifneq ($(findstring netbsd,$(OSARCH)),)
+ CFLAGS += -isystem /usr/pkg/include
+else ifneq ($(findstring bsd,$(OSARCH)),)
+ CFLAGS += -isystem /usr/local/include
+endif
+
ifeq ($(MENUSELECT_DEBUG),yes)
CFLAGS += -DMENUSELECT_DEBUG
endif