remove pyzfs
[unleashed.git] / usr / src / lib / libsum / Makefile.com
blob8a37ee4d4f244e5ae18e138c33416e50cf9e32c5
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24 # Use is subject to license terms.
27 SHELL=/usr/bin/ksh93
29 LIBRARY=        libsum.a
30 VERS=           .1
32 OBJECTS= \
33         sumlib.o
35 include ../../Makefile.astmsg
37 include ../../Makefile.lib
39 # mapfile-vers does not live with the sources in in common/ to make
40 # automated code updates easier.
41 MAPFILES=       ../mapfile-vers
43 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
44 include ../../../Makefile.ast
46 LIBS =          $(DYNLIB)
48 LDLIBS += \
49                 -last \
50                 -lmd \
51                 -lc
53 SRCDIR =        ../common
55 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
56 # case - it MUST come as the last element but future changes in -D options
57 # may then cause silent breakage in the AST sources because the last -D
58 # option specified overrides previous -D options so we prefer the current
59 # way to explicitly list each single flag.
60 # Notes:
61 #   - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
62 CPPFLAGS = \
63         $(DTEXTDOM) \
64         -Isrc/lib/libsum \
65         -I$(ROOT)/usr/include/ast \
66         -I$(ROOT)/usr/include \
67         -D_PACKAGE_ast \
68         -D_BLD_DLL
70 CFLAGS += \
71         $(ASTCFLAGS)
72 CFLAGS64 += \
73         $(ASTCFLAGS64)
75 CERRWARN        += -Wno-parentheses
77 # This codepath is performance-critical
78 sparc_COPTFLAG=\
79         -fno-strict-aliasing \
80         -fno-unit-at-a-time \
81         -fno-optimize-sibling-calls \
82         -O2
83 sparcv9_COPTFLAG=\
84         -fno-strict-aliasing \
85         -fno-unit-at-a-time \
86         -fno-optimize-sibling-calls \
87         -O2
88 i386_COPTFLAG=
89 amd64_COPTFLAG=
91 .KEEP_STATE:
93 all: $(LIBS)
95 include ../../Makefile.targ