17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 524fe0b3bSjmcp# Common Development and Distribution License (the "License"). 624fe0b3bSjmcp# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# cmd/pools/poold/Makefile 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG = poold 287c478bd9Sstevel@tonic-gateOBJS = poold.o 297c478bd9Sstevel@tonic-gateSRCS = $(OBJS:%.o=%.c) 307c478bd9Sstevel@tonic-gate 3126d8ba22SgarypenMANIFEST= poold.xml 3226d8ba22SgarypenSVCMETHOD= svc-poold 3326d8ba22Sgarypen 347c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateJAVA_SUBDIRS = com/sun/solaris/service/exception \ 377c478bd9Sstevel@tonic-gate com/sun/solaris/service/kstat \ 387c478bd9Sstevel@tonic-gate com/sun/solaris/service/locality \ 397c478bd9Sstevel@tonic-gate com/sun/solaris/service/logging \ 407c478bd9Sstevel@tonic-gate com/sun/solaris/service/pools \ 417c478bd9Sstevel@tonic-gate com/sun/solaris/service/timer \ 427c478bd9Sstevel@tonic-gate com/sun/solaris/domain/pools 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateSUBDIRS = libjkstat \ 457c478bd9Sstevel@tonic-gate libjlgrp \ 467c478bd9Sstevel@tonic-gate libjpool \ 477c478bd9Sstevel@tonic-gate libjsyslog 487c478bd9Sstevel@tonic-gate 4926d8ba22SgarypenROOTMANIFESTDIR= $(ROOTSVCSYSTEM) 5026d8ba22Sgarypen 517c478bd9Sstevel@tonic-gateall := TARGET = all 527c478bd9Sstevel@tonic-gateinstall := TARGET = install 537c478bd9Sstevel@tonic-gateclean := TARGET = clean 547c478bd9Sstevel@tonic-gateclobber := TARGET = clobber 557c478bd9Sstevel@tonic-gatelint := TARGET = lint 567c478bd9Sstevel@tonic-gatemsg := TARGET = msg 577c478bd9Sstevel@tonic-gate 5826d8ba22Sgarypen$(ROOTMANIFEST):= FILEMODE= 444 597c478bd9Sstevel@tonic-gateJARFILE = JPool.jar 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gate# JAVA_SUBDIRS and PACKAGEDOCS must be synchronized to ensure 627c478bd9Sstevel@tonic-gate# javadoc documentation is generated for all packages. 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gatePACKAGEDOCS = com.sun.solaris.service.exception \ 657c478bd9Sstevel@tonic-gate com.sun.solaris.service.kstat \ 667c478bd9Sstevel@tonic-gate com.sun.solaris.service.locality \ 677c478bd9Sstevel@tonic-gate com.sun.solaris.service.logging \ 687c478bd9Sstevel@tonic-gate com.sun.solaris.service.pools \ 697c478bd9Sstevel@tonic-gate com.sun.solaris.service.timer \ 707c478bd9Sstevel@tonic-gate com.sun.solaris.domain.pools 717c478bd9Sstevel@tonic-gateDOCDIR = doc 727c478bd9Sstevel@tonic-gateROOTUSRLIBDRP = $(ROOTLIB)/pool 737c478bd9Sstevel@tonic-gateINCS = -I../common \ 747c478bd9Sstevel@tonic-gate -I$(JAVA_ROOT)/include \ 757c478bd9Sstevel@tonic-gate -I$(JAVA_ROOT)/include/solaris 767c478bd9Sstevel@tonic-gateLDLIBS += -lpool -L$(JAVA_ROOT)/jre/lib/$(MACH)/client -ljvm 77*e53cbaa9SRichard PALO# runpath should point to runtime JAVA_HOME 78*e53cbaa9SRichard PALOLDFLAGS += -R$(JAVA_HOME)/jre/lib/$(MACH)/client 797c478bd9Sstevel@tonic-gateLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 807c478bd9Sstevel@tonic-gateLINTLIBS += -L$(ROOTLIB) -lpool 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateCPPFLAGS += $(INCS) 837c478bd9Sstevel@tonic-gateROOTCMDDIR = $(ROOT)/usr/lib/pool 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateCLOBBERFILES += $(JARFILE) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate# 887c478bd9Sstevel@tonic-gate# Definitions for message catalogue 897c478bd9Sstevel@tonic-gate# 907c478bd9Sstevel@tonic-gatePOFILES = $(OBJS:.o=.po) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate# 937c478bd9Sstevel@tonic-gate# Definitions for Java installs 947c478bd9Sstevel@tonic-gate# 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gateJFILES = poold.properties $(JARFILE) 977c478bd9Sstevel@tonic-gateROOTJAVA = $(JFILES:%=$(ROOTUSRLIBDRP)/%) 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate$(ROOTJAVA) := FILEMODE = 444 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateall: $(PROG) $(JAVA_SUBDIRS) $(JARFILE) \ 1027c478bd9Sstevel@tonic-gate .WAIT $(SUBDIRS) 1037c478bd9Sstevel@tonic-gate 104b6805bf7SGordon Rossclean : $(JAVA_SUBDIRS) $(SUBDIRS) clean_local 105b6805bf7SGordon Rossclean_local: 106b6805bf7SGordon Ross $(RM) $(OBJS) 107b6805bf7SGordon Ross 108b6805bf7SGordon Rossclobber : $(JAVA_SUBDIRS) $(SUBDIRS) clobber_local 109b6805bf7SGordon Rossclobber_local: clean_local 110b6805bf7SGordon Ross $(RM) $(CLOBBERFILES) 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gatelint: $(SUBDIRS) 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gatemsg: $(POFILES) 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gateinstall: $(ROOTCMD) $(JAVA_SUBDIRS) $(JARFILE) \ 11726d8ba22Sgarypen .WAIT $(SUBDIRS) $(ROOTJAVA) $(ROOTMANIFEST) \ 11826d8ba22Sgarypen $(ROOTSVCMETHOD) 11926d8ba22Sgarypen 12026d8ba22Sgarypencheck: $(CHKMANIFEST) 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate$(JAVA_SUBDIRS): FRC 1237c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1247c478bd9Sstevel@tonic-gate if [ "$(TARGET)" != "clean" ] && [ "$(TARGET)" != "clobber" ]; \ 1257c478bd9Sstevel@tonic-gate then \ 1267c478bd9Sstevel@tonic-gate if [ ! -f $(JARFILE) ]; \ 1277c478bd9Sstevel@tonic-gate then \ 1287c478bd9Sstevel@tonic-gate $(JAR) -cf $(JARFILE) $@/*class; \ 1297c478bd9Sstevel@tonic-gate else \ 1307c478bd9Sstevel@tonic-gate $(JAR) -uf $(JARFILE) $@/*class; \ 1317c478bd9Sstevel@tonic-gate fi \ 1327c478bd9Sstevel@tonic-gate fi 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC 1357c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gatedoc: all 1387c478bd9Sstevel@tonic-gate $(JAVADOC) -private -classpath $(JARFILE): -sourcepath . \ 1397c478bd9Sstevel@tonic-gate -source 1.4 -d $(DOCDIR) $(PACKAGEDOCS) 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) 1427c478bd9Sstevel@tonic-gate $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 1437c478bd9Sstevel@tonic-gate $(POST_PROCESS) 1447c478bd9Sstevel@tonic-gate 1457c478bd9Sstevel@tonic-gate$(ROOTUSRLIBDRP)/%: % 1467c478bd9Sstevel@tonic-gate $(INS.file) 1477c478bd9Sstevel@tonic-gate 1487c478bd9Sstevel@tonic-gateFRC: 1497c478bd9Sstevel@tonic-gate 1507c478bd9Sstevel@tonic-gatelint: 1517c478bd9Sstevel@tonic-gate $(LINT.c) $(PROG).c $(LINTLIBS) 1527c478bd9Sstevel@tonic-gate 1537c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.targ 154