# $PostgreSQL: pgsql/contrib/pgsnmp/Makefile,v 1.05 2005/11/10 11:03:07 saito Exp $

PROGRAM = pgsnmpd
OBJS	= pgsnmpd.o

SNMPFLAGS=-I. $(shell net-snmp-config --cflags)
AGENTLIBS=$(shell net-snmp-config --agent-libs)

PG_CPPFLAGS = -I$(libpq_srcdir) $(SNMPFLAGS)
PG_LIBS = $(libpq_pgport) $(AGENTLIBS)

DOCS = README.pgsnmpd

ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pgsnmpd
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
