1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27# 28 29.KEEP_STATE: 30 31include ../../../../Makefile.cmd 32include ../../Makefile.perlcfg 33 34# Add in the perl-specific flags (including largefile flags). 35CPPFLAGS += -DPERL_FOR_X2P $(PERL_LFFLAGS) 36 37# From the standard perl x2p Makefile. 38PL_SRCS = find2perl.PL s2p.PL 39PL_TARGS = $(PL_SRCS:%.PL=%) 40POD_SRCS = a2p.pod 41POD_TARGS = $(POD_SRCS:%=../pod/%) 42 43# a2p components. 44HDRS = a2p.h EXTERN.h hash.h INTERN.h str.h util.h ../config.h ../handy.h 45SRCS = hash.c str.c util.c walk.c a2p.c 46OBJS = $(SRCS:%.c=%.o) 47TARGS = a2p $(PL_TARGS) $(POD_TARGS) 48 49CLOBBERFILES= $(TARGS) psed 50CLEANFILES= $(OBJS) 51 52all: $(TARGS) 53.PARALLEL: $(OBJS) $(TARGS) 54 55a2p: $(OBJS) 56 $(LINK.c) -o a2p $(OBJS) $(LDLIBS) $(PERL_LDLIBS) 57 $(POST_PROCESS) 58 59a2p.o: a2p.c a2py.c $(HDRS) 60 61# Use miniperl to build scripts. 62$(PL_TARGS): ../lib/Config.pm 63 $(RUN_MINIPERL) $@.PL 64 65../pod/%.pod: %.pod ../lib/Config.pm 66 $(CP) -f $< $@ 67 68clean: 69 $(RM) $(CLEANFILES) 70 71include ../../../../Makefile.targ 72