Remove LIBS

This commit is contained in:
Joseph C. Lehner 2020-12-13 20:49:50 +01:00
parent 069b9e60a1
commit 0f940474db

View file

@ -2,13 +2,12 @@ CC ?= gcc
PKG_CONFIG ?= pkg-config PKG_CONFIG ?= pkg-config
PREFIX ?= /usr/local PREFIX ?= /usr/local
VERSION := $(shell if [ -d .git ] && which git 2>&1 > /dev/null; then git describe --always | tail -c +2; else echo $$STANDALONE_VERSION; fi) VERSION := $(shell if [ -d .git ] && which git 2>&1 > /dev/null; then git describe --always | tail -c +2; else echo $$STANDALONE_VERSION; fi)
LIBS = -lpcap
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\" CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
LDFLAGS += $(LIBS) LDFLAGS += -lpcap
ifeq ($(shell uname -s),Linux) ifeq ($(shell uname -s),Linux)
CFLAGS += $(shell $(PKG_CONFIG) libnl-route-3.0 --cflags) CFLAGS += $(shell $(PKG_CONFIG) libnl-route-3.0 --cflags)
LIBS += $(shell $(PKG_CONFIG) libnl-route-3.0 --libs) LDFLAGS += $(shell $(PKG_CONFIG) libnl-route-3.0 --libs)
endif endif
ifeq ($(shell uname -s),Darwin) ifeq ($(shell uname -s),Darwin)