1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27# cmd/agents/Makefile 28 29######################################################### 30# 31# Makefile for the Solstice Enterprise Agent 32# 33# Targets: 34# all - compile everything 35# install - create installation directories and copy files 36# package - create packages in installation directory 37# clean - remove all intermediate files 38# clobber - make clean plus removing deliverable files 39# lint - run lint on the source files 40# 41######################################################### 42 43# OPTIONAL_INCLUDE_FILE:sh = /bin/sh misc.sh ../Makefile.cmd 44# include $(OPTIONAL_INCLUDE_FILE) 45 46include $(SRC)/cmd/Makefile.cmd 47 48# Use $TARG_SYS for OS dependent variables 49# 50# TARG_SYS gets defined as SVR4 or SUNOS 51# 52TARG_SYS:sh = \ 53 ( \ 54 UNAME=` uname -r 2>/dev/null` ||.; \ 55 case $UNAME in \ 56 '') echo SUNOS;; \ 57 4.*) echo SUNOS;; \ 58 5.*) echo SVR4;; \ 59 A.09.*) echo HPUX9;; \ 60 *) echo SVR4;; \ 61 esac \ 62 ) 63 64ROOTDIR : sh=echo ${ROOTDIR:-"`pwd`"} 65PKGLOC : sh=echo ${PKGLOC:-'${ROOTDIR}/PACKAGES.`uname -p`'} 66 67$(CLOSED_BUILD)AGENTS= $(CLOSED)/cmd/agents/agents 68 69all := TARGET = all 70clean := TARGET = clean 71install := TARGET = install 72lint := TARGET = lint 73clobber := TARGET = clobber 74 75SUBDIRS = snmp $(AGENTS) 76 77# 78# all 79# 80 81all: $(SUBDIRS) 82 83$(SUBDIRS): FRC 84 @cd $@; pwd; $(MAKE) $(TARGET) 85 86FRC: 87 88DIRMODE= 0755 89ROOTVAR= $(ROOT)/var 90 91ROOTDIRS= $(ROOTETC)/snmp \ 92 $(ROOTETC)/snmp/conf \ 93 $(ROOTLIB)/snmp \ 94 $(ROOTBIN) \ 95 $(ROOTVAR)/snmp \ 96 $(ROOTVAR)/snmp/mib 97 98$(ROOTDIRS): 99 $(INS.dir) 100 101# 102# Need a "make install" target for integrating into Solaris 2.6. 103# 104 105install: $(ROOTDIRS) $(SUBDIRS) 106 107# 108# clean 109# 110 111clean: $(SUBDIRS) 112 113clobber: $(SUBDIRS) 114 115# Need a lint target for Solaris2.6 integration. 116 117lint: $(SUBDIRS) 118 119include $(SRC)/cmd/Makefile.targ 120