net-snmp 플밍중 Makefile build line 실행 안됨..ㅠㅠ (ubuntu 9.10)

sunyata01의 이미지

net-snmp 튜토리얼에 가면 snmp 프로그램이 있는데, 이거 make 할려고 하니

CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS=`net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs

이부분이 경로가 지정안되더군요 ㅠㅠ
[gcc -I. `net-snmp-config --cflags` -c -o snmpdemoapp.o snmpdemoapp.c]

그냥 터미널에
net-snmp-config --cflags 라고 치면
# net-snmp-config --cflags
-DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include

위와 같이 잘나오는데..
혹시 이부분 실행 시킬수 있는 패키지나 실행방법 좀 가르쳐 주세요 우분투 입니다. ㅠㅠ

http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application

#
# 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
 
OBJS1=snmpdemoapp.o
OBJS2=example-demon.o nstAgentSubagentObject.o
OBJS3=asyncapp.o
TARGETS=example-demon snmpdemoapp asyncapp
 
CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS=`net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs`
 
# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared
 
all: $(TARGETS)
 
snmpdemoapp: $(OBJS1)
	$(CC) -o snmpdemoapp $(OBJS1) $(BUILDLIBS)
 
asyncapp: $(OBJS3)
	$(CC) -o asyncapp $(OBJS3) $(BUILDLIBS)
 
example-demon: $(OBJS2)
	$(CC) -o example-demon $(OBJS2)  $(BUILDAGENTLIBS)
 
clean:
	rm $(OBJS2) $(OBJS2) $(TARGETS)
 
nstAgentPluginObject.so: nstAgentPluginObject.c Makefile
	$(CC) $(CFLAGS) $(DLFLAGS) -c -o nstAgentPluginObject.o nstAgentPluginObject.c
	$(CC) $(CFLAGS) $(DLFLAGS) -o nstAgentPluginObject.so nstAgentPluginObject.o