xref: /onnv-gate/usr/src/lib/libuutil/Makefile (revision 2522:79989c8fe091)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2522Sraf# Common Development and Distribution License (the "License").
6*2522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
25*2522Sraf# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gate#
290Sstevel@tonic-gate# We build a native version of libuutil.so.1 in the "native" subdirectory.
300Sstevel@tonic-gate# Note that we don't bother to lint it.
310Sstevel@tonic-gate#
320Sstevel@tonic-gate
330Sstevel@tonic-gateinclude ../Makefile.lib
340Sstevel@tonic-gate
350Sstevel@tonic-gateHDRS = \
360Sstevel@tonic-gate	libuutil.h \
370Sstevel@tonic-gate	libuutil_impl.h
380Sstevel@tonic-gate
390Sstevel@tonic-gateHDRDIR =	common
40*2522Sraf
410Sstevel@tonic-gateSUBDIRS	=	$(MACH)
420Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64)
430Sstevel@tonic-gate
440Sstevel@tonic-gateall := 		TARGET = all
450Sstevel@tonic-gateclean :=	TARGET = clean
460Sstevel@tonic-gateclobber :=	TARGET = clobber
470Sstevel@tonic-gateinstall	:=	TARGET = install
480Sstevel@tonic-gatelint :=		TARGET = lint
490Sstevel@tonic-gate
500Sstevel@tonic-gateMSGFILES = \
510Sstevel@tonic-gate	common/uu_dprintf.c \
520Sstevel@tonic-gate	common/uu_misc.c
530Sstevel@tonic-gate
540Sstevel@tonic-gatePOFILE =	libuutil.po
550Sstevel@tonic-gate
560Sstevel@tonic-gate.KEEP_STATE:
570Sstevel@tonic-gate
58*2522Srafall clean clobber install: native $(SUBDIRS)
59*2522Sraf
60*2522Sraflint:		$(SUBDIRS)
610Sstevel@tonic-gate
620Sstevel@tonic-gate$(POFILE):	pofile_MSGFILES
630Sstevel@tonic-gate
640Sstevel@tonic-gateinstall_h:	$(ROOTHDRS)
650Sstevel@tonic-gate
660Sstevel@tonic-gatecheck:		$(CHECKHDRS)
670Sstevel@tonic-gate
680Sstevel@tonic-gate_msg:		$(MSGDOMAINPOFILE)
690Sstevel@tonic-gate
70*2522Srafnaive $(SUBDIRS): FRC
710Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
720Sstevel@tonic-gate
730Sstevel@tonic-gateFRC:
740Sstevel@tonic-gate
750Sstevel@tonic-gateinclude ../Makefile.targ
760Sstevel@tonic-gateinclude ../../Makefile.msg.targ
77