Makefile revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# See the License for the specific language governing permissions
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER END
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Use is subject to license terms.
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson# Set common AST build flags (e.g., needed to support the math stuff).
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# 1. Make sure that the -D/-U defines in CFLAGS below are in sync
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# case - it MUST come as the last element but future changes in -D options
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# may then cause silent breakage in the AST sources because the last -D
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# option specified overrides previous -D options so we prefer the current
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# way to explicitly list each single flag.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMPILE.c) -c -o $@ $<
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# dummy file since AST/ksh/shcomp doesn't use *.po files
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# (and "shcomp" is just a frontend which calls directly into libshell,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# e.g. there are no l10n strings here)