metal/mtce/src/Makefile
Jim Gauld 6a5e10492c Decouple Guest-server/agent from stx-metal
This decouples the build and packaging of guest-server, guest-agent from
mtce, by splitting guest component into stx-nfv repo.

This leaves existing C++ code, scripts, and resource files untouched,
so there is no functional change. Code refactoring is beyond the scope
of this update.

Makefiles were modified to include devel headers directories
/usr/include/mtce-common and /usr/include/mtce-daemon.
This ensures there is no contamination with other system headers.

The cgts-mtce-common package is renamed and split into:
- repo stx-metal: mtce-common, mtce-common-dev
- repo stx-metal: mtce
- repo stx-nfv: mtce-guest
- repo stx-ha: updates package dependencies to mtce-pmon for
  service-mgmt, sm, and sm-api

mtce-common:
- contains common and daemon shared source utility code

mtce-common-dev:
- based on mtce-common, contains devel package required to build
  mtce-guest and mtce
- contains common library archives and headers

mtce:
- contains components: alarm, fsmon, fsync, heartbeat, hostw, hwmon,
  maintenance, mtclog, pmon, public, rmon

mtce-guest:
- contains guest component guest-server, guest-agent

Story: 2002829
Task: 22748

Change-Id: I9c7a9b846fd69fd566b31aa3f12a043c08f19f1f
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2018-09-18 17:15:08 -04:00

46 lines
1.4 KiB
Makefile
Executable File

#
# Copyright (c) 2013-2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
VER=1
VER_MJR=1
build:
(cd public ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
(cd rmon/rmonApi ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
(cd common ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
(cd alarm ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd heartbeat ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd maintenance ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd hwmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd mtclog ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd pmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd fsmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd rmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd rmon/rmon_resource_notify ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd hostw ; make build VER=$(VER) VER_MJR=$(VER_MJR))
(cd fsync ; make build VER=$(VER) VER_MJR=$(VER_MJR))
clean:
@( cd common ; make clean )
@( cd public ; make clean )
@( cd rmon/rmonApi ; make clean )
@( cd alarm ; make clean )
@( cd mtclog ; make clean )
@( cd hwmon ; make clean )
@( cd pmon ; make clean )
@( cd fsmon ; make clean )
@( cd heartbeat ; make clean )
@( cd maintenance ; make clean )
@( cd rmon ; make clean )
@( cd rmon/rmon_resource_notify ; make clean )
@( cd hostw ; make clean )
@( cd fsync ; make clean )
@( rm -rf release )
backup: clean
mkdir -p ~/mtce
cp -a * ~/mtce