Makefile revision 81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6a
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# CDDL HEADER START
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# The contents of this file are subject to the terms of the
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# Common Development and Distribution License (the "License").
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# You may not use this file except in compliance with the License.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# or http://www.opensolaris.org/os/licensing.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# See the License for the specific language governing permissions
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# and limitations under the License.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# When distributing Covered Code, include this CDDL HEADER in each
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# If applicable, add the following below this CDDL HEADER, with the
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# fields enclosed by brackets "[]" replaced with your own identifying
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# information: Portions Copyright [yyyy] [name of copyright owner]
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# CDDL HEADER END
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# Use is subject to license terms.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinSHELL=/usr/bin/ksh93
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinPROG= alias
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinALIASPROG= \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin bg \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin cd \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin command \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin fc \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin fg \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin getopts \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin hash \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin jobs \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin kill \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin read \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin rev \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin sleep \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin sum \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin test \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin type \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin ulimit \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin umask \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin unalias \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin wait
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chininclude ../../Makefile.cmd
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinFILEMODE= 555
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinOWNER= root
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinGROUP= bin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin.KEEP_STATE:
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chinall: $(PROG)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin$(ROOTBIN)/%: $(ROOTBIN)/alias
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin $(INS.link)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dikinclude ../../Makefile.cmd
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik.KEEP_STATE:
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik# Set common AST build flags (e.g., needed to support the math stuff).
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dikinclude ../../../Makefile.ast
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikOBJECTS= \
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik alias.o
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikSRCS= $(OBJECTS:%.o=%.c)
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikGROUP= bin
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikLDLIBS += -lshell -last
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikCPPFLAGS = \
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(DTEXTDOM) $(DTS_ERRNO) \
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik -I$(ROOT)/usr/include/ast
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikCFLAGS += \
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(ASTCFLAGS)
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikCFLAGS64 += \
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(ASTCFLAGS64)
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. DikROOTCMDDIR=$(ROOT)/usr/bin
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik# .WAIT is needed to get the hardlinks properly done
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dikinstall: all $(ROOTCMD) .WAIT $(ROOTALIASPROG)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik$(PROG): $(OBJECTS)
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(RM) alias
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(LINK.c) $(OBJECTS) -o $@ $(LDLIBS)
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik $(POST_PROCESS)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chinclean clobber:
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Dik rm -f $(PROG) $(OBJECTS)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6aCasper H.S. Diklint _msg: