252N/A#
252N/A# Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
252N/A#
252N/A# U.S. Government Rights - Commercial software. Government users are subject
252N/A# to the Sun Microsystems, Inc. standard license agreement and applicable
252N/A# provisions of the FAR and its supplements.
252N/A#
252N/A# This distribution may include materials developed by third parties. Sun,
252N/A# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
252N/A# trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
252N/A#
252N/A#
252N/A
252N/A#
252N/A#
252N/A# Makefile to generate libhealthMonitor.so
252N/A#
252N/A# usage:
252N/A# "make" : generate library for 64bit / sparc
252N/A# "make ARCH=32" : generate library for 32bit / sparc
252N/A# "make ARCH=32 MACH=x86" : generate library for 32bit / x86
252N/A# "make ARCH=amd64" : generate 64bit AMD64 libraries
252N/A# "make clean" : remove *.o , *.so
252N/A#
252N/A
252N/A
252N/AMARCH=$(ARCH)
252N/ALDFLAGS_sparcv9=-m64 -I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS_32=-I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS_amd64=-m64 -I$(ROOT)$(CFGPREFIX)/include -I.
252N/ALDFLAGS=$(LDFLAGS_$(MARCH))
252N/A
252N/ACFLAGS_32=-Kpic
252N/ACFLAGS_sparcv9=-Kpic
252N/ACFLAGS_amd64=-Kpic
252N/ACFLAGS=$(CFLAGS_$(MARCH))
252N/A
252N/ALDLIBS_sparcv9= -L/usr/lib/sparcv9 -l kstat
252N/ALDLIBS_32= -l kstat
252N/ALDLIBS_amd64= -L /usr/lib/amd64 -lkstat
252N/ALDLIBS=$(LDLIBS_$(MARCH))
252N/A
252N/A
252N/ATARGET= libhealthMonitor.so
252N/APROG= libhealthMonitor.so
252N/ASRCS= dsr.c kr_iostat.c kr_memory.c kr_nfsstat.c kr_vmstat.c healthMonitor.c
252N/AOBJS = $(SRCS:.c=.o)
252N/A
252N/Aall: $(PROG)
252N/A$(PROG): $(OBJS)
252N/A $(CC) $(LDFLAGS) $(LDLIBS) -G -o $@ $(OBJS)
252N/A.c.o:
252N/A $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
252N/Aclean:
252N/A rm -f *.o *.so
252N/A
252N/Ainstall:
252N/A /usr/bin/cp health_monitor.conf $(ROOT)/etc/net-snmp/snmp ; \