# # Makefile.in (at the root of net-snmp) # top_builddir = . SUBDIRS = snmplib agent apps local man mibs TESTDIRS = testing CPP = @CPP@ \ -Iinclude -I$(srcdir)/include -I$(srcdir)/agent/mibgroup -I. -I$(srcdir) \ -DDONT_INC_STRUCTS -DBINDIR=$(bindir) \ $(EXTRACPPFLAGS) INSTALLHEADERS=version.h INCLUDESUBDIR=system INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h darwin.h \ dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \ irix.h linux.h mips.h netbsd.h openbsd.h solaris2.6.h solaris2.7.h \ solaris2.8.h solaris2.9.h solaris.h sunos.h svr5.h sysv.h ultrix4.h INCLUDESUBDIR2=machine INCLUDESUBDIRHEADERS2=generic.h INSTALLBUILTHEADERS=include/net-snmp/net-snmp-config.h INSTALLBINSCRIPTS=net-snmp-config INSTALLUCDHEADERS=ucd-snmp-config.h version.h mib_module_config.h # # other install rules. # OTHERINSTALL=copypersistentfiles @PERLINSTALLTARGS@ COPY_PERSISTENT_FILES=@COPY_PERSISTENT_FILES@ PERSISTENT_DIRECTORY=@PERSISTENT_DIRECTORY@ UCDPERSISTENT_DIRECTORY=@UCDPERSISTENT_DIRECTORY@ # # perl specific # # yes, order matters here. default_store must occur before anything else PERLMODULES=default_store SNMP ASN OID agent # # targets # all: sedscript EXAMPLE.conf standardall net-snmp-config-x @PERLTARGS@ start-flag: @touch build-in-progress-flag end-flag: @rm -f build-in-progress-flag > /dev/null 2>&1 # # local build rules # sedscript: sedscript.in include/net-snmp/net-snmp-config.h $(srcdir)/agent/mibgroup/mibdefs.h $(CPP) $(srcdir)/sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript echo 's#DATADIR#$(datadir)#g' >> sedscript echo 's#LIBDIR#$(libdir)#g' >> sedscript echo 's#BINDIR#$(bindir)#g' >> sedscript echo 's#PERSISTENT_DIRECTORY#$(PERSISTENT_DIRECTORY)#g' >> sedscript echo 's#SYSCONFDIR#$(sysconfdir)#g' >> sedscript EXAMPLE.conf: sedscript EXAMPLE.conf.def $(SED) -f sedscript $(srcdir)/EXAMPLE.conf.def > EXAMPLE.conf docs: docsdir mancp docsdir: docsdox docsmunge docsdox: doxygen.conf srcdir=$(srcdir) doxygen $(srcdir)/doxygen.conf docsmunge: find docs/html -name \*.html -exec perl -p -i -e 's/Generated on/
Generated on\n/; s/ ${srcdir}/stamp-h.in; \ else \ echo "WARNING: not running autoheader"; \ fi include/net-snmp/net-snmp-config.h: stamp-h stamp-h: include/net-snmp/net-snmp-config.h.in config.status @if test "x$(NOAUTODEPS)" = "x"; then \ ./config.status; \ echo timestamp > stamp-h; \ else \ echo "WARNING: not running config.status"; \ fi $(srcdir)/configure: configure.in aclocal.m4 @if test "x$(NOAUTODEPS)" = "x" -a "x$(AUTOCONF)" != "x:"; then \ cd ${srcdir} && $(AUTOCONF); \ echo "Please run configure now."; \ sh -c exit 2; \ else \ echo "WARNING: not running autoconf"; \ fi config.status: configure @if test "x$(NOAUTODEPS)" = "x"; then \ ./config.status --recheck; \ else \ echo "WARNING: not running config.status --recheck"; \ fi # # Emacs TAGS file # TAGS: find $(srcdir) -name '*.[ch]' -print | etags - # # Internal distribution packaging, etc. # version: @if test "x$(VERSION)" = "x"; then \ echo "you need to supply a VERSION string."; \ exit 2; \ fi ${srcdir}/agent/mibgroup/versiontag $(VERSION) reverse tag: @if test "x$(VERSION)" = "x"; then \ echo "you need to supply a VERSION string."; \ exit 2; \ fi ${srcdir}/agent/mibgroup/versiontag $(VERSION) tag tar: @if test "x$(VERSION)" = "x"; then \ echo "you need to supply a VERSION string."; \ exit 2; \ fi ${srcdir}/agent/mibgroup/versiontag $(VERSION) tar tarclean: @if test -x ${srcdir}/agent/mibgroup/versiontag ; then \ ${srcdir}/agent/mibgroup/versiontag Ext clean ; \ fi commentcheck: grep -n // `find $(srcdir)/ -name \*.\[ch\]` | egrep -v "(ftp|http|/win32/)" dist: version tag tar FAQ.html: local/FAQ2HTML FAQ .PHONY: docs docsdir mancp testdirs test TAGS # note: tags and docs are phony to force rebulding