Home | History | Annotate | Download | only in netstat
      1      0      stevel #
      2      0      stevel # CDDL HEADER START
      3      0      stevel #
      4      0      stevel # The contents of this file are subject to the terms of the
      5   1676         jpk # Common Development and Distribution License (the "License").
      6   1676         jpk # You may not use this file except in compliance with the License.
      7      0      stevel #
      8      0      stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9      0      stevel # or http://www.opensolaris.org/os/licensing.
     10      0      stevel # See the License for the specific language governing permissions
     11      0      stevel # and limitations under the License.
     12      0      stevel #
     13      0      stevel # When distributing Covered Code, include this CDDL HEADER in each
     14      0      stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15      0      stevel # If applicable, add the following below this CDDL HEADER, with the
     16      0      stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17      0      stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18      0      stevel #
     19      0      stevel # CDDL HEADER END
     20      0      stevel #
     21      0      stevel #
     22  10265  Krishnendu # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     23      0      stevel # Use is subject to license terms.
     24      0      stevel #
     25      0      stevel # Copyright (c) 1990 Mentat Inc.
     26      0      stevel #
     27      0      stevel # cmd/cmd-inet/usr.bin/netstat/Makefile
     28      0      stevel 
     29      0      stevel PROG=		netstat
     30      0      stevel 
     31      0      stevel LOCALOBJS=	netstat.o unix.o
     32      0      stevel COMMONOBJS=	compat.o
     33      0      stevel 
     34      0      stevel include ../../../Makefile.cmd
     35      0      stevel include ../../Makefile.cmd-inet
     36      0      stevel 
     37      0      stevel LOCALSRCS=	$(LOCALOBJS:%.o=%.c)
     38      0      stevel COMMONSRCS=	$(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
     39      0      stevel 
     40  10265  Krishnendu STATCOMMONDIR = $(SRC)/cmd/stat/common
     41  10265  Krishnendu 
     42  10265  Krishnendu STAT_COMMON_OBJS = timestamp.o
     43  10265  Krishnendu STAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
     44  10265  Krishnendu 
     45  10265  Krishnendu OBJS=		$(LOCALOBJS) $(COMMONOBJS) $(STAT_COMMON_OBJS)
     46  10265  Krishnendu SRCS=		$(LOCALSRCS) $(COMMONSRCS) $(STAT_COMMON_SRCS)
     47  10265  Krishnendu 
     48  10265  Krishnendu CPPFLAGS += -DNDEBUG -I$(CMDINETCOMMONDIR) -I$(STATCOMMONDIR)
     49   6543         rie LDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol
     50      0      stevel 
     51      0      stevel .KEEP_STATE:
     52      0      stevel 
     53      0      stevel all: $(PROG) $(NPROG) 
     54      0      stevel 
     55      0      stevel ROOTPROG=   $(PROG:%=$(ROOTBIN)/%)
     56      0      stevel 
     57      0      stevel $(PROG): $(OBJS)
     58      0      stevel 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
     59      0      stevel 	$(POST_PROCESS)
     60      0      stevel 
     61  10265  Krishnendu %.o : $(STATCOMMONDIR)/%.c
     62  10265  Krishnendu 	$(COMPILE.c) -o $@ $<
     63  10265  Krishnendu 	$(POST_PROCESS_O)
     64  10265  Krishnendu 
     65      0      stevel install: all $(ROOTPROG) 
     66      0      stevel 
     67      0      stevel clean:
     68      0      stevel 	$(RM) $(OBJS)
     69      0      stevel 
     70      0      stevel lint:	lint_SRCS
     71      0      stevel 
     72      0      stevel include ../../../Makefile.targ
     73      0      stevel 
     74