Makefile revision 9444c26f4faabda140242c3986089704c4073ced
299N/A#
299N/A# CDDL HEADER START
299N/A#
299N/A# The contents of this file are subject to the terms of the
1068N/A# Common Development and Distribution License (the "License").
299N/A# You may not use this file except in compliance with the License.
299N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
299N/A#
299N/A
299N/APROG= cmdexec
299N/A
493N/AOBJS= cmdexec.o
299N/ASRCS= $(OBJS:.o=.c)
970N/A
977N/ACLASS_ACTION_SCRIPTS = i.awk \
970N/A i.build \
970N/A i.CompCpio \
299N/A i.preserve \
1107N/A i.sed \
299N/A r.awk \
911N/A r.build \
1107N/A r.sed
1107N/AADMINFILE = default
911N/A
299N/AROOTPKGMNFSTDIR=$(ROOT)/lib/svc/manifest/system
1157N/AROOTPKGMNFST= $(ROOTPKGMNFSTDIR)/pkgserv.xml
299N/A
299N/A$(ROOTPKGMNFST) := FILEMODE = 0444
1069N/A
493N/A# cmdexec also installed in usr/sadm/install/scripts
299N/ASCRIPTS = $(CLASS_ACTION_SCRIPTS) $(PROG)
300N/A
493N/Ainclude $(SRC)/cmd/svr4pkg/Makefile.svr4pkg
300N/ACLOBBERFILES += $(CLASS_ACTION_SCRIPTS)
493N/A
375N/AROOTLINKS= $(ROOTCLASS_SCR_DIR)/i.CONFIG.prsv
970N/APRESRV= $(ROOTCLASS_SCR_DIR)/i.preserve
970N/A
970N/ALDLIBS += -lpkg
299N/A
.KEEP_STATE:
all: $(PROG) $(CLASS_ACTION_SCRIPTS)
install: all $(ROOTCLASS_SCR_FILES) $(ROOTADMIN_SRC_FILE) \
$(ROOTPKGMNFST) $(ROOTLINKS)
$(ROOTLINKS): $(ROOTCLASS_SCR_FILES)
$(RM) $@
$(LN) $(PRESRV) $@
include $(SRC)/cmd/svr4pkg/Makefile.svr4pkg.targ