Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# CDDL HEADER START
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# The contents of this file are subject to the terms of the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Common Development and Distribution License, Version 1.0 only
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# (the "License"). You may not use this file except in compliance
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# with the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# or http://www.opensolaris.org/os/licensing.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# See the License for the specific language governing permissions
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# and limitations under the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# If applicable, add the following below this CDDL HEADER, with the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# CDDL HEADER END
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Use is subject to license terms.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserPROG=du
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserXPG4PROG= du
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinclude ../Makefile.cmd
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserCFLAGS += $(CCVERBOSE)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserCERRWARN += -_gcc=-Wno-parentheses
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserCERRWARN += -_gcc=-Wno-uninitialized
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(XPG4) := CFLAGS += -DXPG4
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserCPPFLAGS += -D_FILE_OFFSET_BITS=64
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserPOFILE = du_cmd.po
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserPOFILES = du.po
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserPOFILES_XPG4 = du.po.xpg4
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User$(POFILES_XPG4) := CFLAGS += -DXPG4
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCLOBBERFILES += $(POFILES_XPG4)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox UserLDLIBS += -lcmdutils
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User.KEEP_STATE:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userall: $(PROG) $(XPG4)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinstall: all $(ROOTPROG) $(ROOTXPG4PROG)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(POFILE): $(POFILES) $(POFILES_XPG4)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(RM) $@; cat $(POFILES) $(POFILES_XPG4) > $@
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User%.po.xpg4: %.c
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User $(COMPILE.cpp) $< > $<.i
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(BUILD.po)
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userclean:
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userlint: lint_PROG
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userinclude ../Makefile.targ
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User