#!/bin/bash
export LINUX_BUILD=1
export LINUX_VERSION=18

# - File:   makenetsnmplibs.bat
# - Author: T Clack

if [ "$1" == "clean" ] ; then
   # ====================================================================
   #	Clean The libnetsnmpagnet.a Lib
   # ====================================================================
   cd agent
   make -f makefile_stblinux clean
   cd ..
   
   # ====================================================================
   #	Clean The libnetsnmphelpers.a Lib
   # ====================================================================
   cd agent/helpers
   make -f makefile_stblinux clean
   cd ../..
   
   # ====================================================================
   #	Clean The libnetsnmpmibs.a Lib
   # ====================================================================
   cd agent/mibgroup
   make -f makefile_stblinux clean
   cd ../.. 
    
   # ====================================================================
   #	Clean The libnetsnmp.a Lib
   # ====================================================================
   cd snmplib
   make -f makefile_stblinux clean
   cd .. 
else
   # ====================================================================
   #	Make The libnetsnmpagent.a Lib
   # ====================================================================
   cd agent
   make -f makefile_stblinux
   cd ..
   
   # ====================================================================
   #	Make The libnetsnmphelpers.a Lib
   # ====================================================================
   cd agent/helpers
   make -f makefile_stblinux
   cd ../..
   
   # ====================================================================
   #	Make The libnetsnmpmibs.a Lib
   # ====================================================================
   cd agent/mibgroup
   make -f makefile_stblinux
   cd ../.. 
    
   # ====================================================================
   #	Make The libnetsnmp.a Lib
   # ====================================================================
   cd snmplib
   make -f makefile_stblinux
   cd .. 
fi

