Skip to content

Commit 11eacbf

Browse files
rdementiopcm
authored andcommitted
build daemon-binaries only on Linux
Change-Id: I15b2b65d5c138e565ca44840a4615d309c7bec7a
1 parent 2544ecd commit 11eacbf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#
2-
# Copyright (c) 2009-2015 Intel Corporation
2+
# Copyright (c) 2009-2018 Intel Corporation
33
# written by Roman Dementiev and Jim Harris
44
#
55

6-
EXE = pcm.x pcm-numa.x pcm-power.x pcm-sensor.x pcm-msr.x pcm-memory.x pcm-tsx.x pcm-pcie.x pcm-core.x pcm-iio.x pcm-lspci.x pcm-pcicfg.x daemon-binaries
6+
EXE = pcm.x pcm-numa.x pcm-power.x pcm-sensor.x pcm-msr.x pcm-memory.x pcm-tsx.x pcm-pcie.x pcm-core.x pcm-iio.x pcm-lspci.x pcm-pcicfg.x
7+
8+
UNAME:=$(shell uname)
9+
10+
ifeq ($(UNAME), Linux)
11+
EXE += daemon-binaries
12+
endif
713

814
all: $(EXE)
915

@@ -22,8 +28,6 @@ ifneq ($(wildcard /usr/include/linux/perf_event.h),)
2228
CXXFLAGS += -DPCM_USE_PERF
2329
endif
2430

25-
UNAME:=$(shell uname)
26-
2731
ifeq ($(UNAME), Linux)
2832
LIB= -pthread -lrt
2933
CXXFLAGS += -std=c++11

0 commit comments

Comments
 (0)