Makefile revision 7f11fd00fc23e2af7ae21cc8837a2b86380dcfa7
0N/A#
4766N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
2362N/A# with the License.
0N/A#
2362N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
2362N/A#
2362N/A#
2362N/A#
0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
3378N/A
0N/A# NOTE: awk is oawk.
0N/A
0N/APROG= nawk
0N/A
0N/AOBJ1= b.o lib.o main.o parse.o proctab.o run.o tran.o
0N/AOBJ2= awk.g.o awk.lx.o
0N/AOBJS= $(OBJ2) $(OBJ1)
0N/ASRCS= $(OBJ1:%.o=%.c)
460N/A
0N/Ainclude ../Makefile.cmd
0N/A
0N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
0N/ACERRWARN += -_gcc=-Wno-unused-label
0N/ACERRWARN += -_gcc=-Wno-parentheses
0N/ACERRWARN += -_gcc=-Wno-unused-variable
0N/ACERRWARN += -_gcc=-Wno-uninitialized
460N/A
0N/A#
0N/A# Message catalog
460N/A#
1006N/APOFILES= $(OBJS:%.o=%.po)
0N/APOFILE= awk.po
0N/AXGETFLAGS += -a -x awk.xcl
0N/A#
0N/A
0N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64
460N/AYFLAGS += -d
460N/ALDLIBS += -lm
460N/ALINTFLAGS += -u
460N/ACLEANFILES= maketab proctab.c awk.g.c awk.lx.c y.tab.h
460N/A
460N/A.KEEP_STATE:
1006N/A
460N/Aall: $(PROG)
460N/A
4766N/A$(PROG): $(OBJS)
4766N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
4766N/A $(POST_PROCESS)
4766N/A
4766N/A#
4766N/A# message catalog
460N/A#
0N/A
0N/A$(POFILE): y.tab.h $(POFILES)
0N/A $(RM) $@
0N/A cat $(POFILES) > $@
0N/A#
0N/A
0N/Aproctab.c: maketab
0N/A rm -f $@; ./maketab > $@
0N/A
0N/Amaketab: maketab.c
0N/A $(NATIVECC) $(NATIVE_CFLAGS) maketab.c -o $@ $(LDLIBS)
0N/A
0N/Ainstall: all $(ROOTPROG) $(ROOTLINK)
0N/A
0N/Aclean:
0N/A $(RM) $(OBJS) $(CLEANFILES)
0N/A
0N/Alint: awk.g.c lint_SRCS
0N/A
0N/Aawk.g.c + y.tab.h: awk.g.y
0N/A
0N/Aawk.g.o: awk.g.c
0N/A
0N/Aawk.lx.c: awk.lx.l
proctab.o: proctab.c
$(COMPILE.c) proctab.c
$(POST_PROCESS_O)
include ../Makefile.targ