Home | History | Annotate | Download | only in ps
      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  2966  sayama # Common Development and Distribution License (the "License").
      6  2966  sayama # 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  8822  Casper # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     22     0  stevel # Use is subject to license terms.
     23     0  stevel #
     24     0  stevel # cmd/ps/Makefile
     25     0  stevel #
     26     0  stevel 
     27     0  stevel PROG= ps
     28  8822  Casper OBJS=ps.o ucbps.o
     29  8822  Casper SRCS=$(OBJS:%.o=%.c)
     30     0  stevel 
     31     0  stevel include ../Makefile.cmd
     32     0  stevel 
     33     0  stevel XGETFLAGS += -a -x ps.xcl
     34  2966  sayama 
     35  2966  sayama DCFILE= $(PROG).dc
     36  8822  Casper 
     37  8822  Casper ROOTUCBPROG = $(ROOT)/usr/ucb/$(PROG)
     38  8822  Casper ROOTUCBPROG32 = $(ROOT)/usr/ucb/$(MACH32)/$(PROG)
     39  8822  Casper ROOTUCBPROG64 = $(ROOT)/usr/ucb/$(MACH64)/$(PROG)
     40     0  stevel 
     41     0  stevel $(64ONLY)SUBDIRS= $(MACH)
     42     0  stevel $(BUILD64)SUBDIRS += $(MACH64)
     43     0  stevel 
     44     0  stevel all	:=	TARGET = all
     45     0  stevel install	:=	TARGET = install
     46     0  stevel clean	:=	TARGET = clean
     47     0  stevel clobber	:=	TARGET = clobber
     48     0  stevel lint	:=	TARGET = lint
     49     0  stevel 
     50     0  stevel .KEEP_STATE:
     51     0  stevel 
     52     0  stevel all:	$(SUBDIRS)
     53     0  stevel 
     54     0  stevel clean clobber lint:	$(SUBDIRS)
     55     0  stevel 
     56     0  stevel install:	$(SUBDIRS)
     57     0  stevel 	-$(RM) $(ROOTPROG)
     58     0  stevel 	-$(LN) $(ISAEXEC) $(ROOTPROG)
     59  8822  Casper 	-$(RM) $(ROOTUCBPROG)
     60  8822  Casper 	-$(LN) $(ISAEXEC) $(ROOTUCBPROG)
     61  8822  Casper 	$(64ONLY)-$(RM) $(ROOTUCBPROG32)
     62  8822  Casper 	$(64ONLY)-$(LN) $(ROOTPROG32) $(ROOTUCBPROG32)
     63  8822  Casper 	$(BUILD64)-$(RM) $(ROOTUCBPROG64)
     64  8822  Casper 	$(BUILD64)-$(LN) $(ROOTPROG64) $(ROOTUCBPROG64)
     65     0  stevel 
     66     0  stevel $(SUBDIRS):	FRC
     67     0  stevel 	@cd $@; pwd; $(MAKE) $(TARGET)
     68     0  stevel 
     69     0  stevel FRC:
     70     0  stevel 
     71  2966  sayama $(DCFILE): $(PROG).c
     72  2966  sayama 	$(RM) $(DCFILE)
     73  2966  sayama 	$(COMPILE.cpp) $(PROG).c  | \
     74  2966  sayama 	$(XGETTEXT) -c TRANSLATION_NOTE -t -
     75  2966  sayama 	$(SED) -e '/^domain/d' messages.po > $@
     76  2966  sayama 	$(RM) messages.po
     77  2966  sayama 
     78     0  stevel include ../Makefile.targ
     79