
Now the server that runs in the fm-trap-subagent is able to recieve messages when it runs in a StarlingX with IPv6 environment. This server is responsible to receive the alarm metada and generate the traps accordingly to the configuration in the master agent. Story: 2008132 Task: 41774 Signed-off-by: Pablo Bovina <pablo.bovina@windriver.com> Change-Id: I89b1d8e7c97d315637b12bcfea0269f2fcf8d452
42 lines
782 B
Makefile
42 lines
782 B
Makefile
CC=gcc
|
|
PREFIX=wrsAlarmMIB
|
|
|
|
NETSNMPCONFIG=net-snmp-config
|
|
SOURCE=./src
|
|
|
|
# uncomment this if you have GNU make
|
|
#NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
|
|
#NETSNMPLIBS := $(shell $(NETSNMPCONFIG) --agent-libs)
|
|
NETSNMPCFLAGS=`$(NETSNMPCONFIG) --base-cflags`
|
|
NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`
|
|
|
|
LIBS=$(NETSNMPLIBS) -lpthread -ljson-c
|
|
|
|
STRICT_FLAGS = -Wall -Wstrict-prototypes
|
|
CFLAGS=-I. $(NETSNMPCFLAGS) $(STRICT_FLAGS) -fPIC
|
|
|
|
SRCS = $(SOURCE)/$(PREFIX)Trap.c \
|
|
$(SOURCE)/$(PREFIX)Subagent.c \
|
|
$(SOURCE)/$(PREFIX)Server.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
TARGETS=$(PREFIX)
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .o .deps
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
user: $(USER_OBJS)
|
|
|
|
$(TARGETS): $(LIB_DEPS)
|
|
|
|
$(PREFIX): $(OBJS) Makefile
|
|
$(CC) -o $(PREFIX) $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGETS)
|
|
|