From: Joseph C. Lehner Date: Tue, 9 Feb 2016 08:18:37 +0000 (+0100) Subject: Add LDFLAGS to Makefile X-Git-Tag: v0.9.1~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d2f9e363620e474a07dc604ce7d0d47027c6c15;p=oweals%2Fnmrpflash.git Add LDFLAGS to Makefile --- 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