Makefile revision 5680
10140N/A#
10140N/A# CDDL HEADER START
10140N/A#
10140N/A# The contents of this file are subject to the terms of the
10143N/A# Common Development and Distribution License (the "License").
10140N/A# You may not use this file except in compliance with the License.
10140N/A#
10140N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10143N/A# or http://www.opensolaris.org/os/licensing.
10140N/A# See the License for the specific language governing permissions
10140N/A# and limitations under the License.
10140N/A#
10140N/A# When distributing Covered Code, include this CDDL HEADER in each
10140N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10140N/A# If applicable, add the following below this CDDL HEADER, with the
10140N/A# fields enclosed by brackets "[]" replaced with your own identifying
10140N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10140N/A#
10140N/A# CDDL HEADER END
10140N/A#
10140N/A
10140N/A#
11839N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
10140N/A#
10140N/A
11839N/AAPXS=apxs
11839N/ADTRACE=/usr/sbin/dtrace
10140N/A
10140N/ACC=`$(APXS) -q CC`
10140N/ACFLAGS=`$(APXS) -q CFLAGS`
10140N/ALDFLAGS_SHLIB=`$(APXS) -q LDFLAGS_SHLIB`
10140N/A
10140N/Aall: .libs/mod_dtrace.so
10140N/A
10140N/A.libs/mod_dtrace.o: mod_dtrace.c
10140N/A $(APXS) -c -o mod_dtrace.so mod_dtrace.c && rm .libs/mod_dtrace.so
10140N/A
10140N/Aapache.o: .libs/mod_dtrace.o apache.d
10140N/A $(DTRACE) -G -o apache.o -s apache.d .libs/mod_dtrace.o
10140N/A
10140N/A.libs/mod_dtrace.so: apache.o mapfile .libs/mod_dtrace.o
10140N/A $(CC) -M mapfile $(CFLAGS) -KPIC -G $(LDFLAGS_SHLIB) -o .libs/mod_dtrace.so .libs/mod_dtrace.o apache.o
10140N/A
10394N/Aclean:
10140N/A -rm -f *.o *.so *.lo *.la *.slo
10140N/A -rm -rf .libs
11839N/A