xref: /onnv-gate/usr/src/cmd/fps/compilercheck/Makefile (revision 9271:d16e1d723aba)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License (the "License").
5# You may not use this file except in compliance with the License.
6#
7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8# or http://www.opensolaris.org/os/licensing.
9# See the License for the specific language governing permissions
10# and limitations under the License.
11#
12# When distributing Covered Code, include this CDDL HEADER in each
13# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14# If applicable, add the following below this CDDL HEADER, with the
15# fields enclosed by brackets "[]" replaced with your own identifying
16# information: Portions Copyright [yyyy] [name of copyright owner]
17#
18# CDDL HEADER END
19
20# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
21# Use is subject to license terms.
22
23
24include ../../Makefile.cmd
25include ../../Makefile.cmd.64
26
27PROG = compilercheck
28
29SUNPERF = $(SPRO_VROOT)/prod/lib
30
31SUNPV9B = $(SUNPERF)/v9b
32
33INCLUDES = -I$(SPRO_VROOT)/prod/include/cc
34
35CFLAGS64 += $(INCLUDES) -_gcc="-D__SUNPRO_C=1"
36
37SRCS = fps_compiler_check.c
38
39LINTFLAGS64 += $(INCLUDES) -D_sparc64 -DV9B -D__sparcv9
40
41.KEEP_STATE:
42
43########## beginning of dependency lines #################
44
45all install : $(PROG)
46
47$(PROG):fps_compiler_check.o
48	$(LINK.c) -o $@ fps_compiler_check.o $(SUNPV9B)/libsunperf.a
49
50clean:
51	$(RM) fps_compiler_check.o
52
53lint: lint_SRCS
54
55include ../../Makefile.targ
56