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]
23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
39 bltins/poll_solaris.o \
43 bltins/shiocmd_solaris.o \
97 # We are storing the object files into subdirs avoid the
98 # confusion with having too many object files in the toplevel pics/
99 # directory (this matches the way how the original AST build system
100 # deals with this "logistic" issue) - the rules below ensure that
101 # the destination directory is available.
107 PICSDIRS= $(OBJDIRS:%=pics/%)
109 @mkdir -p $(PICSDIRS)
111 # Specify the MACH we currently use to build and test ksh
112 LIBSHELLMACH= $(TARGETMACH)
115 include ../../Makefile.astmsg
117 include ../../Makefile.lib
119 # mapfile-vers does not live with the sources in in common/ to make
120 # automated code updates easier.
121 MAPFILES= ../mapfile-vers
123 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
124 include ../../../Makefile.ast
137 # 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
138 # with usr/src/cmd/ksh/Makefile.com
139 # 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
140 # case - it MUST come as the last element but future changes in -D options
141 # may then cause silent breakage in the AST sources because the last -D
142 # option specified overrides previous -D options so we prefer the current
143 # way to explicitly list each single flag.
153 CERRWARN += -Wno-parentheses
154 CERRWARN += -Wno-unused-value
155 CERRWARN += -Wno-unused-variable
156 CERRWARN += -Wno-unused-function
157 CERRWARN += -Wno-uninitialized
158 CERRWARN += -Wno-clobbered
159 CERRWARN += -Wno-char-subscripts
163 all: mkpicdirs .WAIT $(LIBS)
165 include ../../Makefile.targ