Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync#
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# CDDL HEADER START
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# The contents of this file are subject to the terms of the
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# Common Development and Distribution License, Version 1.0 only
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# (the "License"). You may not use this file except in compliance
7eaaa8a4480370b82ef3735994f986f338fb4df2vboxsync# with the License.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# or http://www.opensolaris.org/os/licensing.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# See the License for the specific language governing permissions
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# and limitations under the License.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# When distributing Covered Code, include this CDDL HEADER in each
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# If applicable, add the following below this CDDL HEADER, with the
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# CDDL HEADER END
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Copyright (c) 2001 by Sun Microsystems, Inc.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# All rights reserved.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#ident "%Z%%M% %I% %E% SMI"
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync#
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync.KEEP_STATE:
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncinclude ../../../../Makefile.cmd
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncinclude ../../Makefile.perlcfg
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Add in the perl-specific flags (including largefile flags).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncCPPFLAGS += -DPERL_FOR_X2P $(PERL_LFFLAGS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# From the standard perl x2p Makefile.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncPL_SRCS = find2perl.PL s2p.PL
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncPL_TARGS = $(PL_SRCS:%.PL=%)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncPOD_SRCS = a2p.pod
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncPOD_TARGS = $(POD_SRCS:%=../pod/%)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# a2p components.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncHDRS = a2p.h EXTERN.h hash.h INTERN.h str.h util.h ../config.h ../handy.h
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncSRCS = hash.c str.c util.c walk.c a2p.c
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncOBJS = $(SRCS:%.c=%.o)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncTARGS = a2p $(PL_TARGS) $(POD_TARGS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncCLOBBERFILES= $(TARGS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncCLEANFILES= $(OBJS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncall: $(TARGS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync.PARALLEL: $(OBJS) $(TARGS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsynca2p: $(OBJS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync $(LINK.c) -o a2p $(OBJS) $(LDLIBS) $(PERL_LDLIBS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# We don't want to regenerate a2p.c, but it might appear out-of-date
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# after a patch is applied or a new distribution is made.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsynca2p.c: a2p.y
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync @ $(TOUCH) $@
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsynca2p.o: a2p.c a2py.c $(HDRS)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Use miniperl to build scripts.
058e9c6d97c5306126f83d934148c658804f1d6cvboxsync$(PL_TARGS): ../lib/Config.pm
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync ../miniperl -I../lib $@.PL
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync../pod/%.pod: %.pod ../lib/Config.pm
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync $(CP) -f $< $@
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncclean:
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync $(RM) $(CLEANFILES)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncinclude ../../../../Makefile.targ
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync