1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Ainclude ../../../../Makefile.cmd
1N/Ainclude ../../Makefile.perlcfg
1N/A
1N/A# Add in the perl-specific flags (including largefile flags).
1N/ACPPFLAGS += -DPERL_FOR_X2P $(PERL_LFFLAGS)
1N/A
1N/A# From the standard perl x2p Makefile.
1N/APL_SRCS = find2perl.PL s2p.PL
1N/APL_TARGS = $(PL_SRCS:%.PL=%)
1N/APOD_SRCS = a2p.pod
1N/APOD_TARGS = $(POD_SRCS:%=../pod/%)
1N/A
1N/A# a2p components.
1N/AHDRS = a2p.h EXTERN.h hash.h INTERN.h str.h util.h ../config.h ../handy.h
1N/ASRCS = hash.c str.c util.c walk.c a2p.c
1N/AOBJS = $(SRCS:%.c=%.o)
1N/ATARGS = a2p $(PL_TARGS) $(POD_TARGS)
1N/A
1N/ACLOBBERFILES= $(TARGS) psed
1N/ACLEANFILES= $(OBJS)
1N/A
1N/Aall: $(TARGS)
1N/A.PARALLEL: $(OBJS) $(TARGS)
1N/A
1N/Aa2p: $(OBJS)
1N/A $(LINK.c) $(ZIGNORE) -o a2p $(OBJS) $(LDLIBS) $(PERL_LDLIBS)
1N/A $(POST_PROCESS)
1N/A
1N/Aa2p.o: a2p.c a2py.c $(HDRS)
1N/A
1N/A# Use miniperl to build scripts.
1N/A$(PL_TARGS): ../lib/Config.pm
1N/A $(RUN_MINIPERL) $@.PL
1N/A
1N/A../pod/%.pod: %.pod ../lib/Config.pm
1N/A $(CP) -f $< $@
1N/A
1N/Aclean:
1N/A $(RM) $(CLEANFILES)
1N/A
1N/Ainclude ../../../../Makefile.targ