Makefile revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
98N/A# CDDL HEADER START
98N/A#
1276N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
1276N/A# You may not use this file except in compliance with the License.
98N/A#
98N/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#ident "%Z%%M% %I% %E% SMI"
919N/A#
919N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
98N/A#
98N/A
98N/APROG= mv
98N/AXPG4PROG= mv
493N/AOBJS1= mv.o
98N/AOBJS= $(OBJS1) getresponse.o
98N/ACPFILE= cp
1276N/ALNFILE= ln
98N/AXPG4OBJS= $(OBJS:%.o=xpg4_%.o)
911N/ASRCS= $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
1276N/A
1276N/AROOTLINKS= $(ROOTBIN)/$(CPFILE) $(ROOTBIN)/$(LNFILE)
1276N/AROOTXPG4LINKS= $(ROOTXPG4BIN)/$(CPFILE) $(ROOTXPG4BIN)/$(LNFILE)
911N/A
98N/Ainclude ../Makefile.cmd
98N/A
98N/Aclean $(XPG4) := OBJS += values-xpg4.o
98N/A
98N/ACLOBBERFILES += $(CPFILE) $(LNFILE)
98N/ACFLAGS += $(CCVERBOSE)
98N/A$(XPG4) := CFLAGS += -DXPG4
98N/ALINTFLAGS += -DXPG4 -u
493N/AXGETFLAGS += -a -x mv.xcl
98N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
98N/A
98N/Alint := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
98N/A$(PROG) := LDLIBS += $(ZLAZYLOAD) -lcmdutils -lavl -lsec -lnvpair $(ZNOLAZYLOAD)
98N/A$(XPG4) := LDLIBS += $(ZLAZYLOAD) -lcmdutils -lavl -lsec -lnvpair $(ZNOLAZYLOAD)
1082N/A
493N/A.KEEP_STATE:
98N/A
98N/Aall: $(PROG) $(CPFILE) $(LNFILE) $(XPG4)
$(PROG): $$(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
$(XPG4): $$(XPG4OBJS)
$(LINK.c) -o $@ $(XPG4OBJS) $(LDLIBS)
$(POST_PROCESS)
%.o: $(SRC)/common/util/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
$(POST_PROCESS_O)
xpg4_%.o: %.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
xpg4_%.o: $(SRC)/common/util/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_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