xref: /titanic_51/usr/src/lib/libshell/Makefile (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1*da2e3ebdSchin#
2*da2e3ebdSchin# CDDL HEADER START
3*da2e3ebdSchin#
4*da2e3ebdSchin# The contents of this file are subject to the terms of the
5*da2e3ebdSchin# Common Development and Distribution License (the "License").
6*da2e3ebdSchin# You may not use this file except in compliance with the License.
7*da2e3ebdSchin#
8*da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*da2e3ebdSchin# or http://www.opensolaris.org/os/licensing.
10*da2e3ebdSchin# See the License for the specific language governing permissions
11*da2e3ebdSchin# and limitations under the License.
12*da2e3ebdSchin#
13*da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each
14*da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the
16*da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying
17*da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner]
18*da2e3ebdSchin#
19*da2e3ebdSchin# CDDL HEADER END
20*da2e3ebdSchin#
21*da2e3ebdSchin#
22*da2e3ebdSchin# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*da2e3ebdSchin# Use is subject to license terms.
24*da2e3ebdSchin#
25*da2e3ebdSchin# ident	"%Z%%M%	%I%	%E% SMI"
26*da2e3ebdSchin#
27*da2e3ebdSchin
28*da2e3ebdSchinSHELL=/usr/bin/ksh
29*da2e3ebdSchin
30*da2e3ebdSchininclude		../Makefile.lib
31*da2e3ebdSchin
32*da2e3ebdSchinSUBDIRS =	$(MACH)
33*da2e3ebdSchin$(BUILD64)SUBDIRS += $(MACH64)
34*da2e3ebdSchin
35*da2e3ebdSchinall :=		TARGET= all
36*da2e3ebdSchinclean :=	TARGET= clean
37*da2e3ebdSchinclobber :=	TARGET= clobber
38*da2e3ebdSchininstall :=	TARGET= install
39*da2e3ebdSchinlint :=		TARGET= lint
40*da2e3ebdSchin_msg := 	TARGET= _msg
41*da2e3ebdSchin
42*da2e3ebdSchin.KEEP_STATE:
43*da2e3ebdSchin
44*da2e3ebdSchinall clean clobber install lint _msg: $(SUBDIRS)
45*da2e3ebdSchin
46*da2e3ebdSchinLIBRARY= 	libshell.a
47*da2e3ebdSchin
48*da2e3ebdSchinHDRS= \
49*da2e3ebdSchin	history.h \
50*da2e3ebdSchin	nval.h \
51*da2e3ebdSchin	shell.h
52*da2e3ebdSchin
53*da2e3ebdSchinHDRDIR32= $(MACH)/include/ast
54*da2e3ebdSchinHDRDIR64= $(MACH64)/include/ast
55*da2e3ebdSchininclude ../Makefile.asthdr
56*da2e3ebdSchin
57*da2e3ebdSchininstall_h: $(ROOTHDRS)
58*da2e3ebdSchin
59*da2e3ebdSchin# We don't check these header files because they're owned by AT&T/AST
60*da2e3ebdSchincheck:
61*da2e3ebdSchin
62*da2e3ebdSchin$(SUBDIRS):	FRC
63*da2e3ebdSchin	@cd $@; pwd; $(MAKE) $(TARGET)
64*da2e3ebdSchin
65*da2e3ebdSchinFRC:
66*da2e3ebdSchin
67*da2e3ebdSchin# rules to install demo files in $(ROOT)/usr/demo/ksh/
68*da2e3ebdSchininclude Makefile.demo
69*da2e3ebdSchin
70*da2e3ebdSchininclude ../Makefile.targ
71