mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
348f3a7f89
* Make rdt-discovery buildable outside hardcoded path Do not assume that nfd sources always reside under hardcoded directory "/go/src/github.com/kubernetes-incubator/node-feature-discovery/". This makes it possible e.g. to build nfd locally outside the Docker container. * Do not hardcode the path for RDT helper binaries Utilize the standard PATH env variable, instead.
14 lines
391 B
Makefile
14 lines
391 B
Makefile
CC=gcc
|
|
LIBDIR=/usr/local/lib
|
|
INCDIR=$(CMT_CAT_SRCDIR)/lib/
|
|
|
|
LDFLAGS=-L$(LIBDIR)
|
|
LDLIBS=-lpqos
|
|
CFLAGS=-I$(INCDIR)
|
|
|
|
default:
|
|
$(MAKE) all
|
|
all:
|
|
$(CC) $(CFLAGS) -o mon-discovery monitoring-discovery.c $(LDFLAGS) $(LDLIBS)
|
|
$(CC) $(CFLAGS) -o l3-alloc-discovery l3-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
|
|
$(CC) $(CFLAGS) -o l2-alloc-discovery l2-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
|