# @(#)36	1.1  src/tcpip/usr/samples/snmpd/dpi2/Makefile, snmp, tcpip720 11/19/96 16:33:01
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# tcpip720 src/tcpip/usr/samples/snmpd/dpi2/Makefile 1.1 
#  
# Licensed Materials - Property of IBM 
#  
# Restricted Materials of IBM 
#  
# COPYRIGHT International Business Machines Corp. 1996 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
#---------------------------------------------------------------------
#
# Makefile for dpisample  - including the DPI 2.0 API
# Tailored for AIX 3.2 and beyond with XL C Compiler
#
# $Id$
#
# $Log$
#
#---------------------------------------------------------------------

RANLIB		= ranlib  # BSD 4.3 and newer AIX systems have it
CC		= cc      # name of compiler
O		= o       # file extension for object files
E		=         # file extension for executeable files
C_FLAG		= -c      # compile only flag
O_FLAG		= -o      # output filename flag (for executable)

SYS_CFLAGS	= -g -qlanglvl=ansi    # use ANSI C
SYS_CFLAGS	= -D_ALL_SOURCE -DBSD_INCLUDES -D_BSD -qlanglvl=ansi 

# Specify if you need to include any special socket libraries
SOCK_LIBS	=

# Specify if you need to compile with any special flags for Sockets
SOCK_FLAGS	= 

INCLUDES	= -I. $(SYS_INCLUDES)
CFLAGS		= $(INCLUDES) $(SYS_CFLAGS) $D
LIBS		= -ldpi20

DPISAMPLE_OBJS	= dpi_sample.$O 

.c.o:                 
	$(CC) $(CFLAGS) $(C_FLAG) $*.c

all: dpisample$E

dpisample$(E): $(DPISAMPLE_OBJS) 
	$(CC) $(SYS_LFLAGS) $(O_FLAG) $@ $(DPISAMPLE_OBJS) $(SOCK_LIBS) $(LIBS)

dpi_sample.$O: dpi_sample.c
	$(CC) $(CFLAGS) $(C_FLAG) $*.c

clean:
	rm -f *.o core dpisample
# end of Make.dpi20api.aix
