Debian Codegraph @

src/access-daemon/Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 # =======================================================================================
2 #
3 # Filename: Makefile
4 #
5 # Description: accessDaemon Makefile
6 #
7 # Version: <VERSION>
8 # Released: <DATE>
9 #
10 # Author: Jan Treibig (jt), [email protected]
11 # Thomas Gruber (tr), [email protected]
12 # Project: likwid
13 #
14 # Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
15 #
16 # This program is free software: you can redistribute it and/or modify it under
17 # the terms of the GNU General Public License as published by the Free Software
18 # Foundation, either version 3 of the License, or (at your option) any later
19 # version.
20 #
21 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
22 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
23 # PARTICULAR PURPOSE. See the GNU General Public License for more details.
24 #
25 # You should have received a copy of the GNU General Public License along with
26 # this program. If not, see <http://www.gnu.org/licenses/>.
27 #
28 # =======================================================================================
29
30 include ../../config.mk
31 include ../../make/include_$(COMPILER).mk
32
33 DAEMON_TARGET = ../../likwid-accessD
34 SETFREQ_TARGET = ../../likwid-setFreq
35 APPDAEMON_TARGET = ../../likwid-appDaemon.so
36 SYSFSDAEMON_TARGET = ../../likwid-sysD
37 GOTCHA_FOLDER = ../../ext/GOTCHA
•38 #Q ?= @
39
40 DEFINES += -D_GNU_SOURCE -DMAX_NUM_THREADS=$(MAX_NUM_THREADS) -DMAX_NUM_NODES=$(MAX_NUM_NODES) -DLIKWIDLOCK=$(LIKWIDLOCKPATH) -DLIKWIDSOCKETBASE=$(LIKWIDSOCKETBASE)
41 ifeq ($(DEBUG),true)
42 DEFINES += -DDEBUG_LIKWID
43 endif
44 ifeq ($(NVIDIA_INTERFACE), true)
45 DEFINES += -DLIKWID_NVMON
46 endif
47 ifeq ($(ROCM_INTERFACE), true)
48 DEFINES += -DLIKWID_ROCMON
49 endif
50 INCLUDES = -I../includes
51 CFLAGS += -std=c99 -fPIC -pie -fPIE -fstack-protector
•52 #ifeq ($(COMPILER),GCCX86)
53 #CFLAGS += -m32
54 #endif
55 CPPFLAGS := $(DCPPFLAGS) $(DEFINES) $(INCLUDES) -L../..
56
57 ifeq ($(COMPILER),GCCARMv8)
58 all:
59 else ifeq ($(COMPILER),CLANGARMv8)
60 all:
61 else
62 all: $(DAEMON_TARGET) $(SETFREQ_TARGET) $(APPDAEMON_TARGET)
63 endif
64
65 $(DAEMON_TARGET): accessDaemon.c ../intel_perfmon_uncore_discovery.c ../lock.c ../pci_types.c
•66 $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
67
68 $(SETFREQ_TARGET): setFreqDaemon.c ../lock.c
•69 $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
70
71 $(APPDAEMON_TARGET): $(GOTCHA_TARGET) appDaemon.c ../bstrlib.c ../bstrlib_helper.c
72 $(Q)$(CC) -pthread -shared -fvisibility=hidden -fPIC $(CPPFLAGS) -Wl,-soname,$(notdir $(APPDAEMON_TARGET)).$(VERSION).$(RELEASE),--no-undefined -fstack-protector -I. -I$(GOTCHA_FOLDER)/include -L$(GOTCHA_FOLDER) appDaemon.c ../bstrlib.c ../bstrlib_helper.c -o $@ -llikwid -llikwid-gotcha -ldl
73
74 $(SYSFSDAEMON_TARGET): sysfsDaemon.c
75 $(Q)$(CC) -g -fsanitize=address -fsanitize=leak -fomit-frame-pointer $(CFLAGS) $(CPPFLAGS) -o $@ sysfsDaemon.c