252N/A#
252N/A# Copyright (c) 2008, 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#
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 for sun directory in SMA
252N/A#
252N/A# $Log: Makefile,v $
252N/A# Revision 1.10 2004/01/09 14:04:14 rr144420
252N/A# 4974843 - directory change per LSARC
252N/A#
252N/A# Revision 1.9 2003/12/11 16:20:17 rr144420
252N/A# 4964336 - eliminate sdk_buildrev
252N/A#
252N/A# Revision 1.8 2003/12/05 15:04:26 rr144420
252N/A# 4964325 - Sun: pass ARCH=isa to make install
252N/A#
252N/A# Revision 1.7 2003/11/17 17:52:11 pcarroll
252N/A# 4953668 - Sun: updated masfcnv migration script needs to be added to pkg
252N/A#
252N/A# Revision 1.6 2003/11/11 22:49:24 pcarroll
252N/A# 4952508 - Sun: need to add a script to SMA pkgs for Enchilada migration
252N/A#
252N/A# Revision 1.5 2003/10/24 11:45:48 rr144420
252N/A# 4943260 - add sdk_buildrev
252N/A#
252N/A# Revision 1.4 2003/08/21 14:41:58 rr144420
252N/A# 4908816 - further makefile changes to install into correct lib
252N/A#
252N/A# Revision 1.3 2003/08/12 21:14:34 rr144420
252N/A# 4895376 - correct Sun copyright statements. Cannot use (c), and must use Copyright Copyright in makefiles
252N/A#
252N/A# Revision 1.2 2003/08/01 16:32:12 rr144420
252N/A# more of Paul's changes for packaging
252N/A#
252N/A# Revision 1.1 2003/07/23 15:53:28 rr144420
252N/A# new makefiles for building sun directory
252N/A#
252N/A#
252N/ASUBDIRS = agent
252N/ABUILDREV_SRCS = sma_buildrev.c
252N/ABUILDREV_PROGS = $(BUILDREV_SRCS:.c=)
252N/ASCRIPT_PROG = masfcnv \
252N/A masfd \
252N/A snmpd.conf
252N/A
252N/Aall: subdirs buildrevs
252N/A
252N/Abuildrevs:$(BUILDREV_PROGS)
252N/A.c:
252N/A $(CC) $< -o $@
252N/A
252N/Asubdirs:
252N/A echo "SUBDIRS: $(MAKE) CFGPREFIX=$(CFGPREFIX) CFGLIB64=$(CFGLIB64) CFGLIB=$(CFGLIB) CC=$(CC) DEBUG=$(DEBUG) ARCH=$(ARCH)" ;
252N/A @if test "$(SUBDIRS)" != ""; then \
252N/A it="$(SUBDIRS)" ; \
252N/A for i in $$it ; do \
252N/A echo "making all in `pwd`/$$i"; \
252N/A ( cd $$i ; $(MAKE) CFGPREFIX=$(CFGPREFIX) CFGLIB64=$(CFGLIB64) CFGLIB=$(CFGLIB) CC=$(CC) DEBUG=$(DEBUG) ARCH=$(ARCH) ) ; \
252N/A if test $$? != 0 ; then \
252N/A exit 1 ; \
252N/A fi \
252N/A done \
252N/A fi
252N/A
252N/Asubdirs_install:
252N/A @if test "$(SUBDIRS)" != ""; then \
252N/A it="$(SUBDIRS)" ; \
252N/A for i in $$it ; do \
252N/A echo "making install in `pwd`/$$i"; \
252N/A ( cd $$i ; $(MAKE) CFGPREFIX=$(CFGPREFIX) CFGLIB64=$(CFGLIB64) CFGLIB=$(CFGLIB) install ARCH=$(ARCH) ) ; \
252N/A if test $$? != 0 ; then \
252N/A exit 1 ; \
252N/A fi \
252N/A done \
252N/A fi
252N/A
252N/Ainstall: subdirs_install
252N/A
252N/Aforce:
252N/A# dummy target to force rebuilding