home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl502b.zip
/
ext
/
DPI
/
DPID20
/
Makefile
next >
Wrap
Makefile
|
1995-10-11
|
4KB
|
92 lines
#/*********************************************************************/
#/* */
#/* DPI-SMUX - DPI 2.0 to SMUX converter */
#/* */
#/* Sep 26, 1995 - Version 0.02 */
#/* */
#/* Copyright - (C) International Business Machines Corp. 1994 */
#/* */
#/* Permission to use, copy, modify, and distribute this software */
#/* and its documentation for any lawful purpose and without fee is */
#/* hereby granted, provided that this notice be retained unaltered,*/
#/* and that the names of IBM and all other contributors shall not */
#/* be used in advertising or publicity pertaining to distribution */
#/* of the software without specific written prior permission. */
#/* No contributor makes any representations about the suitability */
#/* of this software for any purpose. It is provided "as is" */
#/* without express or implied warranty. */
#/* */
#/* IBM AND ALL OTHER CONTRIBUTORS DISCLAIM ALL WARRANTIES WITH */
#/* REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF */
#/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, */
#/* AND NON-INFRINGEMENT. */
#/* */
#/* IN NO EVENT SHALL IBM OR ANY OTHER CONTRIBUTOR BE LIABLE FOR */
#/* ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, WHETHER IN */
#/* CONTRACT, TORT, OR OTHER FORM OF ACTION, ARISING OUT OF OR IN */
#/* CONNECTION WITH, THE USE OR PERFORMANCE OF THIS SOFTWARE. */
#/* */
#/*********************************************************************/
# This is a Makefile to create the DPI daemon.
# This daemon is a sample program that demonstrates
# what is required to implement the IBM SNMP DPI in
# an SNMP agent. It can be used to permit existing DPI (version 2)
# clients to be used with the ISODE SNMP agent. Not All DPI functionality
# is supported though.
#
# The structure of the program is loosely based on the
# "unixd.c" sample that is provided with the ISODE SNMP
# agent source.
# Below, specify the real path names for the two indicated
# libraries that are generated after doing the ISODE port.
ISODE_LIBS= -lsnmp -lisode -lbsd
DPI20LIB = -ldpi20
DPILIB = libdpi20.a
DPI_OBJS = snmp_mDPI.o snmp_lDPI.o snmp_qDPI.o
# The following has to be modified so that the C compiler
# can find the ISODE include files. The -DAIX is an AIX 3.1
# artifact, but shouldn't cause trouble in other environments.
CFLAGS= -O -D_BSD -D_BSD_INCLUDES -DIBM_LIBSMUX -DSETSID -I. -I../dpi20api
# The object files we need... The first two are the source
# to the daemon, the last is the SNMP DPI API library.
# Nothing should have to be modified here.
OBJS=dpid2.o register2.o
S=/usr/lpp/snmpd
all: dpid2
#dpid2: dpid.defs $(OBJS)
dpid2: $(OBJS) $(DPI20LIB)
cc -o $@ $(OBJS) $(ISODE_LIBS) -L. $(DPI20LIB)
dpisample: dpi_sample.o $(DPI20LIB)
cc -o $@ dpi_sample.o -L. $(DPI20LIB)
# defs to be appended to /etc/mib.defs
dpid2.defs: dpid2.my
/usr/sbin/mosy -s -o dpid2.defs $(S)/smi.my dpid2.my
$(DPI20LIB): $(DPI_OBJS)
ar cq $(DPILIB) $(DPI_OBJS); ranlib $(DPILIB)
dpi_sample.o: ../dpi20api/dpi_sample.c ../dpi20api/snmp_dpi.h
cc $(CFLAGS) -c ../dpi20api/dpi_sample.c
snmp_mDPI.o: ../dpi20api/snmp_mDPI.c ../dpi20api/snmp_dpi.h
cc $(CFLAGS) -c ../dpi20api/snmp_mDPI.c
snmp_lDPI.o: ../dpi20api/snmp_lDPI.c ../dpi20api/snmp_dpi.h ../dpi20api/snmp_lDPI.h
cc $(CFLAGS) -c ../dpi20api/snmp_lDPI.c
snmp_qDPI.o: ../dpi20api/snmp_qDPI.c ../dpi20api/snmp_dpi.h
cc $(CFLAGS) -c ../dpi20api/snmp_qDPI.c
clean:
rm -rf *.o dpid2 *.defs dpisample libdpi20.a dpid2.log