Makefile revision 6e93b38e61e2cf3c36f56dc2dac897f37b908dfe
147N/A#
147N/A# CDDL HEADER START
147N/A#
147N/A# The contents of this file are subject to the terms of the
147N/A# Common Development and Distribution License (the "License").
147N/A# You may not use this file except in compliance with the License.
147N/A#
147N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147N/A# or http://www.opensolaris.org/os/licensing.
147N/A# See the License for the specific language governing permissions
147N/A# and limitations under the License.
147N/A#
147N/A# When distributing Covered Code, include this CDDL HEADER in each
147N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147N/A# If applicable, add the following below this CDDL HEADER, with the
147N/A# fields enclosed by brackets "[]" replaced with your own identifying
147N/A# information: Portions Copyright [yyyy] [name of copyright owner]
147N/A#
147N/A# CDDL HEADER END
147N/A#
1938N/A
147N/A#
147N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
147N/A# Use is subject to license terms.
147N/A#
147N/A# ident "%Z%%M% %I% %E% SMI"
147N/A
147N/A# cmd/agents/Makefile
147N/A
844N/A#########################################################
844N/A#
147N/A# Makefile for the Solstice Enterprise Agent
1258N/A#
147N/A# Targets:
147N/A# all - compile everything
147N/A# install - create installation directories and copy files
147N/A# package - create packages in installation directory
147N/A# clean - remove all .o's, binaries, libraries, detritus
147N/A# clobber - make clean plus removing sources. Forces sccs get
147N/A# lint - run lint on the source files
206N/A#
206N/A#########################################################
206N/A
206N/A# OPTIONAL_INCLUDE_FILE:sh = /bin/sh misc.sh ../Makefile.cmd
806N/A# include $(OPTIONAL_INCLUDE_FILE)
806N/A
806N/Ainclude $(SRC)/cmd/Makefile.cmd
806N/A
806N/A# Use $TARG_SYS for OS dependent variables
147N/A#
147N/A# TARG_SYS gets defined as SVR4 or SUNOS
147N/A#
806N/ATARG_SYS:sh = \
206N/A ( \
147N/A UNAME=` uname -r 2>/dev/null` ||.; \
147N/A case $UNAME in \
147N/A '') echo SUNOS;; \
147N/A 4.*) echo SUNOS;; \
147N/A 5.*) echo SVR4;; \
147N/A A.09.*) echo HPUX9;; \
1938N/A *) echo SVR4;; \
1938N/A esac \
147N/A )
147N/A
181N/AROOTDIR : sh=echo ${ROOTDIR:-"`pwd`"}
147N/APKGLOC : sh=echo ${PKGLOC:-'${ROOTDIR}/PACKAGES.`uname -p`'}
181N/A
147N/A$(CLOSED_BUILD)AGENTS= $(CLOSED)/cmd/agents/agents
147N/A
147N/Aall := TARGET = all
147N/Aclean := TARGET = clean
147N/Ainstall := TARGET = install
lint := TARGET = lint
realclobber := TARGET = realclobber
SUBDIRS = snmp $(AGENTS)
#
# all
#
all: $(SUBDIRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
DIRMODE= 0755
OWNER= root
GROUP= sys
ROOTVAR= $(ROOT)/var
ROOTDIRS= $(ROOTETC)/snmp \
$(ROOTETC)/snmp/conf \
$(ROOTLIB)/snmp \
$(ROOTBIN) \
$(ROOTVAR)/snmp \
$(ROOTVAR)/snmp/mib
$(ROOTDIRS):
$(INS.dir)
#
# Need a "make install" target for integrating into Solaris 2.6.
#
install: $(ROOTDIRS) $(SUBDIRS)
#
# clean
#
clean: $(SUBDIRS)
# Need a lint target for Solaris2.6 integration.
lint: $(SUBDIRS)
# We need a real make clobber with sccs clean.
realclobber: $(SUBDIRS)
include $(SRC)/cmd/Makefile.targ