Skip to content

Commit

Permalink
Add install target to rdt-discovery Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
marquiz committed Sep 24, 2018
1 parent d394cf7 commit 1754ae0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rdt-discovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ CC=gcc
LIBDIR=/usr/local/lib
INCDIR=../intel-cmt-cat/lib/

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin

LDFLAGS=-L$(LIBDIR)
LDLIBS=-lpqos
CFLAGS=-I$(INCDIR)

BINARIES = mon-discovery \
mon-cmt-discovery \
mon-mbm-discovery \
l3-alloc-discovery \
l2-alloc-discovery \
mem-bandwidth-alloc-discovery

default:
$(MAKE) all
all:
Expand All @@ -15,3 +25,7 @@ all:
$(CC) $(CFLAGS) -o l3-alloc-discovery l3-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
$(CC) $(CFLAGS) -o l2-alloc-discovery l2-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
$(CC) $(CFLAGS) -o mem-bandwidth-alloc-discovery mem-bandwidth-allocation-discovery.c $(LDFLAGS) $(LDLIBS)

install:
install -d $(BINDIR)
install -t $(BINDIR) $(BINARIES)

0 comments on commit 1754ae0

Please sign in to comment.