xref: /titanic_41/usr/src/cmd/loadkeys/Makefile (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# cmd/loadkeys/Makefile
28#
29
30PROG= loadkeys dumpkeys
31sparc_SUBDIRS= type_4 type_6 type_101
32ppc_SUBDIRS= type_101
33i386_SUBDIRS= type_6 type_101
34SUBDIRS= $($(MACH)_SUBDIRS)
35SRCS=	$(PROG:%=%.c)
36
37ROOTHELPER= $(ROOTLIB)/set_keyboard_layout
38sparc_EXTRA_INSTALL_TARGETS=$(ROOTHELPER)
39i386_EXTRA_INSTALL_TARGETS=$(ROOTHELPER)
40EXTRA_INSTALL_TARGETS= $($(MACH)_EXTRA_INSTALL_TARGETS)
41
42include ../Makefile.cmd
43
44.KEEP_STATE:
45
46.PARALLEL:	$(SUBDIRS)
47
48all:  $(PROG) $(SUBDIRS)
49
50install: $(PROG) $(ROOTPROG) $(SUBDIRS) $(EXTRA_INSTALL_TARGETS)
51
52$(ROOTLIB)/%: %
53	$(INS.file)
54
55# explicit yacc work for the NSE
56#
57loadkeys.c: loadkeys.y
58	$(YACC.y) loadkeys.y
59	mv y.tab.c $@
60
61loadkeys: loadkeys.c
62	$(LINK.c) -o $@ loadkeys.c $(LDLIBS)
63	$(POST_PROCESS)
64
65all:=		TARGET= all
66install:=	TARGET= install
67clean:=		TARGET= clean
68clobber:=	TARGET= clobber
69lint:=		TARGET= lint
70_msg:=          TARGET= catalog
71
72clobber:	$(SUBDIRS)
73	$(RM) $(CLOBBERFILES)
74
75clean:	$(SUBDIRS)
76	$(RM) loadkeys.c
77
78lint:
79	$(LINT.c) dumpkeys.c $(LDLIBS)
80
81$(SUBDIRS): FRC
82	@cd $@; pwd; $(MAKE) $(TARGET)
83
84FRC:
85