Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# cmd/pools/poold/Makefile
0N/A
0N/APROG = poold
0N/AOBJS = poold.o
0N/ASRCS = $(OBJS:%.o=%.c)
0N/A
0N/AMANIFEST= poold.xml
0N/ASVCMETHOD= svc-poold
0N/A
0N/Ainclude $(SRC)/cmd/Makefile.cmd
0N/A
0N/AJAVA_SUBDIRS = com/sun/solaris/service/exception \
0N/A com/sun/solaris/service/kstat \
0N/A com/sun/solaris/service/locality \
0N/A com/sun/solaris/service/logging \
0N/A com/sun/solaris/service/pools \
0N/A com/sun/solaris/service/timer \
0N/A com/sun/solaris/domain/pools
0N/A
0N/ASUBDIRS = libjkstat \
0N/A libjlgrp \
0N/A libjpool \
0N/A libjsyslog
0N/A
0N/AROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
0N/A
0N/Aall := TARGET = all
0N/Ainstall := TARGET = install
0N/Aclean := TARGET = clean
0N/Aclobber := TARGET = clobber
0N/Alint := TARGET = lint
0N/Amsg := TARGET = msg
0N/A
0N/A$(ROOTMANIFEST):= FILEMODE= 444
0N/AJARFILE = JPool.jar
0N/A
0N/A# JAVA_SUBDIRS and PACKAGEDOCS must be synchronized to ensure
0N/A# javadoc documentation is generated for all packages.
0N/A
0N/APACKAGEDOCS = com.sun.solaris.service.exception \
0N/A com.sun.solaris.service.kstat \
0N/A com.sun.solaris.service.locality \
0N/A com.sun.solaris.service.logging \
0N/A com.sun.solaris.service.pools \
0N/A com.sun.solaris.service.timer \
0N/A com.sun.solaris.domain.pools
0N/ADOCDIR = doc
0N/AROOTUSRLIBDRP = $(ROOTLIB)/pool
0N/AINCS = -I../common \
0N/A -I$(JAVA_ROOT)/include \
0N/A -I$(JAVA_ROOT)/include/solaris
0N/ALDLIBS += -lpool -L$(JAVA_ROOT)/jre/lib/$(MACH)/client -ljvm
0N/ALDFLAGS += -R$(JAVA_ROOT)/jre/lib/$(MACH)/client
0N/ALINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
0N/ALINTLIBS += -L$(ROOTLIB) -lpool
0N/A
0N/ACPPFLAGS += $(INCS)
0N/AROOTCMDDIR = $(ROOT)/usr/lib/pool
0N/A
0N/ACLOBBERFILES += $(JARFILE)
0N/A
0N/A#
0N/A# Definitions for message catalogue
0N/A#
0N/APOFILES = $(OBJS:.o=.po)
0N/A
0N/A#
0N/A# Definitions for Java installs
0N/A#
0N/A
0N/AJFILES = poold.properties $(JARFILE)
0N/AROOTJAVA = $(JFILES:%=$(ROOTUSRLIBDRP)/%)
0N/A
0N/A$(ROOTJAVA) := FILEMODE = 444
0N/A
0N/Aall: $(PROG) $(JAVA_SUBDIRS) $(JARFILE) \
0N/A .WAIT $(SUBDIRS)
0N/A
0N/Aclean : $(JAVA_SUBDIRS) $(SUBDIRS)
0N/A -$(RM) $(OBJS) $(POFILES)
0N/A
0N/Alint: $(SUBDIRS)
0N/A
0N/Amsg: $(POFILES)
0N/A
0N/Ainstall: $(ROOTCMD) $(JAVA_SUBDIRS) $(JARFILE) \
0N/A .WAIT $(SUBDIRS) $(ROOTJAVA) $(ROOTMANIFEST) \
0N/A $(ROOTSVCMETHOD)
0N/A
0N/Acheck: $(CHKMANIFEST)
0N/A
0N/A$(JAVA_SUBDIRS): FRC
0N/A @cd $@; pwd; $(MAKE) $(TARGET)
0N/A if [ "$(TARGET)" != "clean" ] && [ "$(TARGET)" != "clobber" ]; \
0N/A then \
0N/A if [ ! -f $(JARFILE) ]; \
0N/A then \
0N/A $(JAR) -cf $(JARFILE) $@/*class; \
0N/A else \
0N/A $(JAR) -uf $(JARFILE) $@/*class; \
0N/A fi \
0N/A fi
0N/A
0N/A$(SUBDIRS): FRC
0N/A @cd $@; pwd; $(MAKE) $(TARGET)
0N/A
0N/Adoc: all
0N/A $(JAVADOC) -private -classpath $(JARFILE): -sourcepath . \
0N/A -source 1.4 -d $(DOCDIR) $(PACKAGEDOCS)
0N/A
0N/A$(PROG): $(OBJS)
0N/A $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
0N/A $(POST_PROCESS)
0N/A
0N/A$(ROOTUSRLIBDRP)/%: %
0N/A $(INS.file)
0N/A
0N/AFRC:
0N/A
0N/Alint:
0N/A $(LINT.c) $(PROG).c $(LINTLIBS)
0N/A
0N/Ainclude $(SRC)/cmd/Makefile.targ
0N/A