Old Makefile.sfw
  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 (the "License").
  6 #  You may not use this file except in compliance with the License.
  7 #
  8 #  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  9 #  or http://www.opensolaris.org/os/licensing.
 10 #  See the License for the specific language governing permissions
 11 #  and limitations under the License.
 12 #
 13 #  When distributing Covered Code, include this CDDL HEADER in each
 14 #  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 15 #  If applicable, add the following below this CDDL HEADER, with the
 16 #  fields enclosed by brackets "[]" replaced with your own identifying
 17 #  information: Portions Copyright [yyyy] [name of copyright owner]
 18 #
 19 #  CDDL HEADER END
 20 #
 21 #
 22 
 23 
 24 #
 25 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 26 # Use is subject to license terms.
 27 #
 28 #ident  "@(#)Makefile.sfw       1.2     01/02/04 SMI"
 29 
 30 MAN1FILES= xcpustate.1
 31 
 32 PROG=xcpustate
 33 
 34 all     :=      TARGET = all
 35 install :=      TARGET = install
 36 
 37 all: $(PROG)
 38 
 39 OBJS= xcpustate.o Bar.o s.o rstat.o rstat_clnt.o rstat_xdr.o
 40 
 41 include ../Makefile.cmd
 42 
 43 CFLAGS += -DRSTAT -DSUNOS5
 44 
 45 LDLIBS += -lXaw -lXmu -lXt -lXext -lX11 -lkstat -lelf -lsocket -lnsl -lgen
 46 
 47 .KEEP_STATE:
 48 
 49 .PARALLEL: $(OBJS)
 50 
 51 $(PROG): $(OBJS)
 52         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
 53 
 54 install: all .WAIT $(ROOTOPTSFWBINPROG) .WAIT install_man 
 55 
 56 install_man: $(ROOTMAN1FILES)
 57 
 58 clean:
 59         rm -f $(OBJS) rstat_svc.c rstat_xdr.c rstat_clnt.c
 60 
 61 xcpustate.1: xcpustate.man
 62         rm -f xcpustate.1; cp xcpustate.man xcpustate.1
 63 
 64 rstat.c: rstat.h
 65 
 66 rstat.h rstat_clnt.c rstat_xdr.c: rstat.x
 67         rpcgen rstat.x
 68 
 69 FRC:
 70 
 71 include ../Makefile.targ