xref: /titanic_50/usr/src/cmd/zlook/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1e802abbdSTim Haley#
2e802abbdSTim Haley# CDDL HEADER START
3e802abbdSTim Haley#
4e802abbdSTim Haley# The contents of this file are subject to the terms of the
5e802abbdSTim Haley# Common Development and Distribution License (the "License").
6e802abbdSTim Haley# You may not use this file except in compliance with the License.
7e802abbdSTim Haley#
8e802abbdSTim Haley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e802abbdSTim Haley# or http://www.opensolaris.org/os/licensing.
10e802abbdSTim Haley# See the License for the specific language governing permissions
11e802abbdSTim Haley# and limitations under the License.
12e802abbdSTim Haley#
13e802abbdSTim Haley# When distributing Covered Code, include this CDDL HEADER in each
14e802abbdSTim Haley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e802abbdSTim Haley# If applicable, add the following below this CDDL HEADER, with the
16e802abbdSTim Haley# fields enclosed by brackets "[]" replaced with your own identifying
17e802abbdSTim Haley# information: Portions Copyright [yyyy] [name of copyright owner]
18e802abbdSTim Haley#
19e802abbdSTim Haley# CDDL HEADER END
20e802abbdSTim Haley#
21e802abbdSTim Haley#
22e802abbdSTim Haley# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23e802abbdSTim Haley# Use is subject to license terms.
24e802abbdSTim Haley#
25e802abbdSTim Haley
26e802abbdSTim HaleyPROG= zlook
27e802abbdSTim HaleySRCS= ../$(PROG).c
28e802abbdSTim Haley
29e802abbdSTim Haleyinclude ../../Makefile.cmd
30e802abbdSTim Haley
31e802abbdSTim HaleyC99MODE= -xc99=%all
32e802abbdSTim HaleyC99LMODE= -Xc99=%all
33e802abbdSTim HaleyCFLAGS += -g $(CCVERBOSE)
34e802abbdSTim HaleyCFLAGS64 += -g $(CCVERBOSE)
35e802abbdSTim HaleyCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
36e802abbdSTim Haley
37*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
38*7014882cSRichard Lowe
39e802abbdSTim Haley.KEEP_STATE:
40e802abbdSTim Haley
41e802abbdSTim Haleyall: $(PROG)
42e802abbdSTim Haley
43e802abbdSTim Haley$(PROG): $(SRCS)
44e802abbdSTim Haley	$(LINK.c) -o $(PROG) $(SRCS) $(LDLIBS)
45e802abbdSTim Haley	$(POST_PROCESS)
46e802abbdSTim Haley
47e802abbdSTim Haleyclean:
48e802abbdSTim Haley
49e802abbdSTim Haleylint:	lint_SRCS
50e802abbdSTim Haley
51e802abbdSTim Haleyinclude ../../Makefile.targ
52