Update makefile
This commit is contained in:
parent
6135b1be77
commit
062c922e9b
1 changed files with 3 additions and 4 deletions
7
Makefile
7
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
|
||||
|
|
Loading…
Add table
Reference in a new issue