xref: /titanic_50/usr/src/cmd/hal/probing/xkb/Makefile (revision b453864f3587ccc3324d7a3b0438a1e542dcfde7)
1*b453864fSLin Guo - Sun Microsystems#
2*b453864fSLin Guo - Sun Microsystems# CDDL HEADER START
3*b453864fSLin Guo - Sun Microsystems#
4*b453864fSLin Guo - Sun Microsystems# The contents of this file are subject to the terms of the
5*b453864fSLin Guo - Sun Microsystems# Common Development and Distribution License (the "License").
6*b453864fSLin Guo - Sun Microsystems# You may not use this file except in compliance with the License.
7*b453864fSLin Guo - Sun Microsystems#
8*b453864fSLin Guo - Sun Microsystems# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*b453864fSLin Guo - Sun Microsystems# or http://www.opensolaris.org/os/licensing.
10*b453864fSLin Guo - Sun Microsystems# See the License for the specific language governing permissions
11*b453864fSLin Guo - Sun Microsystems# and limitations under the License.
12*b453864fSLin Guo - Sun Microsystems#
13*b453864fSLin Guo - Sun Microsystems# When distributing Covered Code, include this CDDL HEADER in each
14*b453864fSLin Guo - Sun Microsystems# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*b453864fSLin Guo - Sun Microsystems# If applicable, add the following below this CDDL HEADER, with the
16*b453864fSLin Guo - Sun Microsystems# fields enclosed by brackets "[]" replaced with your own identifying
17*b453864fSLin Guo - Sun Microsystems# information: Portions Copyright [yyyy] [name of copyright owner]
18*b453864fSLin Guo - Sun Microsystems#
19*b453864fSLin Guo - Sun Microsystems# CDDL HEADER END
20*b453864fSLin Guo - Sun Microsystems#
21*b453864fSLin Guo - Sun Microsystems#
22*b453864fSLin Guo - Sun Microsystems# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*b453864fSLin Guo - Sun Microsystems# Use is subject to license terms.
24*b453864fSLin Guo - Sun Microsystems#
25*b453864fSLin Guo - Sun Microsystems#
26*b453864fSLin Guo - Sun Microsystems
27*b453864fSLin Guo - Sun MicrosystemsPROG =		hald-probe-xkb
28*b453864fSLin Guo - Sun MicrosystemsOBJS =		probe-xkb.o logger.o
29*b453864fSLin Guo - Sun MicrosystemsSRCS =		probe-xkb.c
30*b453864fSLin Guo - Sun Microsystems
31*b453864fSLin Guo - Sun Microsystemsinclude ../../../Makefile.cmd
32*b453864fSLin Guo - Sun Microsystemsinclude ../../Makefile.hal
33*b453864fSLin Guo - Sun Microsystems
34*b453864fSLin Guo - Sun MicrosystemsROOTCMDDIR =	$(ROOTLIB_HAL)
35*b453864fSLin Guo - Sun Microsystems
36*b453864fSLin Guo - Sun MicrosystemsLDLIBS +=	-lc -ldbus-1 -lhal
37*b453864fSLin Guo - Sun Microsystems
38*b453864fSLin Guo - Sun MicrosystemsCPPFLAGS +=	$(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
39*b453864fSLin Guo - Sun MicrosystemsCPPFLAGS +=	-I$(ROOT)/usr/include/hal -I../../hald
40*b453864fSLin Guo - Sun MicrosystemsC99MODE =	$(C99_ENABLE)
41*b453864fSLin Guo - Sun Microsystems
42*b453864fSLin Guo - Sun Microsystems.KEEP_STATE:
43*b453864fSLin Guo - Sun Microsystems
44*b453864fSLin Guo - Sun Microsystemsall: $(PROG)
45*b453864fSLin Guo - Sun Microsystems
46*b453864fSLin Guo - Sun Microsystemslogger.o: ../../hald/logger.c
47*b453864fSLin Guo - Sun Microsystems	$(COMPILE.c) -o $@ ../../hald/logger.c
48*b453864fSLin Guo - Sun Microsystems	$(POST_PROCESS_O)
49*b453864fSLin Guo - Sun Microsystems
50*b453864fSLin Guo - Sun Microsystems$(PROG): $(OBJS)
51*b453864fSLin Guo - Sun Microsystems	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
52*b453864fSLin Guo - Sun Microsystems	$(POST_PROCESS)
53*b453864fSLin Guo - Sun Microsystems
54*b453864fSLin Guo - Sun Microsystemsinstall: all $(ROOTCMD)
55*b453864fSLin Guo - Sun Microsystems
56*b453864fSLin Guo - Sun Microsystemsclean:
57*b453864fSLin Guo - Sun Microsystems	$(RM) $(OBJS) $(PROG)
58*b453864fSLin Guo - Sun Microsystems
59*b453864fSLin Guo - Sun MicrosystemsFRC:
60*b453864fSLin Guo - Sun Microsystems
61*b453864fSLin Guo - Sun Microsystemsinclude ../../../Makefile.targ
62