c8159ea6cb
Create fault management REST API service Create fault management client and CLI shell Add a python extension for fault management application APIs Update fault management python APIs to use the python extension Update fault manager to retrieve the SNMP configuration from the config file Story: 2002828 Task: 22747 Depends-On: https://review.openstack.org/#/c/592176/ Change-Id: I888d8d23edf75d05d51594ccca55570ae366c848 Signed-off-by: Tao Liu <tao.liu@windriver.com>
30 lines
844 B
Makefile
Executable File
30 lines
844 B
Makefile
Executable File
SRCS = fm_main.cpp
|
|
OBJS = fm_main.o
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
INCLUDES = -I.
|
|
CCFLAGS = -g -O2 -Wall -Werror
|
|
|
|
build: fmManager
|
|
|
|
.cpp.o:
|
|
$(CXX) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
|
|
|
|
fmManager: $(OBJS)
|
|
$(CXX) -o $@ $(OBJS) $(LDFLAGS) -lfmcommon -lrt -lpthread -luuid
|
|
|
|
clean:
|
|
@rm -f $(OBJS)
|
|
|
|
install_non_bb:
|
|
mkdir -p $(DEST_DIR)/usr/lib/systemd/system
|
|
install -m 755 -d $(DEST_DIR)/etc
|
|
install -m 755 -d $(DEST_DIR)/etc/init.d
|
|
install -m 755 -d $(DEST_DIR)/etc/logrotate.d
|
|
install -m 755 -d $(DEST_DIR)/usr/local
|
|
install -m 755 -d $(DEST_DIR)/usr/local/bin
|
|
install -m 755 fminit $(DEST_DIR)/etc/init.d/fminit
|
|
install -m 755 fmManager $(DEST_DIR)/usr/local/bin/fmManager
|
|
install -m 644 fm.logrotate $(DEST_DIR)/etc/logrotate.d/fm.logrotate
|
|
install -m 644 fminit.service $(DEST_DIR)/usr/lib/systemd/system/fminit.service
|