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