From: Joseph C. Lehner Date: Fri, 29 Jan 2016 17:21:44 +0000 (+0200) Subject: Update makefile X-Git-Tag: v0.9~81 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=47c00c9002fd4ff3da324f4290e49cb2c06c2a59;p=oweals%2Fnmrpflash.git Update makefile --- 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