Makefile revision 2
561N/A#
561N/A# CDDL HEADER START
911N/A#
837N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
561N/A# You may not use this file except in compliance with the License.
561N/A#
561N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
561N/A# or http://www.opensolaris.org/os/licensing.
561N/A# See the License for the specific language governing permissions
561N/A# and limitations under the License.
561N/A#
561N/A# When distributing Covered Code, include this CDDL HEADER in each
561N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
561N/A# If applicable, add the following below this CDDL HEADER, with the
561N/A# fields enclosed by brackets "[]" replaced with your own identifying
561N/A# information: Portions Copyright [yyyy] [name of copyright owner]
561N/A#
561N/A# CDDL HEADER END
561N/A#
561N/A#
561N/A# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
561N/A#
561N/A
561N/Ainclude ../Makefile.lib
561N/A
561N/ASUBDIRS = $(MACH)
561N/A$(BUILD64)SUBDIRS += $(MACH64)
561N/A
561N/Aall := TARGET= all
561N/Ainstall := TARGET= install
561N/Aclean := TARGET= clean
561N/Aclobber := TARGET= clobber
561N/Alint := TARGET= lint
561N/Astub := TARGET = stub
561N/Astubinstall := TARGET = stubinstall
837N/A
837N/A# capability NAMES generated source
911N/ANAMES= \
911N/Asrc/libc/xcurses/boolcode.c src/libc/xcurses/boolfnam.c \
911N/Asrc/libc/xcurses/boolname.c src/libc/xcurses/numcode.c \
911N/Asrc/libc/xcurses/numfnam.c src/libc/xcurses/numname.c \
837N/Asrc/libc/xcurses/strcode.c src/libc/xcurses/strfnam.c \
837N/Asrc/libc/xcurses/strname.c
561N/A
561N/AGENERATED= \
837N/A$(NAMES) src/libc/xcurses/keyindex.c h/term.h
# definitions for check target
HDRS= h/term.h h/curses.h h/unctrl.h
.KEEP_STATE:
LIBS= $(DYNLIB) $(LINTLIB)
all install lint: $(GENERATED) .WAIT $(SUBDIRS)
clean clobber: $(SUBDIRS)
$(RM) $(GENERATED)
stub stubinstall: $(SUBDIRS)
# still need to implement cstyle check of term.h
# do this when we go through and make this library cstyle clean.
check: $(HDRS)
$(SUBDIRS): FRC
@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
FRC: