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