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 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# 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*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232522Sraf# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate 260Sstevel@tonic-gateinclude ../Makefile.lib 270Sstevel@tonic-gate 280Sstevel@tonic-gateSUBDIRS= $(MACH) 290Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64) 300Sstevel@tonic-gate 310Sstevel@tonic-gateall := TARGET = all 320Sstevel@tonic-gateclean := TARGET = clean 330Sstevel@tonic-gateclobber := TARGET = clobber 340Sstevel@tonic-gatedebug := TARGET = debug 350Sstevel@tonic-gatedelete := TARGET = delete 360Sstevel@tonic-gateinstall := TARGET = install 370Sstevel@tonic-gatelint := TARGET = lint 380Sstevel@tonic-gate 390Sstevel@tonic-gate# 400Sstevel@tonic-gate# Definitions for header files 410Sstevel@tonic-gate# 420Sstevel@tonic-gate 430Sstevel@tonic-gateHDRS = pool.h 440Sstevel@tonic-gateROOTHDRDIR = $(ROOT)/usr/include 450Sstevel@tonic-gateROOTHDRS = $(HDRS:%=$(ROOTHDRDIR)/%) 460Sstevel@tonic-gateCHECKHDRS = $(HDRS:%.h=common/%.check) 470Sstevel@tonic-gate$(ROOTHDRS) := FILEMODE= 644 480Sstevel@tonic-gate 490Sstevel@tonic-gate$(ROOTHDRDIR)/%: common/% 500Sstevel@tonic-gate $(INS.file) 510Sstevel@tonic-gate 520Sstevel@tonic-gate# 530Sstevel@tonic-gate# Definitions for message catalogue 540Sstevel@tonic-gate# 550Sstevel@tonic-gateMSGFILES = `$(GREP) -l gettext common/*.[ch]` 560Sstevel@tonic-gatePOFILE = libpool.po 570Sstevel@tonic-gate 580Sstevel@tonic-gate# 590Sstevel@tonic-gate# Definitions for DTDs 600Sstevel@tonic-gate# 610Sstevel@tonic-gateDTDS = dtd/rm_pool.dtd.1 620Sstevel@tonic-gateXMLDIR = $(ROOT)/usr/share/lib/xml 630Sstevel@tonic-gateROOTDTDS= $(DTDS:%=$(XMLDIR)/%) 640Sstevel@tonic-gate 650Sstevel@tonic-gate$(ROOTDTDS) := FILEMODE = 444 660Sstevel@tonic-gate 670Sstevel@tonic-gate$(XMLDIR)/%: % 680Sstevel@tonic-gate $(INS.file) 690Sstevel@tonic-gate 700Sstevel@tonic-gate.KEEP_STATE: 710Sstevel@tonic-gate 722522Srafall clean clobber install lint: $(SUBDIRS) 730Sstevel@tonic-gate 740Sstevel@tonic-gate$(POFILE): pofile_MSGFILES 750Sstevel@tonic-gate 760Sstevel@tonic-gateinstall: $(ROOTDTDS) 770Sstevel@tonic-gate 780Sstevel@tonic-gateinstall_h: $(ROOTHDRS) 790Sstevel@tonic-gate 800Sstevel@tonic-gatecheck: $(CHECKHDRS) 810Sstevel@tonic-gate 820Sstevel@tonic-gate_msg: $(MSGDOMAINPOFILE) 830Sstevel@tonic-gate 842522Sraf$(SUBDIRS): FRC 850Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 860Sstevel@tonic-gate 870Sstevel@tonic-gateFRC: 880Sstevel@tonic-gate 890Sstevel@tonic-gateinclude ../Makefile.targ 900Sstevel@tonic-gateinclude ../../Makefile.msg.targ 91