Makefile.constants revision 3060
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# CDDL HEADER START
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# The contents of this file are subject to the terms of the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# Common Development and Distribution License (the "License").
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# You may not use this file except in compliance with the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# or http://www.opensolaris.org/os/licensing.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# See the License for the specific language governing permissions
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# and limitations under the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# When distributing Covered Code, include this CDDL HEADER in each
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# If applicable, add the following below this CDDL HEADER, with the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# fields enclosed by brackets "[]" replaced with your own identifying
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# information: Portions Copyright [yyyy] [name of copyright owner]
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# CDDL HEADER END
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisINSTALL = /usr/bin/python2.6 ../../setup.py installfile
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisMKDIR = mkdir -p
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisPROTO_AREA:sh = echo $(hg root)/proto/root_$(uname -p)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisZONES_LIBDIR = $(PROTO_AREA)/usr/lib/zones
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisZONES_PROG = $(PROG:%=$(ZONES_LIBDIR)/%)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisLINTFLAGS = -asxm -u -errwarn=%all -errtags=yes -s -errsecurity=core \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCPPFLAGS = -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I../zoneproxyd
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCFLAGS = -errtags=yes -errwarn=%all -features=conststrings -xO4 \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis -W0,-xglobalstatic -Xa -xc99=%none -xildoff -xspace
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisLDFLAGS = -Bdirect -zfatal-warnings -zguidance -zstrip-class=nonalloc
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCLEANFILES = $(PROG) $(OBJS)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCLOBBERFILES = $(ZONES_PROG) $(ROOTHDRS)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtislint_PROG: $$(PROG).c
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis $(LINT.c) $(PROG).c $(LDLIBS)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis $(LINK.c) -o $@ $< $(LDLIBS)