Add LDFLAGS to Makefile
This commit is contained in:
parent
3815dd0e9a
commit
9d2f9e3636
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -1,13 +1,14 @@
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
VERSION = $(shell git describe --always)
|
VERSION = $(shell git describe --always)
|
||||||
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
|
|
||||||
LIBS = -lpcap
|
LIBS = -lpcap
|
||||||
|
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
|
||||||
|
LDFLAGS += $(LIBS)
|
||||||
|
|
||||||
.PHONY: clean install release release/osx release/linux release/win32
|
.PHONY: clean install release release/osx release/linux release/win32
|
||||||
|
|
||||||
nmrpflash: nmrp.o tftp.o ethsock.o main.o
|
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
|
nmrp.o: nmrp.c nmrpd.h
|
||||||
$(CC) $(CFLAGS) -c -o nmrp.o nmrp.c
|
$(CC) $(CFLAGS) -c -o nmrp.o nmrp.c
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue