Makefile revision 919
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Use is subject to license terms.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Permission is hereby granted, free of charge, to any person obtaining a
4496171313bed39e96f21bc2f9faf2868e267ae3girish# copy of this software and associated documentation files (the "Software"),
4496171313bed39e96f21bc2f9faf2868e267ae3girish# to deal in the Software without restriction, including without limitation
4496171313bed39e96f21bc2f9faf2868e267ae3girish# the rights to use, copy, modify, merge, publish, distribute, sublicense,
4496171313bed39e96f21bc2f9faf2868e267ae3girish# and/or sell copies of the Software, and to permit persons to whom the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Software is furnished to do so, subject to the following conditions:
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# The above copyright notice and this permission notice (including the next
4496171313bed39e96f21bc2f9faf2868e267ae3girish# paragraph) shall be included in all copies or substantial portions of the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Software.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4496171313bed39e96f21bc2f9faf2868e267ae3girish# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4496171313bed39e96f21bc2f9faf2868e267ae3girish# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4496171313bed39e96f21bc2f9faf2868e267ae3girish# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4496171313bed39e96f21bc2f9faf2868e267ae3girish# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4496171313bed39e96f21bc2f9faf2868e267ae3girish# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
4496171313bed39e96f21bc2f9faf2868e267ae3girish# DEALINGS IN THE SOFTWARE.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishSRCS = hotkey.c
4496171313bed39e96f21bc2f9faf2868e267ae3girishOBJS = $(SRCS:.c=.o)
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQLIBS = -lsysevent
4496171313bed39e96f21bc2f9faf2868e267ae3girishMODULEDIR = /lib/modules
4496171313bed39e96f21bc2f9faf2868e267ae3girishDRVDIR = /input
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishhotkey_drv.so: $(OBJS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish $(CC) -o $@ $(LDFLAGS) -shared $(OBJS) $(REQLIBS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish.c.o:
4496171313bed39e96f21bc2f9faf2868e267ae3girish $(CC) -fpic -DPIC $(CFLAGS) $(CPPFLAGS) -c $<
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishinstall: hotkey_drv.so
4496171313bed39e96f21bc2f9faf2868e267ae3girish mkdir -p $(DESTDIR)$(PREFIX)$(MODULEDIR)$(ARCHLIBSUBDIR)$(DRVDIR)
4496171313bed39e96f21bc2f9faf2868e267ae3girish $(INSTALL) hotkey_drv.so $(DESTDIR)$(PREFIX)$(MODULEDIR)$(ARCHLIBSUBDIR)$(DRVDIR)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish