Makefile revision 2
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER START
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# The contents of this file are subject to the terms of the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Common Development and Distribution License (the "License").
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You may not use this file except in compliance with the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# or http://www.opensolaris.org/os/licensing.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# See the License for the specific language governing permissions
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# and limitations under the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# When distributing Covered Code, include this CDDL HEADER in each
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# If applicable, add the following below this CDDL HEADER, with the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# fields enclosed by brackets "[]" replaced with your own identifying
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# information: Portions Copyright [yyyy] [name of copyright owner]
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER END
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinclude ../../Makefile.lib
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinclude ../Makefile.lib
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayFMHDRS = fmd_agent.h
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayHDRDIR = common
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemaySUBDIRS = $(MACH)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay$(BUILD64)SUBDIRS += $(MACH64)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayall := TARGET = all
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayclean := TARGET = clean
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayclobber := TARGET = clobber
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinstall := TARGET = install
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaylint := TARGET = lint
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaystub := TARGET = stub
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaystubinstall := TARGET = stubinstall
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay.KEEP_STATE:
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayall clean clobber lint stub stubinstall: $(SUBDIRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinstall: install_h .WAIT $(SUBDIRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinstall_h: $(ROOTFMHDRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaycheck: $(CHECKHDRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay$(SUBDIRS): FRC
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay @cd $@; pwd; $(MAKE) $(TARGET)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayFRC:
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinclude ../../Makefile.targ
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinclude ../Makefile.targ
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay