Makefile.com revision 7014882c6a3672fd0e5d60200af8643ae53c5928
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# CDDL HEADER START
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# The contents of this file are subject to the terms of the
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# Common Development and Distribution License (the "License").
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# You may not use this file except in compliance with the License.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# or http://www.opensolaris.org/os/licensing.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# See the License for the specific language governing permissions
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# and limitations under the License.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# When distributing Covered Code, include this CDDL HEADER in each
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# If applicable, add the following below this CDDL HEADER, with the
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# fields enclosed by brackets "[]" replaced with your own identifying
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# information: Portions Copyright [yyyy] [name of copyright owner]
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# CDDL HEADER END
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley# Use is subject to license terms.
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley#
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyPROG= zlook
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleySRCS= ../$(PROG).c
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haleyinclude ../../Makefile.cmd
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyC99MODE= -xc99=%all
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyC99LMODE= -Xc99=%all
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyCFLAGS += -g $(CCVERBOSE)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyCFLAGS64 += -g $(CCVERBOSE)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim HaleyCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley.KEEP_STATE:
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haleyall: $(PROG)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley$(PROG): $(SRCS)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley $(LINK.c) -o $(PROG) $(SRCS) $(LDLIBS)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley $(POST_PROCESS)
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haleyclean:
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haleylint: lint_SRCS
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haley
e802abbda8c322f24d47835734f4a793ef15ddc8Tim Haleyinclude ../../Makefile.targ