Cross Reference: /illumos-gate/usr/src/cmd/agents/Makefile
Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License, Version 1.0 only
1N/A# (the "License"). You may not use this file except in compliance
1N/A# with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright (c) 1998, 2001 by Sun Microsystems, Inc.
1N/A# All rights reserved.
1N/A#
1N/A#ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A# cmd/agents/Makefile
1N/A
1N/A#########################################################
1N/A#
1N/A# Makefile for the Solstice Enterprise Agent
1N/A#
1N/A# Targets:
1N/A# all - compile everything
1N/A# install - create installation directories and copy files
1N/A# package - create packages in installation directory
1N/A# clean - remove all .o's, binaries, libraries, detritus
1N/A# clobber - make clean plus removing sources. Forces sccs get
1N/A# lint - run lint on the source files
1N/A#
1N/A#########################################################
1N/A
1N/A# OPTIONAL_INCLUDE_FILE:sh = /bin/sh misc.sh ../Makefile.cmd
1N/A# include $(OPTIONAL_INCLUDE_FILE)
1N/A
1N/Ainclude $(SRC)/cmd/Makefile.cmd
1N/A
1N/A# Use $TARG_SYS for OS dependent variables
1N/A#
1N/A# TARG_SYS gets defined as SVR4 or SUNOS
1N/A#
1N/ATARG_SYS:sh = \
1N/A ( \
1N/A UNAME=` uname -r 2>/dev/null` ||.; \
1N/A case $UNAME in \
1N/A '') echo SUNOS;; \
1N/A 4.*) echo SUNOS;; \
1N/A 5.*) echo SVR4;; \
1N/A A.09.*) echo HPUX9;; \
1N/A *) echo SVR4;; \
1N/A esac \
1N/A )
1N/A
1N/AROOTDIR : sh=echo ${ROOTDIR:-"`pwd`"}
1N/APKGLOC : sh=echo ${PKGLOC:-'${ROOTDIR}/PACKAGES.`uname -p`'}
1N/A
1N/A#
1N/A# all
1N/A#
1N/A
1N/Aall:
1N/A cd snmp; $(MAKE) all
1N/A cd dmi2.0; $(MAKE) all
1N/A cd agents; $(MAKE) all
1N/A
1N/ADIRMODE= 0755
1N/AOWNER= root
1N/AGROUP= sys
1N/AROOTVAR= $(ROOT)/var
1N/A
1N/AROOTDIRS= $(ROOTETC)/dmi \
1N/A $(ROOTETC)/dmi/ciagent \
1N/A $(ROOTETC)/dmi/conf \
1N/A $(ROOTETC)/snmp \
1N/A $(ROOTETC)/snmp/conf \
1N/A $(ROOTLIB)/dmi \
1N/A $(ROOTLIB)/snmp \
1N/A $(ROOTBIN) \
1N/A $(ROOTVAR)/dmi \
1N/A $(ROOTVAR)/dmi/db \
1N/A $(ROOTVAR)/dmi/map \
1N/A $(ROOTVAR)/dmi/mif \
1N/A $(ROOTVAR)/snmp \
1N/A $(ROOTVAR)/snmp/mib
1N/A
1N/A$(ROOTDIRS):
1N/A $(INS.dir)
1N/A
1N/A#
1N/A# Need a "make install" target for integrating into Solaris 2.6.
1N/A#
1N/A
1N/Ainstall: $(ROOTDIRS)
1N/A cd snmp; $(MAKE) install
1N/A cd dmi2.0; $(MAKE) install
cd agents; $(MAKE) install
#
# clean
#
clean:
cd snmp; $(MAKE) clean
cd dmi2.0; $(MAKE) clean
cd agents; $(MAKE) clean
# Need a lint target for Solaris2.6 integration.
lint:
cd snmp; $(MAKE) lint
cd dmi2.0; $(MAKE) lint
cd agents; $(MAKE) lint
# We need a real make clobber with sccs clean.
realclobber:
cd snmp; $(MAKE) realclobber
cd dmi2.0; $(MAKE) realclobber
cd agents; $(MAKE) realclobber
package:
cd ../../pkgdefs; pwd; $(MAKE) awk_pkginfo
cd ../../pkgdefs/SUNWmibii; pwd; $(MAKE) install
cd ../../pkgdefs/SUNWsacom; pwd; $(MAKE) install
cd ../../pkgdefs/SUNWsadmi; pwd; $(MAKE) install
cd ../../pkgdefs/SUNWsasnm; pwd; $(MAKE) install
include $(SRC)/cmd/Makefile.targ