2016-07-12 00:30:49 +00:00
|
|
|
CC=gcc
|
|
|
|
LIBDIR=/usr/local/lib
|
2018-03-28 12:37:39 +00:00
|
|
|
INCDIR=../intel-cmt-cat/lib/
|
2016-07-12 00:30:49 +00:00
|
|
|
|
2018-05-28 14:10:28 +00:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
|
2016-07-12 00:30:49 +00:00
|
|
|
LDFLAGS=-L$(LIBDIR)
|
|
|
|
LDLIBS=-lpqos
|
|
|
|
CFLAGS=-I$(INCDIR)
|
|
|
|
|
2018-05-28 14:10:28 +00:00
|
|
|
BINARIES = mon-discovery \
|
|
|
|
mon-cmt-discovery \
|
|
|
|
mon-mbm-discovery \
|
|
|
|
l3-alloc-discovery \
|
|
|
|
l2-alloc-discovery \
|
|
|
|
mem-bandwidth-alloc-discovery
|
|
|
|
|
2016-07-12 23:44:03 +00:00
|
|
|
default:
|
2016-07-12 00:30:49 +00:00
|
|
|
$(MAKE) all
|
|
|
|
all:
|
|
|
|
$(CC) $(CFLAGS) -o mon-discovery monitoring-discovery.c $(LDFLAGS) $(LDLIBS)
|
2018-05-24 23:49:00 +00:00
|
|
|
$(CC) $(CFLAGS) -o mon-cmt-discovery monitoring-cmt-discovery.c $(LDFLAGS) $(LDLIBS)
|
|
|
|
$(CC) $(CFLAGS) -o mon-mbm-discovery monitoring-mbm-discovery.c $(LDFLAGS) $(LDLIBS)
|
2016-07-12 00:30:49 +00:00
|
|
|
$(CC) $(CFLAGS) -o l3-alloc-discovery l3-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
|
2016-07-12 23:44:03 +00:00
|
|
|
$(CC) $(CFLAGS) -o l2-alloc-discovery l2-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
|
2018-05-24 23:49:00 +00:00
|
|
|
$(CC) $(CFLAGS) -o mem-bandwidth-alloc-discovery mem-bandwidth-allocation-discovery.c $(LDFLAGS) $(LDLIBS)
|
2018-05-28 14:10:28 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(BINDIR)
|
|
|
|
install -t $(BINDIR) $(BINARIES)
|