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