Makefile revision 252
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# U.S. Government Rights - Commercial software. Government users are subject
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# to the Sun Microsystems, Inc. standard license agreement and applicable
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# provisions of the FAR and its supplements.
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# This distribution may include materials developed by third parties. Sun,
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Makefile for sun/agent directory in SMA
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# $Log: Makefile,v $
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Revision 1.5 2003/09/18 11:39:08 rr144420
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# 4922904 - include sea directory in makefile
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Revision 1.4 2003/08/21 14:42:00 rr144420
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# 4908816 - further makefile changes to install into correct lib
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Revision 1.3 2003/08/12 21:14:36 rr144420
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# 4895376 - correct Sun copyright statements. Cannot use (c), and must use Copyright Copyright in makefiles
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Revision 1.2 2003/08/01 16:32:16 rr144420
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# more of Paul's changes for packaging
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Revision 1.1 2003/07/23 15:53:29 rr144420
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# new makefiles for building sun directory
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano#
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcanoSUBDIRS = modules mibs
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcanoall:
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano @if test "$(SUBDIRS)" != ""; then \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano it="$(SUBDIRS)" ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano for i in $$it ; do \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano echo "making all in `pwd`/$$i"; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano echo "SUBDIRS2: $(MAKE) CC=$(CC) DEBUG=$(DEBUG) ARCH=$(ARCH)" ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano ( cd $$i ; $(MAKE) CC=$(CC) DEBUG=$(DEBUG) ARCH=$(ARCH) ROOT=$(ROOT) ) ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano if test $$? != 0 ; then \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano exit 1 ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano fi \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano done \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano fi
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcanoinstall:
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano @if test "$(SUBDIRS)" != ""; then \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano it="$(SUBDIRS)" ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano for i in $$it ; do \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano echo "making install in `pwd`/$$i"; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano ( cd $$i ; $(MAKE) install ARCH=$(ARCH) ) ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano if test $$? != 0 ; then \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano exit 1 ; \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano fi \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano done \
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano fi
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano