and added files
[bcm963xx.git] / userapps / opensource / net-snmp / snmplib / Makefile.in
1 #
2 # Makefile for snmplib
3 #
4
5 top_builddir=..
6
7 #
8 # Things to install
9 #
10
11 # headers
12 INSTALLHEADERS=\
13         net-snmp-includes.h \
14         config_api.h  \
15         mib_api.h     \
16         output_api.h  \
17         pdu_api.h     \
18         session_api.h \
19         snmpv3_api.h  \
20         varbind_api.h \
21         types.h       \
22         utilities.h   \
23         version.h     \
24         definitions.h
25
26 INCLUDESUBDIR=library
27 INCLUDESUBDIRHEADERS=README \
28         asn1.h \
29         callback.h \
30         container.h \
31         container_binary_array.h \
32         factory.h \
33         data_list.h \
34         default_store.h \
35         int64.h \
36         keytools.h \
37         mib.h \
38         md5.h \
39         parse.h \
40         read_config.h \
41         scapi.h \
42         snmp.h \
43         snmp_alarm.h \
44         snmp_api.h \
45         snmp_assert.h \
46         snmp_client.h \
47         snmp_debug.h \
48         snmp_impl.h \
49         snmp_logging.h \
50         snmp_parse_args.h \
51         snmp-tc.h \
52         snmpv3.h \
53         system.h \
54         tools.h \
55         transform_oids.h \
56         winservice.h \
57         cmu_compat.h \
58         getopt.h \
59         lcd_time.h \
60         mt_support.h \
61         oid_stash.h \
62         snmp_enum.h \
63         snmp_locking.h \
64         snmp_secmod.h \
65         ucd_compat.h \
66         vacm.h \
67         check_varbind.h \
68         snmp_transport.h \
69         @transport_hdr_list@ \
70         @security_hdr_list@
71
72 INSTALLBUILTSUBDIRHEADERS=../include/net-snmp/library/snmpv3-security-includes.h
73 INSTALLBUILTSUBDIR=library
74
75
76 INSTALLUCDHEADERS= asn1.h \
77         callback.h      \
78         default_store.h \
79         int64.h         \
80         keytools.h      \
81         mib.h           \
82         parse.h         \
83         read_config.h   \
84         scapi.h         \
85         snmp_alarm.h    \
86         snmp_api.h      \
87         snmp_client.h   \
88         snmp_debug.h    \
89         snmp.h          \
90         snmp_impl.h     \
91         snmp_logging.h  \
92         snmp_parse_args.h \
93         snmp-tc.h       \
94         snmpusm.h       \
95         snmpv3.h        \
96         snmp_vars.h     \
97         struct.h        \
98         system.h        \
99         tools.h         \
100         transform_oids.h
101
102 # libraries
103 INSTALLLIBS=libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
104 INSTALLUCDLIBS=libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
105
106 #
107 # Things to build
108 #
109 CSRCS=  snmp_client.c mib.c parse.c snmp_api.c snmp.c           \
110         snmp_auth.c asn1.c md5.c snmp_parse_args.c              \
111         system.c vacm.c int64.c read_config.c                   \
112         snmp_debug.c tools.c  snmp_logging.c                    \
113         snmpv3.c lcd_time.c keytools.c                          \
114         scapi.c callback.c default_store.c snmp_alarm.c         \
115         data_list.c oid_stash.c                                 \
116         mt_support.c snmp_enum.c snmp-tc.c                      \
117         snprintf.c strtol.c strtoul.c                           \
118         snmp_transport.c                                        \
119         @transport_src_list@ \
120         snmp_secmod.c snmp_version.c                            \
121         @security_src_list@ \
122         check_varbind.c container.c container_binary_array.c    \
123         cmu_compat.c ucd_compat.c
124
125 OBJS=   $(CSRCS:.c=.o)
126
127 LOBJS=  $(CSRCS:.c=.lo)
128
129 # just in case someone wants to remove libtool, change this to OBJS.
130 TOBJS=$(LOBJS)
131
132 CPPFLAGS = -I$(top_srcdir)/include -I../include \
133         -I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@
134
135 all: standardall
136
137 # how to build the libraries.
138 libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION):    ${TOBJS}
139         $(LIB_LD_CMD) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
140         $(RANLIB) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
141
142 libsnmp.$(LIB_EXTENSION)$(LIB_VERSION):    ${TOBJS}
143         $(LIB_LD_CMD) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
144         $(RANLIB) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
145
146 #
147 # internal test objects
148 #
149 parse:  mib.o parse.c
150         $(CC) $(CFLAGS) -DTEST parse.c -o parse \
151                 `$(top_srcdir)/net-snmp-config --libs`
152
153 test_binary_array: test_binary_array.c
154         $(CC) $(CFLAGS) test_binary_array.c  -o $@ \
155                 `$(top_srcdir)/net-snmp-config --libs`