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 51706Swesolows# Common Development and Distribution License (the "License"). 61706Swesolows# 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# 211706Swesolows 220Sstevel@tonic-gate# 23*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 241167Skupfer# Use is subject to license terms. 250Sstevel@tonic-gate# 260Sstevel@tonic-gate 270Sstevel@tonic-gate# cmd/agents/Makefile 280Sstevel@tonic-gate 290Sstevel@tonic-gate######################################################### 300Sstevel@tonic-gate# 310Sstevel@tonic-gate# Makefile for the Solstice Enterprise Agent 320Sstevel@tonic-gate# 330Sstevel@tonic-gate# Targets: 340Sstevel@tonic-gate# all - compile everything 350Sstevel@tonic-gate# install - create installation directories and copy files 360Sstevel@tonic-gate# package - create packages in installation directory 374604Sstevel# clean - remove all intermediate files 384604Sstevel# clobber - make clean plus removing deliverable files 390Sstevel@tonic-gate# lint - run lint on the source files 400Sstevel@tonic-gate# 410Sstevel@tonic-gate######################################################### 420Sstevel@tonic-gate 430Sstevel@tonic-gate# OPTIONAL_INCLUDE_FILE:sh = /bin/sh misc.sh ../Makefile.cmd 440Sstevel@tonic-gate# include $(OPTIONAL_INCLUDE_FILE) 450Sstevel@tonic-gate 460Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.cmd 470Sstevel@tonic-gate 480Sstevel@tonic-gate# Use $TARG_SYS for OS dependent variables 490Sstevel@tonic-gate# 500Sstevel@tonic-gate# TARG_SYS gets defined as SVR4 or SUNOS 510Sstevel@tonic-gate# 520Sstevel@tonic-gateTARG_SYS:sh = \ 530Sstevel@tonic-gate ( \ 540Sstevel@tonic-gate UNAME=` uname -r 2>/dev/null` ||.; \ 550Sstevel@tonic-gate case $UNAME in \ 560Sstevel@tonic-gate '') echo SUNOS;; \ 570Sstevel@tonic-gate 4.*) echo SUNOS;; \ 580Sstevel@tonic-gate 5.*) echo SVR4;; \ 590Sstevel@tonic-gate A.09.*) echo HPUX9;; \ 600Sstevel@tonic-gate *) echo SVR4;; \ 610Sstevel@tonic-gate esac \ 620Sstevel@tonic-gate ) 630Sstevel@tonic-gate 640Sstevel@tonic-gateROOTDIR : sh=echo ${ROOTDIR:-"`pwd`"} 650Sstevel@tonic-gatePKGLOC : sh=echo ${PKGLOC:-'${ROOTDIR}/PACKAGES.`uname -p`'} 660Sstevel@tonic-gate 671167Skupfer$(CLOSED_BUILD)AGENTS= $(CLOSED)/cmd/agents/agents 681167Skupfer 691167Skupferall := TARGET = all 701167Skupferclean := TARGET = clean 711167Skupferinstall := TARGET = install 721167Skupferlint := TARGET = lint 734604Sstevelclobber := TARGET = clobber 741167Skupfer 751706SwesolowsSUBDIRS = snmp $(AGENTS) 761167Skupfer 770Sstevel@tonic-gate# 780Sstevel@tonic-gate# all 790Sstevel@tonic-gate# 800Sstevel@tonic-gate 811167Skupferall: $(SUBDIRS) 821167Skupfer 831167Skupfer$(SUBDIRS): FRC 841167Skupfer @cd $@; pwd; $(MAKE) $(TARGET) 851167Skupfer 861167SkupferFRC: 870Sstevel@tonic-gate 880Sstevel@tonic-gateDIRMODE= 0755 890Sstevel@tonic-gateROOTVAR= $(ROOT)/var 900Sstevel@tonic-gate 911706SwesolowsROOTDIRS= $(ROOTETC)/snmp \ 920Sstevel@tonic-gate $(ROOTETC)/snmp/conf \ 930Sstevel@tonic-gate $(ROOTLIB)/snmp \ 940Sstevel@tonic-gate $(ROOTBIN) \ 950Sstevel@tonic-gate $(ROOTVAR)/snmp \ 960Sstevel@tonic-gate $(ROOTVAR)/snmp/mib 970Sstevel@tonic-gate 980Sstevel@tonic-gate$(ROOTDIRS): 990Sstevel@tonic-gate $(INS.dir) 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate# 1020Sstevel@tonic-gate# Need a "make install" target for integrating into Solaris 2.6. 1030Sstevel@tonic-gate# 1040Sstevel@tonic-gate 1051167Skupferinstall: $(ROOTDIRS) $(SUBDIRS) 1060Sstevel@tonic-gate 1070Sstevel@tonic-gate# 1080Sstevel@tonic-gate# clean 1090Sstevel@tonic-gate# 1100Sstevel@tonic-gate 1111167Skupferclean: $(SUBDIRS) 1120Sstevel@tonic-gate 1134604Sstevelclobber: $(SUBDIRS) 1144604Sstevel 1150Sstevel@tonic-gate# Need a lint target for Solaris2.6 integration. 1160Sstevel@tonic-gate 1171167Skupferlint: $(SUBDIRS) 1180Sstevel@tonic-gate 1190Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.targ 120