Skip to content
Snippets Groups Projects
Commit 85c6320f authored by Leon Dietrich's avatar Leon Dietrich
Browse files

add: Support for FreeBSD pkg tools

parent 9806e286
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ DEPFLAGS = -MT $@ -MMD -MP -MF $(patsubst ${OBJDIR}/%.o,${DEPDIR}/%.d,$@) ...@@ -5,6 +5,7 @@ DEPFLAGS = -MT $@ -MMD -MP -MF $(patsubst ${OBJDIR}/%.o,${DEPDIR}/%.d,$@)
PODOMAIN ?= rmrf PODOMAIN ?= rmrf
POVERSION ?= 0.1 POVERSION ?= 0.1
POLANGS ?= de en POLANGS ?= de en
PKG_TOOL = pkg-config
OS = $(shell uname -s) OS = $(shell uname -s)
ifeq "${OS}" "Linux" ifeq "${OS}" "Linux"
...@@ -14,10 +15,11 @@ LFLAGS += -flto ...@@ -14,10 +15,11 @@ LFLAGS += -flto
else ifeq "${OS}" "FreeBSD" else ifeq "${OS}" "FreeBSD"
CFLAGS += -Wno-error=sign-conversion CFLAGS += -Wno-error=sign-conversion
CXXFLAGS += -Wno-error=sign-conversion CXXFLAGS += -Wno-error=sign-conversion
PKG_TOOL = pkgconf
endif endif
CFLAGS += `pkg-config --cflags libnl-3.0` CFLAGS += `${PKG_TOOL} --cflags libnl-3.0`
CXXFLAGS += `pkg-config --cflags libnl-3.0` CXXFLAGS += `${PKG_TOOL} --cflags libnl-3.0`
CC ?= gcc CC ?= gcc
CXX ?= g++ CXX ?= g++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment