10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51676Sjpk# Common Development and Distribution License (the "License"). 61676Sjpk# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*10265SKrishnendu.Sadhukhan@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# Copyright (c) 1990 Mentat Inc. 260Sstevel@tonic-gate# 270Sstevel@tonic-gate# cmd/cmd-inet/usr.bin/netstat/Makefile 280Sstevel@tonic-gate 290Sstevel@tonic-gatePROG= netstat 300Sstevel@tonic-gate 310Sstevel@tonic-gateLOCALOBJS= netstat.o unix.o 320Sstevel@tonic-gateCOMMONOBJS= compat.o 330Sstevel@tonic-gate 340Sstevel@tonic-gateinclude ../../../Makefile.cmd 350Sstevel@tonic-gateinclude ../../Makefile.cmd-inet 360Sstevel@tonic-gate 370Sstevel@tonic-gateLOCALSRCS= $(LOCALOBJS:%.o=%.c) 380Sstevel@tonic-gateCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c) 39*10265SKrishnendu.Sadhukhan@Sun.COM 40*10265SKrishnendu.Sadhukhan@Sun.COMSTATCOMMONDIR = $(SRC)/cmd/stat/common 410Sstevel@tonic-gate 42*10265SKrishnendu.Sadhukhan@Sun.COMSTAT_COMMON_OBJS = timestamp.o 43*10265SKrishnendu.Sadhukhan@Sun.COMSTAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c) 44*10265SKrishnendu.Sadhukhan@Sun.COM 45*10265SKrishnendu.Sadhukhan@Sun.COMOBJS= $(LOCALOBJS) $(COMMONOBJS) $(STAT_COMMON_OBJS) 46*10265SKrishnendu.Sadhukhan@Sun.COMSRCS= $(LOCALSRCS) $(COMMONSRCS) $(STAT_COMMON_SRCS) 47*10265SKrishnendu.Sadhukhan@Sun.COM 48*10265SKrishnendu.Sadhukhan@Sun.COMCPPFLAGS += -DNDEBUG -I$(CMDINETCOMMONDIR) -I$(STATCOMMONDIR) 496543SrieLDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol 500Sstevel@tonic-gate 510Sstevel@tonic-gate.KEEP_STATE: 520Sstevel@tonic-gate 530Sstevel@tonic-gateall: $(PROG) $(NPROG) 540Sstevel@tonic-gate 550Sstevel@tonic-gateROOTPROG= $(PROG:%=$(ROOTBIN)/%) 560Sstevel@tonic-gate 570Sstevel@tonic-gate$(PROG): $(OBJS) 580Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 590Sstevel@tonic-gate $(POST_PROCESS) 600Sstevel@tonic-gate 61*10265SKrishnendu.Sadhukhan@Sun.COM%.o : $(STATCOMMONDIR)/%.c 62*10265SKrishnendu.Sadhukhan@Sun.COM $(COMPILE.c) -o $@ $< 63*10265SKrishnendu.Sadhukhan@Sun.COM $(POST_PROCESS_O) 64*10265SKrishnendu.Sadhukhan@Sun.COM 650Sstevel@tonic-gateinstall: all $(ROOTPROG) 660Sstevel@tonic-gate 670Sstevel@tonic-gateclean: 680Sstevel@tonic-gate $(RM) $(OBJS) 690Sstevel@tonic-gate 700Sstevel@tonic-gatelint: lint_SRCS 710Sstevel@tonic-gate 720Sstevel@tonic-gateinclude ../../../Makefile.targ 730Sstevel@tonic-gate 74