Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
2693N/A#
2693N/A# CDDL HEADER START
2693N/A#
2693N/A# The contents of this file are subject to the terms of the
2693N/A# Common Development and Distribution License, Version 1.0 only
2693N/A# (the "License"). You may not use this file except in compliance
2693N/A# with the License.
2693N/A#
2693N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2693N/A# or http://www.opensolaris.org/os/licensing.
2693N/A# See the License for the specific language governing permissions
2693N/A# and limitations under the License.
2693N/A#
2693N/A# When distributing Covered Code, include this CDDL HEADER in each
2693N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2693N/A# If applicable, add the following below this CDDL HEADER, with the
2693N/A# fields enclosed by brackets "[]" replaced with your own identifying
2693N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2693N/A#
2693N/A# CDDL HEADER END
2693N/A#
2693N/A#
3339N/A# ident "%Z%%M% %I% %E% SMI"
2693N/A#
3339N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2693N/A# Use is subject to license terms.
2693N/A#
2693N/A# cmd/oawk/Makefile
2693N/A#
2693N/A
2693N/Ainclude ../Makefile.cmd
2693N/A
3339N/APROG = oawk
2693N/ALINKPROG = awk
2693N/A
2693N/ASRCS = b.c lib.c main.c parse.c run.c tran.c
2693N/A
2693N/A#TXTS = README EXPLAIN
2693N/A
2693N/AOBJS = awk.g.o awk.lx.o proctab.o tmptoken.o \
2693N/A $(SRCS:%.c=%.o)
2693N/A
2693N/A#
2693N/A# for message catalogue
2693N/A#
2693N/APOFILES= $(OBJS:%.o=%.po)
2693N/APOFILE= oawk.po
2693N/AXGETFLAGS += -a -x oawk.xcl
2693N/A
2693N/ANATIVEDIR = native
3339N/AMAKEPRCTAB = $(NATIVEDIR)/makeprctab
2693N/A
2693N/ANATIVEOBJS = $(NATIVEDIR)/makeprctab.o $(NATIVEDIR)/tmptoken.o
2693N/A$(MAKEPRCTAB) := CC = $(NATIVECC)
2693N/A$(MAKEPRCTAB) := POST_PROCESS=
2693N/A$(MAKEPRCTAB) := POST_PROCESS_O=
2693N/A
2693N/ACLEANFILES = proctab.c y.tab.h y.tab.c awk.h awk.g.c \
2693N/A tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
2693N/A temp
2693N/A
2693N/AYFLAGS = -d
3339N/AXLDLIBS5CC += -lm
2693N/ALDLIBS += -lm
2693N/ACPPFLAGS = -I. $(CPPFLAGS.master)
2693N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64
3339N/A
2693N/AROOTLINK = $(LINKPROG:%=$(ROOTBIN)/%)
2693N/A
3339N/A.KEEP_STATE :
2693N/A
2693N/Aall : $(PROG) $(TXTS)
2693N/A
2693N/A$(PROG) : $(OBJS)
2693N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
2693N/A $(POST_PROCESS)
2693N/A
2693N/A$(POFILE): $(POFILES)
2693N/A $(RM) $@
2693N/A $(CAT) $(POFILES) > $@
2693N/A
2693N/Aawk.g.c + awk.h : awk.g.y
2693N/A $(RM) awk.g.c awk.h
2693N/A $(YACC.y) awk.g.y
2693N/A $(MV) y.tab.c awk.g.c
2693N/A $(MV) y.tab.h awk.h
2693N/A
2693N/Aawk.lx.c: awk.lx.l
2693N/A $(LEX.l) -w awk.lx.l > awk.lx.c
3339N/A
2693N/Atmptoken.c : tokenscript token.c
3339N/A $(RM) $@
2693N/A ed - < tokenscript
2693N/A
2693N/Aproctab.c : $(MAKEPRCTAB)
3339N/A $(RM) $@
2693N/A $(MAKEPRCTAB) > $@
2693N/A
3339N/A$(MAKEPRCTAB) : $(NATIVEDIR) $(NATIVEOBJS)
2693N/A $(LINK.c) $(NATIVEOBJS) -o $@ $(XLDLIBS5CC)
2693N/A
2693N/Ainstall : all $(ROOTPROG) $(ROOTLINK)
2693N/A
2693N/A$(NATIVEDIR) :
2693N/A -@mkdir -p $(NATIVEDIR)
2693N/A
2693N/A$(NATIVEDIR)/%.o : %.c
2693N/A $(COMPILE.c) -o $@ $<
2693N/A
2693N/A$(ROOTLINK) : $(ROOTPROG)
2693N/A $(RM) $@; $(LN) $(ROOTPROG) $@
2693N/A
2693N/Aclean:
2693N/A $(RM) $(OBJS) $(CLEANFILES)
2693N/A
2693N/Alint : lint_SRCS
2693N/A
2693N/Astrip:
2693N/A $(STRIP) $(PROG)
2693N/A
2693N/Ainclude ../Makefile.targ
2693N/A