# @(#)24	1.1  src/tcpip/usr/sbin/dhcp_dlls/samples/sample.mak, dhcp, tcpip720 6/9/99 23:15:03
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# tcpip720 src/tcpip/usr/sbin/dhcp_dlls/samples/sample.mak 1.1 
#  
# Licensed Materials - Property of IBM 
#  
# COPYRIGHT International Business Machines Corp. 1999 
# 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 

CC				= cc
LD				= ld
RM				= rm -f

CFLAGS			= -D_BSD=44 -D_THREAD_SAFE \
				  -DSAMPLE_DHCPAPI_MESSAGERECEIVED \
				  -DSAMPLE_DHCPAPI_ADDRESSOFFERED \
				  -DSAMPLE_DHCPAPI_ADDRESSASSIGNED \
				  -DSAMPLE_DHCPAPI_ADDRESSRELEASED \
				  -DSAMPLE_DHCPAPI_ADDRESSEXPIRED \
				  -DSAMPLE_DHCPAPI_ADDRESSDECLINED \
				  -DSAMPLE_DHCPAPI_ADDRESSDELETED


PROGRAMS		= sample_dhcpapi.dhcpo

OFILES			= sample_dhcpapi.o dhcputil.o

LIBS			= -lpthreads -lc_r
LDFLAGS			= -bnoentry -bE:sample_dhcpapi.exp \
				  -bI:/usr/lib/dhcp_api.exp

sample_dhcpapi.dhcpo: ${OFILES} sample_dhcpapi.exp
	${LD} -o sample_dhcpapi.dhcpo ${OFILES} ${LIBS} ${LDFLAGS}

.c.o:
	${CC} -o $@ -c $< ${CFLAGS} 

clean:
	${RM} ${PROGRAMS} ${OFILES}
