From 9d2f9e363620e474a07dc604ce7d0d47027c6c15 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Tue, 9 Feb 2016 09:18:37 +0100 Subject: [PATCH] Add LDFLAGS to Makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc931b1..01cc9ad 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ CC ?= gcc PREFIX ?= /usr/local VERSION = $(shell git describe --always) -CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\" LIBS = -lpcap +CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\" +LDFLAGS += $(LIBS) .PHONY: clean install release release/osx release/linux release/win32 nmrpflash: nmrp.o tftp.o ethsock.o main.o - $(CC) $(CFLAGS) -o nmrpflash nmrp.o tftp.o ethsock.o main.o $(LIBS) + $(CC) $(CFLAGS) -o nmrpflash nmrp.o tftp.o ethsock.o main.o $(LDFLAGS) nmrp.o: nmrp.c nmrpd.h $(CC) $(CFLAGS) -c -o nmrp.o nmrp.c -- 2.25.1