#
# Warning: you may need more libraries than are included here on the
# build line.  The agent frequently needs various libraries in order
# to compile pieces of it, but is OS dependent and we can't list all
# the combinations here.  Instead, look at the libraries that were
# used when linking the snmpd master agent and copy those to this
# file.
#

CC=gcc

CFLAGS=-I/usr/local/include -g

OBJS1=luissnmpapp.o
TARGETS=luissnmpapp

# if ucd-snmp was compiled with openssl support
CRYPTO=-L/usr/local/ssl/lib -lcrypto

# Add needed search paths and extra libraries needed for compilation.
SNMPLIBPATH=-L/usr/local/lib

# optionally required libraries (examples only, may differ)
# for Solaris
#SYSLIBS=-lsocket -lnsl -lkstat
# for BSD
#SYSLIBS=-lkvm

# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared

all: $(TARGETS)

luissnmpapp: $(OBJS1)
	$(CC) -o luissnmpapp $(OBJS1) $(SNMPLIBPATH) -lsnmp $(SYSLIBS)

clean:
	rm *.o $(TARGETS)

