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