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