blob: 2c173aadd1b9aa9b779ad7376030e599274479b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#
# Copyright (c) 2013-2014 Red Hat.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
TOPDIR = ../..
include $(TOPDIR)/src/include/builddefs
SUBDIRS = config
CXXMDTARGET = pmmgr$(EXECSUFFIX)
HFILES = pmmgr.h
CXXFILES = pmmgr.cxx
LLDLIBS = $(PCPLIB) $(LIB_FOR_PTHREADS) $(LIB_FOR_ATOMIC)
LLDFLAGS += $(RDYNAMIC_FLAG) $(PIELDFLAGS)
LCFLAGS += $(PIECFLAGS)
LDIRT = *.log pmmgr.service
default: build-me
ifeq ($(BUILD_PMMGR),yes)
build-me: $(SUBDIRS) $(CXXMDTARGET) pmmgr.service
$(SUBDIRS_MAKERULE)
pmmgr.service: pmmgr.service.in
$(SED) -e 's;@path@;'$(PCP_RC_DIR)';' $< > $@
install: $(SUBDIRS) $(CXXMDTARGET)
$(SUBDIRS_MAKERULE)
$(INSTALL) -m 755 -d `dirname $(PCP_PMMGROPTIONS_PATH)`
$(INSTALL) -m 644 pmmgr.options $(PCP_PMMGROPTIONS_PATH)
$(INSTALL) -m 755 rc_pmmgr $(PCP_RC_DIR)/pmmgr
ifeq ($(ENABLE_SYSTEMD),true)
$(INSTALL) -m 644 pmmgr.service $(PCP_SYSTEMDUNIT_DIR)/pmmgr.service
endif
$(INSTALL) -m 755 $(CXXMDTARGET) $(PCP_BINADM_DIR)/$(CXXMDTARGET)
$(INSTALL) -m 775 -o $(PCP_USER) -g $(PCP_GROUP) -d $(PCP_LOG_DIR)/pmmgr
else
build-me:
@echo not building pmmgr
install:
@echo not installing pmmgr
endif
$(OBJECTS): $(HFILES)
include $(BUILDRULES)
default_pcp : default
install_pcp : install
# Hey, does anyone have a spare vowel?
.PHONY: build-me
|