
Upload fm-subagent and fm-trap-subagent to our snmp armada application integrated with armada plugin. Change-Id: I2c7b3a65f2e97c147068d0c3c41c52e814bb0e2e Story: 2008132 Task: 41227 Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
41 lines
751 B
Makefile
41 lines
751 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
|
|
|
|
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)
|
|
|