~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to snmplib/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
# Portions of this file are subject to the following copyright.  See
 
2
# the Net-SNMP's COPYING file for more details and other copyrights
 
3
# that may apply:
 
4
#
 
5
# Portions of this file are copyrighted by:
 
6
# Copyright � 2003 Sun Microsystems, Inc. All rights reserved.
 
7
# Use is subject to license terms specified in the COPYING file
 
8
# distributed with the Net-SNMP package.
 
9
#
 
10
 
 
11
#
 
12
# Makefile for snmplib
 
13
#
 
14
 
 
15
top_builddir=..
 
16
 
 
17
#
 
18
# Things to install
 
19
#
 
20
 
 
21
# headers
 
22
INSTALLHEADERS=\
 
23
        net-snmp-includes.h \
 
24
        config_api.h  \
 
25
        mib_api.h     \
 
26
        output_api.h  \
 
27
        pdu_api.h     \
 
28
        session_api.h \
 
29
        snmpv3_api.h  \
 
30
        varbind_api.h \
 
31
        types.h       \
 
32
        utilities.h   \
 
33
        version.h     \
 
34
        definitions.h
 
35
 
 
36
INCLUDESUBDIR=library
 
37
INCLUDESUBDIRHEADERS=README \
 
38
        asn1.h \
 
39
        callback.h \
 
40
        container.h \
 
41
        container_binary_array.h \
 
42
        container_list_ssll.h \
 
43
        container_iterator.h \
 
44
        container_null.h \
 
45
        factory.h \
 
46
        data_list.h \
 
47
        default_store.h \
 
48
        int64.h \
 
49
        keytools.h \
 
50
        mib.h \
 
51
        md5.h \
 
52
        parse.h \
 
53
        read_config.h \
 
54
        scapi.h \
 
55
        snmp.h \
 
56
        snmp_alarm.h \
 
57
        snmp_api.h \
 
58
        snmp_assert.h \
 
59
        snmp_client.h \
 
60
        snmp_debug.h \
 
61
        snmp_impl.h \
 
62
        snmp_logging.h \
 
63
        snmp_parse_args.h \
 
64
        snmp-tc.h \
 
65
        snmpv3.h \
 
66
        system.h \
 
67
        tools.h \
 
68
        transform_oids.h \
 
69
        cmu_compat.h \
 
70
        getopt.h \
 
71
        lcd_time.h \
 
72
        mt_support.h \
 
73
        oid_stash.h \
 
74
        snmp_enum.h \
 
75
        snmp_locking.h \
 
76
        snmp_secmod.h \
 
77
        ucd_compat.h \
 
78
        vacm.h \
 
79
        check_varbind.h \
 
80
        snmp_transport.h \
 
81
        winpipe.h \
 
82
        winservice.h \
 
83
        @transport_hdr_list@ \
 
84
        @security_hdr_list@
 
85
 
 
86
INSTALLBUILTSUBDIRHEADERS=../include/net-snmp/library/snmpv3-security-includes.h
 
87
INSTALLBUILTSUBDIR=library
 
88
 
 
89
 
 
90
INSTALLUCDHEADERS= asn1.h \
 
91
        callback.h      \
 
92
        default_store.h \
 
93
        int64.h         \
 
94
        keytools.h      \
 
95
        mib.h           \
 
96
        parse.h         \
 
97
        read_config.h   \
 
98
        scapi.h         \
 
99
        snmp_alarm.h    \
 
100
        snmp_api.h      \
 
101
        snmp_client.h   \
 
102
        snmp_debug.h    \
 
103
        snmp.h          \
 
104
        snmp_impl.h     \
 
105
        snmp_logging.h  \
 
106
        snmp_parse_args.h \
 
107
        snmp-tc.h       \
 
108
        snmpusm.h       \
 
109
        snmpv3.h        \
 
110
        snmp_vars.h     \
 
111
        struct.h        \
 
112
        system.h        \
 
113
        tools.h         \
 
114
        transform_oids.h
 
115
 
 
116
# libraries
 
117
INSTALLLIBS=libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
 
118
INSTALLUCDLIBS=libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
 
119
 
 
120
#
 
121
# Things to build
 
122
#
 
123
CSRCS=  snmp_client.c mib.c parse.c snmp_api.c snmp.c           \
 
124
        snmp_auth.c asn1.c md5.c snmp_parse_args.c              \
 
