Makefile revision 3893cb7fe5bfa1c9a4f7954517a917367f6cf081
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# The contents of this file are subject to the terms of the
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# Common Development and Distribution License (the "License").
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# You may not use this file except in compliance with the License.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson# See the License for the specific language governing permissions
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# and limitations under the License.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
b2ca1f1bd04a779f15e12e0b2bee6fa95e512f89Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
9dc499f133042bb8ab6e2089db708be0d13733bfBrian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
b2ca1f1bd04a779f15e12e0b2bee6fa95e512f89Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
1cb5d53b09cded8298285fdcdcc6a261f2b47afbBrian Wellington#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# CDDL HEADER END
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson# Use is subject to license terms.
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson#ident "%Z%%M% %I% %E% SMI"
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson
1b855974958ebca91882c4b59f66c48dd5784b87Andreas GustafssonMODULE = libumem.so
1b855974958ebca91882c4b59f66c48dd5784b87Andreas GustafssonMDBTGT = proc
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson
1b855974958ebca91882c4b59f66c48dd5784b87Andreas GustafssonMODSRCS_DIR = ../../../common/modules/genunix
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas GustafssonMODSRCS = \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson kgrep.c \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson leaky.c \
95b6b97ae0942ceb8244693c3d68d2b396af9960Andreas Gustafsson leaky_subr.c \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson libumem.c \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson misc.c \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson proc_kludges.c \
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson umem.c
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafssoninclude ../../../../Makefile.cmd
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafssoninclude ../../../../Makefile.cmd.64
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas Gustafsson
c81bf797a812236e4a6d13a6473bc029d7ce280aAndreas GustafssonCPPFLAGS += -I$(SRC)/lib/libumem/common
1b855974958ebca91882c4b59f66c48dd5784b87Andreas GustafssonCPPFLAGS += -I$(MODSRCS_DIR)
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafssoninclude ../../Makefile.amd64
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafssoninclude ../../../Makefile.module
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson%.o: $(MODSRCS_DIR)/%.c
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson $(COMPILE.c) $<
5b4397d387b89d696b5eb90c328a385e07d4a380Brian Wellington $(CTFCONVERT_O)
5b4397d387b89d696b5eb90c328a385e07d4a380Brian Wellington
5b4397d387b89d696b5eb90c328a385e07d4a380Brian Wellington%.ln: $(MODSRCS_DIR)/%.c
5b4397d387b89d696b5eb90c328a385e07d4a380Brian Wellington $(LINT.c) -c $<
1b855974958ebca91882c4b59f66c48dd5784b87Andreas Gustafsson