📄 makefile
字号:
# Makefile for the USB/IP driver## $Id: Makefile 14 2007-06-18 12:20:03Z hirofuchi $## Copyright (C) 2003-2007 Takahiro Hirofuchi### This is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# # You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,# USA.# # Please modify here or set environments.# KSOURCE should be pointed to the build directory of your kernel.# DEBUG ?= nKSOURCE ?= /usr/src/linux%.x:%.c gcc -o $@ $<KBUILD_VERBOSE:=1HCD_HEADER:=$(KSOURCE)/drivers/usb/core/hcd.husbip_common_mod-objs := usbip_common.o usbip_event.ousbip-objs := stub_dev.o stub_main.o stub_rx.o stub_tx.ovhci-hcd-objs := vhci_sysfs.o vhci_tx.o vhci_rx.o vhci_hcd.o obj-m += usbip_common_mod.oobj-m += usbip.oobj-m += vhci-hcd.oEXTRA_CFLAGS += -DHCD_HEADER=\"$(HCD_HEADER)\"ifeq ($(DEBUG),y) EXTRA_CFLAGS += -DCONFIG_USB_DEBUGendifdefault: make -C $(KSOURCE) LANG=C KBUILD_VERBOSE=${KBUILD_VERBOSE} M=`pwd` modulescheck: #make -C $(KSOURCE) LANG=C KBUILD_VERBOSE=${KBUILD_VERBOSE} C=1 M=`pwd` modules checkstack namespacecheck headers_check make -C $(KSOURCE) LANG=C KBUILD_VERBOSE=${KBUILD_VERBOSE} C=1 M=`pwd` modules.PHONY: cscopecscope: cscope -b -k -R.PHONY: cleanclean: make -C $(KSOURCE) LANG=C KBUILD_VERBOSE=${KBUILD_VERBOSE} M=`pwd` clean rm -f *.x *~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -