From 062c922e9b985dc8f81550c2357b59ab0456315d Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 8 Feb 2016 15:28:01 +0100 Subject: [PATCH] Update makefile --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4fd44ef..0a644e2 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,11 @@ CC ?= gcc PREFIX ?= /usr/local CFLAGS += -Wall -g LIBS = -lpcap -LDFLAGS = $(LIBS) .PHONY: clean install release release/osx release/linux nmrp-flash: nmrp.o tftp.o ethsock.o main.o - $(CC) $(CFLAGS) -o nmrp-flash nmrp.o tftp.o ethsock.o main.o $(LDFLAGS) + $(CC) $(CFLAGS) -o nmrp-flash nmrp.o tftp.o ethsock.o main.o $(LIBS) nmrp.o: nmrp.c nmrpd.h $(CC) $(CFLAGS) -c -o nmrp.o nmrp.c @@ -28,9 +27,9 @@ install: nmrp-flash install -m 755 nmrp-flash $(PREFIX)/bin release/osx: - make clean release CFLAGS="-arch i686 -arch x86_64" + make release CFLAGS="-arch i686 -arch x86_64" release/linux: release -release: nmrp-flash +release: clean nmrp-flash strip nmrp-flash -- 2.25.1