1 # Generated automatically from Makefile.top:Makefile.in:Makefile.rules by configure.
3 # Minimum environment and virtual path setup
16 bindir = ${exec_prefix}/bin
17 sbindir
= ${exec_prefix}/sbin
18 libdir = ${exec_prefix}/lib
19 datadir = ${prefix}/share
20 includedir = ${prefix}/include/net-snmp
21 ucdincludedir
= ${prefix}/include/ucd-snmp
22 mandir = ${prefix}/man
23 man1dir = $(mandir)/man1
24 man3dir = $(mandir)/man3
25 man5dir = $(mandir)/man5
26 man8dir = $(mandir)/man8
27 snmplibdir
= $(datadir)/snmp
28 mibdir
= $(snmplibdir
)/mibs
29 persistentdir
= /tmp
/snmp-persist
35 INSTALL
= $(LIBTOOL
) --mode
=install /usr
/bin
/install -c
36 INSTALL_DATA
= ${INSTALL} -m
644
45 CFLAGS
= -Os
-Wall
-DLINUX26
-DCONFIG_BCMWL5
-pipe
-DBCMWPA2
-funit-at-a-time
-Wno-pointer-sign
-mtune
=mips32
-mips32
-Dlinux
48 LIBTOOL
= $(SHELL
) $(top_builddir
)/libtool
51 # Misc Compiling Stuff
52 CC
= mipsel-uclibc-gcc
53 # version number is prefixed by a 0 for a better shared library version number
55 # ok, use libtool proper versioning:
59 # generally, LIBCURRENT should stay the same unless major changes occur.
60 # Increment REVISION every release.
61 # Increment AGE if new stuff is available.
62 LIB_LD_CMD
= $(LIBTOOL
) --mode
=link
$(CC
) $(CFLAGS
) -rpath
$(libdir) -version-info
$(LIBCURRENT
):$(LIBREVISION
):$(LIBAGE
) -o
65 LIB_LDCONFIG_CMD
= $(LIBTOOL
) --mode
=finish
$(libdir)
66 LINK
= $(LIBTOOL
) --mode
=link
$(CC
)
67 # RANLIB = mipsel-uclibc-ranlib
73 $(LIBTOOL
) --mode
=compile
$(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
75 # Makefile.in (at the root of net-snmp)
80 SUBDIRS
= snmplib agent apps local man mibs
83 CPP
= mipsel-uclibc-gcc
-E \
84 -Iinclude
-I
$(srcdir)/include -I
$(srcdir)/agent
/mibgroup
-I.
-I
$(srcdir) \
85 -DDONT_INC_STRUCTS
-DBINDIR
=$(bindir) \
88 INSTALLHEADERS
=version.h
90 INCLUDESUBDIRHEADERS
= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h darwin.h \
91 dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
92 irix.h linux.h mips.h netbsd.h openbsd.h solaris2.6.h solaris2.7.h \
93 solaris2.8.h solaris2.9.h solaris.h sunos.h svr5.h sysv.h ultrix4.h
94 INCLUDESUBDIR2
=machine
95 INCLUDESUBDIRHEADERS2
=generic.h
96 INSTALLBUILTHEADERS
=include/net-snmp
/net-snmp-config.h
97 INSTALLBINSCRIPTS
=net-snmp-config
98 INSTALLUCDHEADERS
=ucd-snmp-config.h version.h mib_module_config.h
101 # other install rules.
103 OTHERINSTALL
=copypersistentfiles
104 COPY_PERSISTENT_FILES
=no
105 PERSISTENT_DIRECTORY
=/tmp
/snmp-persist
106 UCDPERSISTENT_DIRECTORY
=/var
/ucd-snmp
111 # yes, order matters here. default_store must occur before anything else
112 PERLMODULES
=default_store SNMP ASN OID agent
118 all: sedscript EXAMPLE.conf standardall
121 @touch build-in-progress-flag
124 @
rm -f build-in-progress-flag
> /dev
/null
2>&1
129 sedscript
: sedscript.in
include/net-snmp
/net-snmp-config.h
$(srcdir)/agent
/mibgroup
/mibdefs.h
130 $(CPP
) $(srcdir)/sedscript.in | egrep
'^s[/#]' | sed
's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
131 echo
's#DATADIR#$(datadir)#g' >> sedscript
132 echo
's#LIBDIR#$(libdir)#g' >> sedscript
133 echo
's#BINDIR#$(bindir)#g' >> sedscript
134 echo
's#PERSISTENT_DIRECTORY#$(PERSISTENT_DIRECTORY)#g' >> sedscript
135 echo
's#SYSCONFDIR#$(sysconfdir)#g' >> sedscript
137 EXAMPLE.conf
: sedscript EXAMPLE.conf.def
138 $(SED
) -f sedscript
$(srcdir)/EXAMPLE.conf.def
> EXAMPLE.conf
142 docsdir
: docsdox docsmunge
144 docsdox
: doxygen.conf
145 srcdir=$(srcdir) doxygen
$(srcdir)/doxygen.conf
148 find docs
/html
-name \
*.html
-exec perl
-p
-i
-e
's/Generated on/<!--#include virtual=\"\/sfbutton.html\" --><br>Generated on\n/; s/<body/<body bgcolor=white/' {} \
;
152 @for i in docs
/man
/man3
/* ; do \
153 cp
$$i man
/netsnmp_
`basename $$i` ; \
157 # extra install rules
161 @if
test "$(COPY_PERSISTENT_FILES)" = "yes" -a
-d
$(UCDPERSISTENT_DIRECTORY
) -a
! -d
$(PERSISTENT_DIRECTORY
) ; then \
162 cp
-pr
$(UCDPERSISTENT_DIRECTORY
) $(PERSISTENT_DIRECTORY
) ; \
163 echo
"copying $(UCDPERSISTENT_DIRECTORY) to $(PERSISTENT_DIRECTORY)" ; \
169 ( cd testing
; $(MAKE
) test )
172 for i in
$(TESTDIRS
) ; do \
173 ( cd
$$i ; $(MAKE
) ) ; \
174 if
test $$?
!= 0 ; then \
179 distall
: ${srcdir}/configure
${srcdir}/include/net-snmp
/net-snmp-config.h
181 OTHERCLEANTARGETS
=EXAMPLE.conf sedscript
182 OTHERCLEANTODOS
=perlclean
185 # perl specific build rules
187 perlmodules
: perlmakefiles
188 @
(cd perl
; $(MAKE
)) ; \
189 if
test $$?
!= 0 ; then \
194 @if
test ! -f perl
/Makefile
; then \
197 perl Makefile.PL
-NET-SNMP-IN-SOURCE
=true
-NET-SNMP-CONFIG
="sh $$dir/net-snmp-config") $(PERLARGS
) ; \
201 @
(cd perl
; $(MAKE
) install) ; \
202 if
test $$?
!= 0 ; then \
207 @
(cd perl
; $(MAKE
) test) ; \
208 if
test $$?
!= 0 ; then \
213 @if
test -f perl
/Makefile
; then \
214 ( cd perl
; $(MAKE
) clean ) ; \
218 # make distclean completely removes all traces of building including
219 # any files generated by configure itself.
221 distclean: clean configclean tarclean
224 rm -f Makefile snmplib
/Makefile \
225 agent
/Makefile agent
/mibgroup
/Makefile \
226 agent
/helpers
/Makefile \
227 apps
/Makefile apps
/snmpnetstat
/Makefile \
228 man
/Makefile mibs
/Makefile ov
/Makefile \
229 local
/Makefile testing
/Makefile
231 configclean
: makefileclean
232 rm -f config.cache config.status config.log \
233 libtool
include/net-snmp
/net-snmp-config.h \
234 net-snmp-config configure-summary
236 rm -f
include/net-snmp
/agent
/mib_module_config.h \
237 snmplib
/snmpsm_init.h \
238 agent
/mibgroup
/mib_module_includes.h \
239 agent
/mibgroup
/mib_module_inits.h \
240 agent
/mibgroup
/mib_module_shutdown.h \
241 agent
/mibgroup
/mib_module_dot_conf.h
245 # Configure script related targets
248 touch configure
include/net-snmp
/net-snmp-config.h.in
250 touch stamp-h stamp-h.in
252 Makefile
: Makefile.in config.status Makefile.rules Makefile.top
253 @if
test "x$(NOAUTODEPS)" = "x"; then \
256 echo
"WARNING: not running config.status"; \
259 $(srcdir)/include/net-snmp
/net-snmp-config.h.in
: stamp-h.in
260 $(srcdir)/stamp-h.in
: configure.in acconfig.h
261 @if
test "x$(NOAUTODEPS)" = "x" -a
"x$(AUTOHEADER)" != "x:"; then \
262 cd
${srcdir} && LC_COLLATE
=C
$(AUTOHEADER
); \
263 echo timestamp
> ${srcdir}/stamp-h.in
; \
265 echo
"WARNING: not running autoheader"; \
268 include/net-snmp
/net-snmp-config.h
: stamp-h
269 stamp-h
: include/net-snmp
/net-snmp-config.h.in config.status
270 @if
test "x$(NOAUTODEPS)" = "x"; then \
272 echo timestamp
> stamp-h
; \
274 echo
"WARNING: not running config.status"; \
277 $(srcdir)/configure
: configure.in aclocal.m4
278 @if
test "x$(NOAUTODEPS)" = "x" -a
"x$(AUTOCONF)" != "x:"; then \
279 cd
${srcdir} && $(AUTOCONF
); \
280 echo
"Please run configure now."; \
283 echo
"WARNING: not running autoconf"; \
286 config.status
: configure
287 @if
test "x$(NOAUTODEPS)" = "x"; then \
288 .
/config.status
--recheck
; \
290 echo
"WARNING: not running config.status --recheck"; \
297 find
$(srcdir) -name
'*.[ch]' -print | etags
-
300 # Internal distribution packaging, etc.
303 @if
test "x$(VERSION)" = "x"; then \
304 echo
"you need to supply a VERSION string."; \
307 ${srcdir}/agent
/mibgroup
/versiontag
$(VERSION
) reverse
310 @if
test "x$(VERSION)" = "x"; then \
311 echo
"you need to supply a VERSION string."; \
314 ${srcdir}/agent
/mibgroup
/versiontag
$(VERSION
) tag
317 @if
test "x$(VERSION)" = "x"; then \
318 echo
"you need to supply a VERSION string."; \
321 ${srcdir}/agent
/mibgroup
/versiontag
$(VERSION
) tar
324 @if
test -x
${srcdir}/agent
/mibgroup
/versiontag
; then \
325 ${srcdir}/agent
/mibgroup
/versiontag Ext
clean ; \
329 grep
-n
// `find $(srcdir)/ -name \*.\[ch\]` | egrep
-v
"(ftp|http|/win32/)"
331 dist: version tag
tar
336 .PHONY
: docs docsdir mancp testdirs
test TAGS
337 # note: tags and docs are phony to force rebulding
340 # standard target definitions. Set appropriate variables to make use of them.
342 # note: the strange use of the "it" variable is for shell parsing when
343 # there is no targets to install for that rule.
346 # the standard items to build: libraries, bins, and sbins
347 STANDARDTARGETS
=$(INSTALLLIBS
) $(INSTALLBINPROGS
) $(INSTALLSBINPROGS
)
348 STANDARDCLEANTARGETS
=$(INSTALLLIBS
) $(INSTALLBINPROGS
) $(INSTALLSBINPROGS
) $(INSTALLUCDLIBS
)
350 standardall
: subdirs
$(STANDARDTARGETS
)
353 @if
test "$(SUBDIRS)" != ""; then \
356 echo
"making all in `pwd`/$$i"; \
357 ( cd
$$i ; $(MAKE
) ) ; \
358 if
test $$?
!= 0 ; then \
364 install: installlocalheaders \
366 installlocalbin installlocalsbin \
367 installsubdirs
$(OTHERINSTALL
)
369 installprogs
: installbin installsbin
374 # set INSTALLHEADERS to a list of things to install in each makefile.
375 # set INSTALLBUILTHEADERS to a list of things to install from builddir
376 # set INSTALLSUBDIRHEADERS and INSTALLSUBDIR to subdirectory headers
377 # set INSTALLSUBDIRHEADERS2 and INSTALLSUBDIR2 to more subdirectory headers
378 # set INSTALLBUILTSUBDIRHEADERS and INSTALLBUILTSUBDIR to a list from builddir
380 installheaders
: installlocalheaders installsubdirheaders
383 @if
test "$(INSTALLHEADERS)" != "" ; then \
384 echo creating directory
$(includedir) ; \
385 it
="$(INSTALLHEADERS)" ; \
386 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(includedir) ; \
388 $(INSTALL
) $(top_srcdir
)/include/net-snmp
/$$i $(includedir) ; \
389 echo
"installing $$i in $(includedir)" ; \
392 @if
test "$(INSTALLBUILTHEADERS)" != "" ; then \
393 echo creating directory
$(includedir) ; \
394 it
="$(INSTALLBUILTHEADERS)" ; \
395 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(includedir) ; \
397 $(INSTALL
) $$i $(includedir) ; \
398 echo
"installing $$i in $(includedir)" ; \
401 @if
test "$(INCLUDESUBDIRHEADERS)" != "" ; then \
402 echo creating directory
$(includedir)/$(INCLUDESUBDIR
) ; \
403 it
="$(INCLUDESUBDIRHEADERS)" ; \
404 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(includedir)/$(INCLUDESUBDIR
) ; \
406 $(INSTALL
) $(top_srcdir
)/include/net-snmp
/$(INCLUDESUBDIR
)/$$i $(includedir)/$(INCLUDESUBDIR
) ; \
407 echo
"installing $$i in $(includedir)/$(INCLUDESUBDIR)" ; \
410 @if
test "$(INCLUDESUBDIRHEADERS2)" != "" ; then \
411 echo creating directory
$(includedir)/$(INCLUDESUBDIR2
) ; \
412 it
="$(INCLUDESUBDIRHEADERS2)" ; \
413 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(includedir)/$(INCLUDESUBDIR2
) ; \
415 $(INSTALL
) $(top_srcdir
)/include/net-snmp
/$(INCLUDESUBDIR2
)/$$i $(includedir)/$(INCLUDESUBDIR2
) ; \
416 echo
"installing $$i in $(includedir)/$(INCLUDESUBDIR2)" ; \
419 @if
test "$(INSTALLBUILTSUBDIRHEADERS)" != "" ; then \
420 echo creating directory
$(includedir)/$(INSTALLBUILTSUBDIR
) ; \
421 it
="$(INSTALLBUILTSUBDIRHEADERS)" ; \
422 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(includedir)/$(INSTALLBUILTSUBDIR
) ; \
424 $(INSTALL
) $$i $(includedir)/$(INSTALLBUILTSUBDIR
) ; \
425 echo
"installing $$i in $(includedir)/$(INSTALLBUILTSUBDIR)" ; \
429 installsubdirheaders
:
430 @if
test "$(SUBDIRS)" != ""; then \
433 echo
"making installheaders in `pwd`/$$i"; \
434 ( cd
$$i ; $(MAKE
) installheaders
) ; \
435 if
test $$?
!= 0 ; then \
442 @if
test "$(INSTALLUCDHEADERS)" != "" ; then \
443 echo creating directory
$(ucdincludedir
) ; \
444 it
="$(INSTALLUCDHEADERS)" ; \
445 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(ucdincludedir
) ; \
447 $(INSTALL
) $(top_srcdir
)/include/ucd-snmp
/$$i $(ucdincludedir
) ; \
448 echo
"installing $$i in $(ucdincludedir)" ; \
455 # set INSTALLLIBS to a list of things to install in each makefile.
457 installlibs
: installlocallibs installsubdirlibs
459 installlocallibs
: $(INSTALLLIBS
)
460 @if
test "$(INSTALLLIBS)" != ""; then \
461 it
="$(INSTALLLIBS)" ; \
462 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(libdir) ; \
463 $(INSTALL
) $(INSTALLLIBS
) $(libdir) ; \
465 echo
"installing $$i in $(libdir)"; \
466 $(RANLIB
) $(libdir)/$$i ; \
468 $(LIB_LDCONFIG_CMD
) ; \
471 installucdlibs
: $(INSTALLUCDLIBS
)
472 @if
test "$(INSTALLUCDLIBS)" != ""; then \
473 it
="$(INSTALLUCDLIBS)" ; \
474 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(libdir) ; \
475 $(INSTALL
) $(INSTALLUCDLIBS
) $(libdir) ; \
477 echo
"installing $$i in $(libdir)"; \
478 $(RANLIB
) $(libdir)/$$i ; \
480 $(LIB_LDCONFIG_CMD
) ; \
484 @if
test "$(SUBDIRS)" != ""; then \
487 echo
"making installlibs in `pwd`/$$i"; \
488 ( cd
$$i ; $(MAKE
) installlibs
) ; \
489 if
test $$?
!= 0 ; then \
496 # normal bin binaries
498 # set INSTALLBINPROGS to a list of things to install in each makefile.
500 installbin
: installlocalbin installsubdirbin
502 installlocalbin
: $(INSTALLBINPROGS
)
503 @if
test "$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" != " "; then \
504 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(bindir) ; \
505 it
="$(INSTALLBINPROGS) $(INSTALLBINSCRIPTS)" ; \
506 $(INSTALL
) $(INSTALLBINPROGS
) $(INSTALLBINSCRIPTS
) $(bindir) ; \
508 echo
"installing $$i in $(bindir)"; \
513 @if
test "$(SUBDIRS)" != ""; then \
516 echo
"making installbin in `pwd`/$$i"; \
517 ( cd
$$i ; $(MAKE
) installbin
) ; \
518 if
test $$?
!= 0 ; then \
527 # set INSTALLSBINPROGS to a list of things to install in each makefile.
529 installsbin
: installlocalsbin installsubdirsbin
531 installlocalsbin
: $(INSTALLSBINPROGS
)
532 @if
test "$(INSTALLSBINPROGS)" != ""; then \
533 it
="$(INSTALLSBINPROGS)" ; \
534 $(SHELL
) $(top_srcdir
)/mkinstalldirs
$(sbindir
) ; \
535 $(INSTALL
) $(INSTALLSBINPROGS
) $(sbindir
) ; \
537 echo
"installing $$i in $(sbindir)"; \
542 @if
test "$(SUBDIRS)" != ""; then \
545 echo
"making installsbin in `pwd`/$$i"; \
546 ( cd
$$i ; $(MAKE
) installsbin
) ; \
547 if
test $$?
!= 0 ; then \
554 # general make install target for subdirs
557 @if
test "$(SUBDIRS)" != ""; then \
560 echo
"making install in `pwd`/$$i"; \
561 ( cd
$$i ; $(MAKE
) install) ; \
562 if
test $$?
!= 0 ; then \
571 clean: cleansubdirs
$(OTHERCLEANTODOS
)
572 rm -f core
${OBJS} ${LOBJS} $(STANDARDCLEANTARGETS
) $(OTHERCLEANTARGETS
)
576 @if
test "$(SUBDIRS)" != ""; then \
579 echo
"making clean in `pwd`/$$i"; \
580 ( cd
$$i ; $(MAKE
) clean) ; \
581 if
test $$?
!= 0 ; then \
591 # wacky dependency building.
594 @if
test -f Makefile.depend
; then \
595 makedepend
`echo $(CPPFLAGS) | sed 's/-f[-a-z]*//g'` -o .lo
$(srcdir)/*.c
$(srcdir)/*/*.c
; \
599 nosysdepend
: nosysdependdirs
600 @if
test -f Makefile.depend
; then \
601 makedepend
`echo $(CPPFLAGS) | sed 's/-f[-a-z]*//g'` -o .lo
$(srcdir)/*.c
$(srcdir)/*/*.c
; \
602 perl
-n
-i.bak
$(top_srcdir
)/makenosysdepend.pl Makefile
; \
605 distdepend
: nosysdepend distdependdirs
606 @if
test -f Makefile.depend
; then \
607 perl
$(top_srcdir
)/makefileindepend.pl
; \
611 @if
test "$(SUBDIRS)" != ""; then \
614 echo
"making depend in `pwd`/$$i"; \
615 ( cd
$$i ; $(MAKE
) depend
) ; \
616 if
test $$?
!= 0 ; then \
623 @if
test "$(SUBDIRS)" != ""; then \
626 echo
"making nosysdepend in `pwd`/$$i"; \
627 ( cd
$$i ; $(MAKE
) nosysdepend
) ; \
628 if
test $$?
!= 0 ; then \
635 @if
test "$(SUBDIRS)" != ""; then \
638 echo
"making distdepend in `pwd`/$$i"; \
639 ( cd
$$i ; $(MAKE
) distdepend
) ; \
640 if
test $$?
!= 0 ; then \
646 # These aren't real targets, let gnu's make know that.
647 .PHONY
: clean cleansubdirs lint \
648 install installprogs installheaders installlibs \
649 installbin installsbin installsubdirs \
650 all subdirs standardall \
651 depend nosysdepend distdepend dependdirs nosysdependdirs distdependdirs