# Makefile for snmptraplogd
#

TARGETS=	snmptraplogd
CONFFILES=	snmptraplogd.conf
DEFS=		-DSTDC_HEADERS -DCMU_COMPATIBLE -DDEBUG -g

# Compilation parameters:

CFLAGS= -O2 -I /usr/include/ucd-snmp $(DEFS)
LIBS=	-lsnmp -lieee -lnsl

# You should not need to change anything below this line.

all: $(TARGETS)

package: clean
	dpkg-buildpackage -us -uc

snmptraplogd:    snmptraplogd.o
	${CC} -g -o $@ snmptraplogd.o ${LIBS}

clean:
	rm -f core *.o *.bak ${TARGETS}

clobber: clean
	rm -f $(TARGETS)

install:
	cp ${TARGETS} ${DESTDIR}/usr/sbin
	cp $(CONFFILES) $(DESTDIR)/etc
