Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# CDDL HEADER START
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# The contents of this file are subject to the terms of the
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Common Development and Distribution License (the "License").
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# You may not use this file except in compliance with the License.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# See the License for the specific language governing permissions
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# and limitations under the License.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# CDDL HEADER END
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Use is subject to license terms.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmorePROG= loadkeys dumpkeys
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoresparc_SUBDIRS= type_4 type_6 type_101
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreppc_SUBDIRS= type_101
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amorei386_SUBDIRS= type_6 type_101
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreSUBDIRS= $($(MACH)_SUBDIRS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreSRCS= $(PROG:%=%.c)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreROOTHELPER= $(ROOTLIB)/set_keyboard_layout
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoresparc_EXTRA_INSTALL_TARGETS=$(ROOTHELPER)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amorei386_EXTRA_INSTALL_TARGETS=$(ROOTHELPER)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreEXTRA_INSTALL_TARGETS= $($(MACH)_EXTRA_INSTALL_TARGETS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreinclude ../Makefile.cmd
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCERRWARN += -_gcc=-Wno-switch
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCERRWARN += -_gcc=-Wno-implicit-function-declaration
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCERRWARN += -_gcc=-Wno-unused-label
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCERRWARN += -_gcc=-Wno-uninitialized
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCLOBBERFILES = $(PROG) loadkeys.c
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore.KEEP_STATE:
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore.PARALLEL: $(SUBDIRS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreall: $(PROG) $(SUBDIRS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreinstall: $(PROG) $(ROOTPROG) $(SUBDIRS) $(EXTRA_INSTALL_TARGETS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore$(ROOTLIB)/%: %
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore $(INS.file)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# explicit yacc work for the NSE
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
loadkeys.c: loadkeys.y
$(YACC.y) loadkeys.y
mv y.tab.c $@
loadkeys: loadkeys.c
$(LINK.c) -o $@ loadkeys.c $(LDLIBS)
$(POST_PROCESS)
all:= TARGET= all
install:= TARGET= install
clean:= TARGET= clean
clobber:= TARGET= clobber
lint:= TARGET= lint
_msg:= TARGET= catalog
clobber: $(SUBDIRS)
$(RM) $(CLOBBERFILES)
clean: $(SUBDIRS)
lint:
$(LINT.c) dumpkeys.c $(LDLIBS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: