makefile
来自「galil1800 linux驱动程序演示」· 代码 · 共 33 行
TXT
33 行
# Copyright (C) 2002 Shell Technologies s.r.l.# Author: Marco Cesati <cesati@uniroma2.it>## This program 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.TARGET = galil_1800.oSOURCE = $(TARGET:.o=.c)INCLUDE=-I/lib/modules/$(shell uname -r)/build/includeCFLAGS = -Wall -D__KERNEL__ -DMODULE -O2 -fomit-frame-pointer $(INCLUDE)%.ps: %.c enscript -E -o $@ $^all: .depend $(TARGET)install: install -c $(TARGET) /lib/modules/galil.PHONY: clean clean: rm -f *.o *~ core .depend $(TARGET:.o=.ps).depend: $(CC) $(CFLAGS) -MM $(SOURCE) > $@ifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?