#
#  $Id: Makefile,v 1.1.1.1 1999/10/25 14:03:52 jack Exp $
#
# Templates/Makefile.lib
#       Template library Makefile
#

LIBNAME=libsnmp.a        
LIB=${ARCH}/${LIBNAME}

# C and C++ source names, if any, go here -- minus the .c or .cc
C_PIECES= \
    snmp_api \
    snmp_client \
    mib \
    parse \
    snmp \
    snmp_auth \
    system \
    asn1 \
    md5 \
    party \
    context \
    acl \
    view \
    party_parse \
    context_parse \
    acl_parse \
    vacm \
    int64 \
    read_config \
    snmp_debug

        
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)

H_FILES=\
	acl.h \
	asn1.h \
	context.h \
	int64.h \
	mib.h \
	snmp_api.h \
    parse.h \
	party.h \
	snmp.h \
	snmp_client.h \
	snmp_debug.h \
	snmp_impl.h \
	system.h \
	ucd-snmp-includes.h \
	view.h

SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)

include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/lib.cfg

#
# Add local stuff here using +=
#

DEFINES  += -Drtems
CPPFLAGS += 
CFLAGS   +=-I.. -I.

#
# Add your list of files to delete here.  The config files
#  already know how to delete some stuff, so you may want
#  to just run 'make clean' first to see what gets missed.
#  'make clobber' already includes 'make clean'
#

CLEAN_ADDITIONS += 
CLOBBER_ADDITIONS +=

all:	${ARCH} $(SRCS) $(LIB)

$(LIB): ${OBJS}
	$(make-library)

# Install the library, appending _g or _p as appropriate.
# for include files, just use $(INSTALL)
install:  all
	$(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
