Makefile revision f808c858fa61e7769218966759510a8b1190dfcf
7189N/A#
7189N/A# CDDL HEADER START
7189N/A#
7189N/A# The contents of this file are subject to the terms of the
7189N/A# Common Development and Distribution License (the "License").
7189N/A# You may not use this file except in compliance with the License.
7189N/A#
7189N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7189N/A# or http://www.opensolaris.org/os/licensing.
7189N/A# See the License for the specific language governing permissions
7189N/A# and limitations under the License.
7189N/A#
7189N/A# When distributing Covered Code, include this CDDL HEADER in each
7189N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7189N/A# If applicable, add the following below this CDDL HEADER, with the
7189N/A# fields enclosed by brackets "[]" replaced with your own identifying
7189N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7189N/A#
7189N/A# CDDL HEADER END
7189N/A#
7189N/A#
7189N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7189N/A# Use is subject to license terms.
7189N/A#
7189N/A# ident "%Z%%M% %I% %E% SMI"
7189N/A#
7189N/A
7189N/Ainclude ../Makefile.lib
7189N/A
7189N/ASUBDIRS = $(MACH)
7189N/A$(BUILD64)SUBDIRS += $(MACH64)
7189N/A
7189N/Aall := TARGET= all
7189N/Ainstall := TARGET= install
7189N/Aclean := TARGET= clean
7189N/Aclobber := TARGET= clobber
7189N/Alint := TARGET= lint
7189N/A
7189N/A# capability NAMES generated source
7189N/ANAMES= \
7189N/Asrc/libc/xcurses/boolcode.c src/libc/xcurses/boolfnam.c \
7189N/Asrc/libc/xcurses/boolname.c src/libc/xcurses/numcode.c \
7189N/Asrc/libc/xcurses/numfnam.c src/libc/xcurses/numname.c \
7189N/Asrc/libc/xcurses/strcode.c src/libc/xcurses/strfnam.c \
7189N/Asrc/libc/xcurses/strname.c
7189N/A
7189N/AGENERATED= \
7189N/A$(NAMES) src/libc/xcurses/keyindex.c h/term.h
7189N/A
7189N/A# definitions for install_h target
7189N/AHDRS= h/term.h h/curses.h h/unctrl.h
7189N/A
7189N/A# extra clean-up work
7189N/ACLOBBERFILES= $(GENERATED)
7189N/A
7189N/A.KEEP_STATE:
7189N/A
7189N/ALIBS= $(DYNLIB) $(LINTLIB)
7189N/A
7189N/Aall: $(GENERATED) .WAIT $(SUBDIRS)
7189N/A
7189N/Ainstall: all .WAIT $(SUBDIRS)
7189N/A
7189N/Aclean clobber: $(SUBDIRS)
7189N/A $(RM) $(GENERATED)
7189N/A
7189N/Alint: $(SUBDIRS)
7189N/A
7189N/A# still need to implement cstyle check of term.h
7189N/A# do this when we go through and make this library cstyle clean.
7189N/Acheck: $(HDRS)
7189N/A
$(SUBDIRS): $(GENERATED)
@cd $@; pwd; $(MAKE) $(TARGET)
# derived C files
# mknames.awk defines functions so needs nawk
$(NAMES) : src/libc/xcurses/mknames.awk src/libc/xcurses/caps
$(RM) $(NAMES)
cd src/libc/xcurses; nawk -f mknames.awk caps
h/term.h : src/libc/xcurses/mkterm.awk src/libc/xcurses/caps
$(RM) $@
cd src/libc/xcurses; awk -f mkterm.awk caps > term.h
$(MV) src/libc/xcurses/term.h h/term.h
src/libc/xcurses/keyindex.c : src/libc/xcurses/mkkey.awk src/libc/xcurses/caps
$(RM) $@
cd src/libc/xcurses; nawk -f mkkey.awk caps > keyindex.c