10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 55331Samw# Common Development and Distribution License (the "License"). 65331Samw# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*9664Sjason@ansipunx.net# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# cmd/ls/Makefile.com 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gatePROG= ls 290Sstevel@tonic-gateXPG4PROG= ls 300Sstevel@tonic-gateXPG6PROG= ls 310Sstevel@tonic-gateOBJS= $(PROG).o 320Sstevel@tonic-gateSRCS= $(OBJS:%.o=../%.c) 330Sstevel@tonic-gate 340Sstevel@tonic-gateinclude ../../Makefile.cmd 350Sstevel@tonic-gate 36*9664Sjason@ansipunx.netLDLIBS += -lsec -lnvpair -lcmdutils -lcurses 370Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 380Sstevel@tonic-gate$(XPG4) := CFLAGS += -DXPG4 390Sstevel@tonic-gate 400Sstevel@tonic-gate# Include all XPG4 changes in the XPG6 version 410Sstevel@tonic-gate$(XPG6) := CFLAGS += -DXPG4 -DXPG6 420Sstevel@tonic-gate$(XPG6) := CFLAGS64 += -DXPG4 -DXPG6 430Sstevel@tonic-gate 440Sstevel@tonic-gateCFLAGS64 += $(CCVERBOSE) 450Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64 460Sstevel@tonic-gateLINTFLAGS64 += -errchk=longptr64 470Sstevel@tonic-gate 480Sstevel@tonic-gate.KEEP_STATE: 490Sstevel@tonic-gate 500Sstevel@tonic-gateall: $(PROG) $(XPG4) $(XPG6) 510Sstevel@tonic-gate 520Sstevel@tonic-gatelint: lint_SRCS 530Sstevel@tonic-gate 540Sstevel@tonic-gateclean: 550Sstevel@tonic-gate $(RM) $(CLEANFILES) 560Sstevel@tonic-gate 570Sstevel@tonic-gateinclude ../../Makefile.targ 580Sstevel@tonic-gate 590Sstevel@tonic-gate%.xpg4: ../%.c 600Sstevel@tonic-gate $(LINK.c) -o $@ $< $(LDLIBS) 610Sstevel@tonic-gate $(POST_PROCESS) 620Sstevel@tonic-gate 630Sstevel@tonic-gate%.xpg6: ../%.c 640Sstevel@tonic-gate $(LINK.c) -o $@ $< $(LDLIBS) 650Sstevel@tonic-gate $(POST_PROCESS) 660Sstevel@tonic-gate 670Sstevel@tonic-gate%: ../%.c 680Sstevel@tonic-gate $(LINK.c) -o $@ $< $(LDLIBS) 690Sstevel@tonic-gate $(POST_PROCESS) 70