125
        system.c vacm.c int64.c read_config.c pkcs.c            \
 
126
        snmp_debug.c tools.c  snmp_logging.c                    \
 
127
        snmpv3.c lcd_time.c keytools.c                          \
 
128
        scapi.c callback.c default_store.c snmp_alarm.c         \
 
129
        data_list.c oid_stash.c                                 \
 
130
        mt_support.c snmp_enum.c snmp-tc.c                      \
 
131
        snprintf.c strlcpy.c strtol.c strtoul.c                 \
 
132
        snmp_transport.c @transport_src_list@                   \
 
133
        snmp_secmod.c @security_src_list@ snmp_version.c        \
 
134
        check_varbind.c container.c container_binary_array.c    \
 
135
        container_null.c container_list_ssll.c container_iterator.c \
 
136
        cmu_compat.c ucd_compat.c \
 
137
        @other_src_list@
 
138
 
 
139
OBJS=   snmp_client.o mib.o parse.o snmp_api.o snmp.o           \
 
140
        snmp_auth.o asn1.o md5.o snmp_parse_args.o              \
 
141
        system.o vacm.o int64.o read_config.o                   \
 
142
        snmp_debug.o tools.o  snmp_logging.o                    \
 
143
        snmpv3.o lcd_time.o keytools.o                          \
 
144
        scapi.o callback.o default_store.o snmp_alarm.o         \
 
145
        data_list.o oid_stash.o                                 \
 
146
        mt_support.o snmp_enum.o snmp-tc.o                      \
 
147
        snprintf.o strlcpy.o strtol.o strtoul.o                 \
 
148
        snmp_transport.o @transport_obj_list@                   \
 
149
        snmp_secmod.o @security_obj_list@ snmp_version.o        \
 
150
        check_varbind.o container.o container_binary_array.o    \
 
151
        container_null.o container_list_ssll.o container_iterator.o \
 
152
        cmu_compat.o ucd_compat.o \
 
153
        @other_objs_list@
 
154
 
 
155
LOBJS=  snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo              \
 
156
        snmp_auth.lo asn1.lo md5.lo snmp_parse_args.lo          \
 
157
        system.lo vacm.lo int64.lo read_config.lo                       \
 
158
        snmp_debug.lo tools.lo  snmp_logging.lo                 \
 
159
        snmpv3.lo lcd_time.lo keytools.lo                               \
 
160
        scapi.lo callback.lo default_store.lo snmp_alarm.lo             \
 
161
        data_list.lo oid_stash.lo                               \
 
162
        mt_support.lo snmp_enum.lo snmp-tc.lo                   \
 
163
        snprintf.lo strlcpy.lo strtol.lo strtoul.lo                     \
 
164
        snmp_transport.lo @transport_lobj_list@                   \
 
165
        snmp_secmod.lo @security_lobj_list@ snmp_version.lo       \
 
166
        check_varbind.lo container.lo container_binary_array.lo \
 
167
        container_null.lo container_list_ssll.lo container_iterator.lo \
 
168
        cmu_compat.lo ucd_compat.lo \
 
169
        @other_lobjs_list@
 
170
 
 
171
# just in case someone wants to remove libtool, change this to OBJS.
 
172
TOBJS=$(LOBJS)
 
173
 
 
174
CPPFLAGS = -I$(top_srcdir)/include -I../include \
 
175
        -I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@
 
176
 
 
177
all: standardall
 
178
 
 
179
# how to build the libraries.
 
180
libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION):    ${TOBJS}
 
181
        $(LIB_LD_CMD) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
 
182
        $(RANLIB) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
 
183
 
 
184
libsnmp.$(LIB_EXTENSION)$(LIB_VERSION):    ${TOBJS}
 
185
        $(LIB_LD_CMD) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
 
186
        $(RANLIB) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
 
187
 
 
188
#
 
189
# internal test objects
 
190
#
 
191
parse:  mib.o parse.c
 
192
        $(CC) $(CFLAGS) -DTEST parse.c -o parse \
 
193
                `$(top_srcdir)/net-snmp-config --libs`
 
194
 
 
195
test_binary_array: test_binary_array.c
 
196
        $(CC) $(CFLAGS) test_binary_array.c  -o $@ \
 
197
                `$(top_srcdir)/net-snmp-config --libs`