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