top_builddir=../..

# use GNU vpath, if available, to only set a path for source and headers
# VPATH will pick up objects too, which is bad if you are sharing a
# source dir...
@GNU_vpath@ %.h $(srcdir)
@GNU_vpath@ %.c $(srcdir)
# fallback to regular VPATH for non-gnu...
@NON_GNU_VPATH@ $(srcdir)

#
# What to install
#

INSTALLLIBS=libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION)
INCLUDESUBDIR=agent
INCLUDESUBDIRHEADERS=all_helpers.h \
	baby_steps.h \
	cache_handler.h \
	instance.h \
	scalar.h \
	scalar_group.h \
	watcher.h \
        multiplexer.h \
	bulk_to_next.h \
        null.h \
        debug_handler.h \
        old_api.h \
        read_only.h \
        row_merge.h \
        serialize.h \
        set_helper.h \
        table_data.h \
        table_dataset.h \
	table_array.h \
	table_container.h \
        table.h \
        table_iterator.h \
	mfd.h \
	mode_end_call.h


#
# Build info
#
# -I. -I.. -I../..
CPPFLAGS= $(TOP_INCLUDES) -I. $(AGENT_INCLUDES) $(MIBGROUP_INCLUDES) \
	$(SNMPLIB_INCLUDES) @CPPFLAGS@

SRCS =  all_helpers.c \
	baby_steps.c \
	cache_handler.c \
	multiplexer.c \
	read_only.c \
	bulk_to_next.c \
	instance.c \
	scalar.c \
	scalar_group.c \
	watcher.c \
	null.c \
	debug_handler.c \
	old_api.c \
	row_merge.c \
	serialize.c \
	stash_cache.c \
	table_array.c \
	table_container.c \
	table_iterator.c \
	table_data.c \
	table_dataset.c \
	table.c \
	mode_end_call.c

OBJS =  all_helpers.o \
	baby_steps.o \
	cache_handler.o \
	multiplexer.o \
	read_only.o \
	bulk_to_next.o \
	instance.o \
	scalar.o \
	scalar_group.o \
	watcher.o \
	null.o \
	debug_handler.o \
	old_api.o \
	row_merge.o \
	serialize.o \
	stash_cache.o \
	table_array.o \
	table_container.o \
	table_iterator.o \
	table_data.o \
	table_dataset.o \
	table.o \
	mode_end_call.o

LOBJS = all_helpers.lo \
	baby_steps.lo \
	cache_handler.lo \
	multiplexer.lo \
	read_only.lo \
	bulk_to_next.lo \
	instance.lo \
	scalar.lo \
	scalar_group.lo \
	watcher.lo \
	null.lo \
	debug_handler.lo \
	old_api.lo \
	row_merge.lo \
	serialize.lo \
	stash_cache.lo \
	table_array.lo \
	table_container.lo \
	table_iterator.lo \
	table_data.lo \
	table_dataset.lo \
	table.lo \
	mode_end_call.lo

all: standardall

libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION):    ${LOBJS}
	$(LIB_LD_CMD) libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION) ${LOBJS}  $(LIB_LD_LIBS)
	$(RANLIB) libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION)
