Makefile revision fa9e4066f08beec538e775443c5be79dd423fcab
523N/A#
523N/A# CDDL HEADER START
1276N/A#
523N/A# The contents of this file are subject to the terms of the
1356N/A# Common Development and Distribution License, Version 1.0 only
523N/A# (the "License"). You may not use this file except in compliance
523N/A# with the License.
919N/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# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
523N/A#
523N/A# ident "%Z%%M% %I% %E% SMI"
523N/A#
523N/A# cmd/mv/Makefile
523N/A#
523N/A
970N/APROG= mv
970N/AXPG4PROG= mv
970N/AOBJS= mv.o
970N/ACPFILE= cp
1356N/ALNFILE= ln
1356N/AXPG4OBJS= $(OBJS:%.o=xpg4_%.o)
1356N/ASRCS= $(OBJS:%.o=%.c)
523N/AROOTLINKS= $(ROOTBIN)/$(CPFILE) $(ROOTBIN)/$(LNFILE)
1276N/AROOTXPG4LINKS= $(ROOTXPG4BIN)/$(CPFILE) $(ROOTXPG4BIN)/$(LNFILE)
523N/A
911N/Ainclude ../Makefile.cmd
1276N/A
1276N/Aclean $(XPG4) := OBJS += values-xpg4.o
1276N/A
911N/ACLOBBERFILES += $(CPFILE) $(LNFILE)
523N/ACFLAGS += $(CCVERBOSE)
1068N/A$(XPG4) := CFLAGS += -DXPG4
523N/ALINTFLAGS += -DXPG4
970N/AXGETFLAGS += -a -x mv.xcl
970N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64
970N/ALINTFLAGS += -DXPG4
970N/A
523N/Alint := LDLIBS += -lcmdutils -lavl -lsec
1276N/A$(PROG) := LDLIBS += $(ZLAZYLOAD) -lcmdutils -lavl -lsec $(ZNOLAZYLOAD)
523N/A$(XPG4) := LDLIBS += $(ZLAZYLOAD) -lcmdutils -lavl -lsec $(ZNOLAZYLOAD)
523N/A
970N/A.KEEP_STATE:
970N/A
970N/Aall: $(PROG) $(CPFILE) $(LNFILE) $(XPG4)
523N/A
$(PROG): $$(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
$(XPG4): $$(XPG4OBJS)
$(LINK.c) -o $@ $(XPG4OBJS) $(LDLIBS)
$(POST_PROCESS)
xpg4_%.o: %.c
$(COMPILE.c) -o $@ $<
%values-xpg4.o: ../../lib/common/common/values-xpg4.c
$(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
$(CPFILE): $(PROG)
@$(RM) $(CPFILE); $(LN) $(PROG) $(CPFILE)
$(LNFILE): $(PROG)
@$(RM) $(LNFILE); $(LN) $(PROG) $(LNFILE)
install: all $(ROOTXPG4PROG) $(ROOTLINKS) $(ROOTXPG4LINKS)
$(ROOTLINKS): $(ROOTPROG)
$(RM) $@
$(LN) $(ROOTPROG) $@
$(ROOTXPG4LINKS): $(ROOTXPG4PROG)
$(RM) $@
$(LN) $(ROOTXPG4PROG) $@
clean:
$(RM) $(OBJS) $(XPG4OBJS)
lint: lint_SRCS
include ../Makefile.targ