bea26b75dd
Spec files no longer requires specific wrs-snmp-mib SDK actions. With the StarlingX move to supporting pure upstream OpenStack, the majority of the SDK Modules are related to functionality no longer supported. The remaining SDK Modules will be moved to StarlingX documentation. Story: 2005275 Task: 30192 Change-Id: I333f32e94489098530cc04382fca46edce5122a0 Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
MAJOR ?= 1
|
|
MINOR ?= 0
|
|
PATCH ?= 0
|
|
MIBVER ?= 2.0
|
|
|
|
DEST_DIR ?= /
|
|
DATA_DIR ?= /usr/share
|
|
LIB_DIR ?= /usr/lib64
|
|
|
|
SRCS = cgtsActiveAlarms.c cgtsAgentPlugin.c cgtsEventLogs.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
LDLIBS = -lfmcommon -lnetsnmp -lnetsnmpagent -luuid
|
|
INCLUDES += -I./
|
|
CCFLAGS = -fPIC -g -O2 -Wall -Werror -Wformat -Wformat-security
|
|
LIBCGTSAGENT_SO := libcgtsAgentPlugin.so
|
|
|
|
.c.o:
|
|
$(CXX) $(CCFLAGS) $(INCLUDES) -c $< -o $@
|
|
|
|
lib: $(OBJS)
|
|
$(CXX) $(OBJS) $(LDLIBS) -o $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) -shared
|
|
ln -sf $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(LIBCGTSAGENT_SO).$(MAJOR)
|
|
ln -sf $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(LIBCGTSAGENT_SO)
|
|
|
|
clean:
|
|
@rm -f $(OBJ) *.o *.so.* *.tgz
|
|
|
|
install:
|
|
install -m 755 -d $(DEST_DIR)$(LIB_DIR)
|
|
install -m 755 $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DEST_DIR)$(LIB_DIR)
|
|
install -m 755 -d $(DEST_DIR)$(DATA_DIR)/snmp/mibs
|
|
install -m 644 mibs/wrsAlarmMib.mib.txt $(DEST_DIR)$(DATA_DIR)/snmp/mibs/
|
|
install -m 644 mibs/wrsEnterpriseReg.mib.txt $(DEST_DIR)$(DATA_DIR)/snmp/mibs/
|
|
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DEST_DIR)$(LIB_DIR)/$(LIBCGTSAGENT_SO).$(MAJOR)
|
|
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DEST_DIR)$(LIB_DIR)/$(LIBCGTSAGENT_SO)
|