~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to agent/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile for snmpd
 
3
#
 
4
 
 
5
top_builddir    = ..
 
6
 
 
7
#
 
8
# what to install
 
9
#
 
10
SUBDIRS=helpers mibgroup
 
11
 
 
12
INSTALLSBINPROGS= snmpd$(EXEEXT)
 
13
INSTALLLIBS     = libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) \
 
14
                libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION)
 
15
 
 
16
INCLUDESUBDIR=agent
 
17
INCLUDESUBDIRHEADERS=agent_read_config.h \
 
18
        agent_registry.h \
 
19
        agent_index.h \
 
20
        agent_trap.h \
 
21
        auto_nlist.h \
 
22
        ds_agent.h \
 
23
        snmp_agent.h \
 
24
        snmp_vars.h \
 
25
        var_struct.h \
 
26
        agent_handler.h \
 
27
        net-snmp-agent-includes.h \
 
28
        agent_callbacks.h
 
29
 
 
30
INSTALLBUILTSUBDIRHEADERS=../include/net-snmp/agent/mib_module_config.h \
 
31
                        mibgroup/mib_module_includes.h
 
32
INSTALLBUILTSUBDIR=agent
 
33
 
 
34
OTHERINSTALL=@EMBEDPERLINSTALL@
 
35
OTHERUNINSTALL=@EMBEDPERLUNINSTALL@
 
36
 
 
37
# XXX: need to install these  They're really UCD specific, however.
 
38
BROKEINSTALL= \
 
39
        mib_modules.h \
 
40
        mibgroup/struct.h \
 
41
        mibgroup/util_funcs.h \
 
42
        mibgroup/mibincl.h \
 
43
        mibgroup/ucd-snmp/dlmod.h \
 
44
        mibgroup/utilities/execute.h \
 
45
        mibgroup/header_complex.h
 
46
 
 
47
INSTALLUCDHEADERS= \
 
48
        agent_index.h   \
 
49
        agent_read_config.h \
 
50
        agent_registry.h \
 
51
        agent_trap.h    \
 
52
        auto_nlist.h    \
 
53
        ds_agent.h      \
 
54
        header_complex.h \
 
55
        mibincl.h       \
 
56
        snmp_agent.h    \
 
57
        ucd-snmp-includes.h     \
 
58
        ucd-snmp-agent-includes.h \
 
59
        util_funcs.h    \
 
60
        var_struct.h
 
61
 
 
62
#
 
63
# how to build it info
 
64
#
 
65
USELIBS         = ../snmplib/libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
 
66
HELPERLIB       = helpers/libnetsnmphelpers.$(LIB_EXTENSION)$(LIB_VERSION)
 
67
LOCAL_LIBS      = 
 
68
LIBS            = ../snmplib/libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION) @AGENTLIBS@
 
69
OUR_AGENT_LIBS  = $(INSTALLLIBS) $(HELPERLIB) @WRAPLIBS@ $(LIBS) @DLLIBS@
 
70
CPPFLAGS        = -I../include -I$(top_srcdir)/include \
 
71
                  -I.. -I$(srcdir)/.. -I$(srcdir)/../snmplib \
 
72
                  -I$(srcdir) -I. -I$(srcdir)/mibgroup -Imibgroup @CPPFLAGS@
 
73
 
 
74
#
 
75
# Objects
 
76
#
 
77
 
 
78
# libnetsnmpmib objects.
 
79
LMIBOBJS        = @mibgroup_list_lo@ mib_modules.lo auto_nlist.lo
 
80
MIBOBJS         = @mibgroup_list_o@ mib_modules.o auto_nlist.o
 
81
 
 
82
# libnetsnmpagent objects
 
83
LIBAGENTOBJS=snmp_agent.o snmp_vars.o agent_read_config.o \
 
84
        agent_registry.o agent_index.o agent_trap.o kernel.o \
 
85
         agent_handler.o @OTHERAGENTLIBOBJS@
 
86
LLIBAGENTOBJS=snmp_agent.lo snmp_vars.lo agent_read_config.lo \
 
87
        agent_registry.lo agent_index.lo agent_trap.lo kernel.lo \
 
88
        agent_handler.lo @OTHERAGENTLIBLOBJS@
 
89
 
 
90
# The agent objects.
 
91
AGENTOBJS=snmpd.o
 
92
LAGENTOBJS=snmpd.lo
 
93
 
 
94
#
 
95
# Define OBJS and LOBJS for clean target (just this directory)
 
96
#
 
97
OBJS            = $(LIBAGENTOBJS)  $(AGENTOBJS)  mib_modules.o  auto_nlist.o
 
98
LOBJS           = $(LLIBAGENTOBJS) $(LAGENTOBJS) mib_modules.lo auto_nlist.lo
 
99
 
 
100
 
 
101
all: standardall
 
102
 
 
103
#
 
104
# build stuff targets
 
105
#
 
106
getkstat: getkstat.o
 
107
        $(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
 
108
 
 
109
getkstat.o: mibgroup/kernel_sunos5.c
 
110
        $(CC) $(CFLAGS) -o $@ -D_GETKSTAT_TEST -DDODEBUG -c $? 
 
111
 
 
112
getmibstat: getmibstat.o
 
113
        $(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
 
114
 
 
115
getmibstat.o: mibgroup/kernel_sunos5.c
 
116
        $(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
 
117
 
 
118
snmpd$(EXEEXT): ${LAGENTOBJS} $(USELIBS) $(HELPERLIB) $(LIBTARG) ${INSTALLLIBS}
 
119
        $(LINK) $(CFLAGS) -o $@ ${LAGENTOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${OUR_AGENT_LIBS}
 
120
 
 
121
 
 
122
libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION):    ${LLIBAGENTOBJS} libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION)
 
123
        $(LIB_LD_CMD) libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) ${LLIBAGENTOBJS}  $(LIB_LD_LIBS)
 
124
        $(RANLIB) libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION)
 
125
 
 
126
libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION):    ${LMIBOBJS}
 
127
        $(LIB_LD_CMD) libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION) ${LMIBOBJS}  $(LIB_LD_LIBS)
 
128
        $(RANLIB) libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION)
 
129
 
 
130
embedperlinstall:
 
131
          @$(SHELL) $(srcdir)/../mkinstalldirs $(INSTALL_PREFIX)$(snmplibdir)
 
132
          @$(INSTALL) $(srcdir)/snmp_perl.pl $(INSTALL_PREFIX)$(snmplibdir)/snmp_perl.pl
 
133
          @echo "install:  installed snmp_perl.pl in $(INSTALL_PREFIX)$(snmplibdir)"
 
134
 
 
135
embedperluninstall:
 
136
          @rm -f $(INSTALL_PREFIX)$(snmplibdir)/snmp_perl.pl
 
137
          @echo "removed snmp_perl.pl from $(INSTALL_PREFIX)$(snmplibdir)"
 
138
 
 
139
snmp_vars.lo: @module_list_h@
 
140
read_config.lo: @module_list_h@
 
141
mib_modules.lo: mibgroup/mib_module_inits.h