Home | History | Annotate | Download | only in awk_xpg4
      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 #ident	"%Z%%M%	%I%	%E% SMI"
     24 #
     25 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
     26 # Use is subject to license terms.
     27 #
     28 # cmd/awk_xpg4/Makefile
     29 #
     30 
     31 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
     32 
     33 PROG= awk
     34 XPG4PROG= awk
     35 
     36 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
     37 OBJ2= awk.o
     38 XPG4AWKOBJ= values-xpg4.o
     39 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
     40 SRCS= $(OBJ1:%.o=%.c)
     41 
     42 include ../Makefile.cmd
     43 
     44 CPPFLAGS += -D_FILE_OFFSET_BITS=64
     45 CFLAGS += $(CCVERBOSE)
     46 YFLAGS += -d
     47 LDLIBS += -lm
     48 CLEANFILES= awk.c y.tab.h
     49 
     50 # for messaging catalog
     51 
     52 POFILE= awk_xpg4.po
     53 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
     54 
     55 .KEEP_STATE:
     56 
     57 .PARALLEL:	$(OBJS)
     58 
     59 all: $(XPG4)
     60 
     61 $(XPG4): $(OBJS)
     62 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
     63 	$(POST_PROCESS)
     64 
     65 $(POFILE): $(POFILES)
     66 	$(RM) $@
     67 	cat $(POFILES) > $@
     68 #
     69 
     70 install: all $(ROOTXPG4PROG)
     71 
     72 values-xpg4.o: ../../lib/common/common/values-xpg4.c
     73 	$(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
     74 
     75 clean:
     76 	$(RM) $(OBJS) $(XPG4) $(CLEANFILES)
     77 
     78 lint: lint_SRCS
     79 
     80 awk.c + y.tab.h: awk.y
     81 
     82 awk.o: awk.c y.tab.h
     83 
     84 awk0.c: awk.c y.tab.h
     85 
     86 awk1.c: awk.c y.tab.h
     87 
     88 awk2.c: awk.c y.tab.h
     89 
     90 awk3.c: awk.c y.tab.h
     91 
     92 awk4.c: awk.c y.tab.h
     93 
     94 include ../Makefile.targ
     95