From 47c00c9002fd4ff3da324f4290e49cb2c06c2a59 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Fri, 29 Jan 2016 19:21:44 +0200 Subject: [PATCH] Update makefile --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4842452..ef5d393 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ CC ?= gcc PREFIX ?= /usr/local -CFLAGS = -Wall +CFLAGS = -Wall -g +LIBS = -lpcap .PHONY: clean install -nmrp-flash: nmrp.o tftp.o main.o - $(CC) $(CFLAGS) -o nmrp-flash nmrp.o tftp.o main.o +nmrp-flash: nmrp.o tftp.o ethsock.o main.o + $(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 @@ -13,6 +14,9 @@ nmrp.o: nmrp.c nmrpd.h tftp.o: tftp.c nmrpd.h $(CC) $(CFLAGS) -c -o tftp.o tftp.c +ethsock.o: ethsock.c ethsock.h + $(CC) $(CFLAGS) -c -o ethsock.o ethsock.c + main.o: main.c nmrpd.h $(CC) $(CFLAGS) -c -o main.o main.c -- 2.25.1