Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync#
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# CDDL HEADER START
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# The contents of this file are subject to the terms of the
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# Common Development and Distribution License (the "License").
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# You may not use this file except in compliance with the License.
7eaaa8a4480370b82ef3735994f986f338fb4df2vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# or http://www.opensolaris.org/os/licensing.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# See the License for the specific language governing permissions
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# and limitations under the License.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# When distributing Covered Code, include this CDDL HEADER in each
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# If applicable, add the following below this CDDL HEADER, with the
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# CDDL HEADER END
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Use is subject to license terms.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# ident "%Z%%M% %I% %E% SMI"
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# cmd/agents/Makefile
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#########################################################
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Makefile for the Solstice Enterprise Agent
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Targets:
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# all - compile everything
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# install - create installation directories and copy files
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# package - create packages in installation directory
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# clean - remove all intermediate files
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# clobber - make clean plus removing deliverable files
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# lint - run lint on the source files
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#########################################################
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# OPTIONAL_INCLUDE_FILE:sh = /bin/sh misc.sh ../Makefile.cmd
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# include $(OPTIONAL_INCLUDE_FILE)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncinclude $(SRC)/cmd/Makefile.cmd
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Use $TARG_SYS for OS dependent variables
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# TARG_SYS gets defined as SVR4 or SUNOS
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncTARG_SYS:sh = \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync ( \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync UNAME=` uname -r 2>/dev/null` ||.; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync case $UNAME in \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync '') echo SUNOS;; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync 4.*) echo SUNOS;; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync 5.*) echo SVR4;; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync A.09.*) echo HPUX9;; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync *) echo SVR4;; \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync esac \
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync )
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncROOTDIR : sh=echo ${ROOTDIR:-"`pwd`"}
058e9c6d97c5306126f83d934148c658804f1d6cvboxsyncPKGLOC : sh=echo ${PKGLOC:-'${ROOTDIR}/PACKAGES.`uname -p`'}
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync$(CLOSED_BUILD)AGENTS= $(CLOSED)/cmd/agents/agents
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncall := TARGET = all
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncclean := TARGET = clean
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncinstall := TARGET = install
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsynclint := TARGET = lint
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncclobber := TARGET = clobber
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncSUBDIRS = snmp $(AGENTS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# all
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncall: $(SUBDIRS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync$(SUBDIRS): FRC
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync @cd $@; pwd; $(MAKE) $(TARGET)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncFRC:
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncDIRMODE= 0755
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncOWNER= root
e91f2a55ed5a30342ec79ce273f3f4bad8283336vboxsyncGROUP= sys
40b7f0c2d3f97e0c6171f34f96ec3e05eea44d72vboxsyncROOTVAR= $(ROOT)/var
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
78df3a3ca20e014e0d9eb72cd7bb72711255d5f6vboxsyncROOTDIRS= $(ROOTETC)/snmp \
e43535ace2499e7f8ef8822186047979bd58d464vboxsync $(ROOTETC)/snmp/conf \
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync $(ROOTLIB)/snmp \
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync $(ROOTBIN) \
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync $(ROOTVAR)/snmp \
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync $(ROOTVAR)/snmp/mib
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync$(ROOTDIRS):
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync $(INS.dir)
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync#
b6cc138b99f86c2d29ecfe32cecf9f68ba5e73afvboxsync# Need a "make install" target for integrating into Solaris 2.6.
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync#
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsyncinstall: $(ROOTDIRS) $(SUBDIRS)
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync#
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync# clean
e91f2a55ed5a30342ec79ce273f3f4bad8283336vboxsync#
32bf313cd8c0de52ef27b486f15945c55c94b038vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncclean: $(SUBDIRS)
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncclobber: $(SUBDIRS)
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# Need a lint target for Solaris2.6 integration.
e91f2a55ed5a30342ec79ce273f3f4bad8283336vboxsync
bec9452711598b56e648192360cab88a6c3535e8vboxsynclint: $(SUBDIRS)
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncinclude $(SRC)/cmd/Makefile.targ
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync