Add LDFLAGS to Makefile
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 9 Feb 2016 08:18:37 +0000 (09:18 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 9 Feb 2016 08:18:37 +0000 (09:18 +0100)
Makefile

index cc931b1fcb3f2d20d9da4c138b4809cb30088a58..01cc9adebf96e99e5de998076caa4420414cf793 100644 (file)
--- 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