xref: /titanic_52/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile (revision fb3fb4f3d76d55b64440afd0af72775dfad3bd1d)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29PROG=	snoop
30OBJS=	dlprims.o nfs4_xdr.o snoop.o snoop_aarp.o snoop_adsp.o snoop_aecho.o \
31	snoop_apple.o snoop_arp.o snoop_atp.o snoop_bparam.o \
32	snoop_capture.o snoop_dhcp.o snoop_display.o snoop_dns.o snoop_ether.o \
33	snoop_filter.o snoop_http.o snoop_icmp.o snoop_igmp.o snoop_ip.o \
34	snoop_ipaddr.o snoop_ipsec.o snoop_ldap.o snoop_mip.o snoop_mount.o \
35	snoop_nbp.o snoop_netbios.o snoop_nfs.o snoop_nfs3.o snoop_nfs4.o \
36	snoop_nfs_acl.o snoop_nis.o snoop_nisplus.o snoop_nlm.o snoop_ntp.o \
37	snoop_pf.o snoop_ospf.o snoop_ospf6.o snoop_pmap.o snoop_ppp.o \
38	snoop_pppoe.o snoop_rip.o snoop_rip6.o snoop_rpc.o snoop_rpcprint.o \
39	snoop_rpcsec.o snoop_rport.o snoop_rquota.o snoop_rstat.o snoop_rtmp.o \
40	snoop_sctp.o snoop_slp.o snoop_smb.o snoop_socks.o snoop_solarnet.o \
41	snoop_tcp.o snoop_tftp.o snoop_udp.o snoop_zip.o
42
43SRCS=	$(OBJS:.o=.c)
44HDRS=	snoop.h snoop_mip.h at.h snoop_ospf.h snoop_ospf6.h
45
46include	../../../Makefile.cmd
47
48CPPFLAGS += -I. -I$(SRC)/common/net/dhcp
49LDLIBS += -ldhcputil -ldlpi -lsocket -lnsl
50
51.KEEP_STATE:
52
53.PARALLEL: $(OBJS)
54
55all:	$(PROG)
56
57$(PROG): $(OBJS)
58	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
59	$(POST_PROCESS)
60
61install:	all $(ROOTUSRSBINPROG)
62
63clean:
64	$(RM) $(OBJS)
65
66lint:	lint_SRCS
67
68include	../../../Makefile.targ
69