?? makefile
字號:
# Makefile for the Linux CAN-bus driver.# Written by Arnaud Westenberg email:arnaud@wanadoo.nl# This software is released under the GPL-License.# Version 0.7 6 Aug 2001########## The following options can be changed ########### Include directoryINCLUDEDIR = /usr/src/linux/include# CompilerCC = gcc# Enable debugging messagesDEBUG = y # Enable module version supportMODVERSIONS = y # You can comment out the hardware you don't need. This will result in a smaller# driver. By default, all hardware is supported in the driver. See the README # file for a description of the supported hardware.PIP = yPCCAN = y # Not to be confused with PCCCAN!!!SMARTCAN = yNSI = yCC104 = yAIM104 = yPCI03 = yPCM3680 = yM437 = yPCCCAN = y # Not to be confused with PCCAN!!!SSV = yTEMPLATE = y########## Don't change anything under this line please ##########KERNEL_VERSION := $(shell awk -F\" '/REL/ {print $$2}' \ $(INCLUDEDIR)/linux/version.h | awk -F\- '{print $$1}')PROC_FS := $(shell awk -F\ '/PROC_FS/ {print $$3}' \ $(INCLUDEDIR)/linux/autoconf.h)VPATH = ./src:./include:./utilsCFLAGS = -D__KERNEL__ -DMODULE -O2 -Wall -Wstrict-prototypes \ -Wpointer-arith -I $(INCLUDEDIR) ifdef DEBUG CFLAGS += -DCAN_DEBUGendififndef MODVERSIONS CFLAGS += -DNOVERendififdef PROC_FS SRCS += proc.c OBJS += proc.oendififdef PIP SRCS += pip.c OBJS += pip.oendififdef PCCAN SRCS += pccan.c OBJS += pccan.oendififdef SMARTCAN SRCS += smartcan.c OBJS += smartcan.oendififdef NSI SRCS += nsi.c OBJS += nsi.oendififdef CC104 SRCS += cc_can104.c OBJS += cc_can104.oendififdef PCI03 SRCS += pc-i03.c OBJS += pc-i03.oendififdef PCM3680 SRCS += pcm3680.c OBJS += pcm3680.oendififdef AIM104 SRCS += aim104.c OBJS += aim104.oendififdef M437 SRCS += m437.c OBJS += m437.oendififdef PCCCAN SRCS += pcccan.c OBJS += pcccan.oendififdef SSV SRCS += ssv.c OBJS += ssv.oendififdef TEMPLATE SRCS += template.c OBJS += template.oendifSRCS += main.c modparms.c setup.c sja1000.c i82527.c close.c ioctl.c\ open.c write.c read.c sja1000p.c irq.cOBJS += main.o modparms.o setup.o sja1000.o i82527.o close.o ioctl.o\ open.o write.o read.o sja1000p.o irq.oall : mesg main.ver can.o utilsmesg : @echo @echo Compiling for kernel version: $(KERNEL_VERSION)ifdef MODVERSIONS @echo Compiling with module version supportelse @echo Compiling without module version supportendififdef PROC_FS @echo Compiling with proc filesystem supportelse @echo Compiling without proc filesystem supportendif @echoifdef MODVERSIONSmain.ver : main.c $(CC) -I $(INCLUDEDIR) -E -O2 -D__GENKSYMS__ $^ | \ /sbin/genksyms -k $(KERNEL_VERSION) > ./include/$@elsemain.ver:endifcan.o : $(OBJS) (cd ./src; ld -o ../can.o $(OBJS) -E -O2 -r)main.o : main.c main.h proc.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)proc.o : proc.c main.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)modparms.o : modparms.c modparms.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)setup.o : setup.c setup.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)pip.o : pip.c pip.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define PIP 1" >> .supportpccan.o : pccan.c pccan.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define PCCAN 1" >> .supportsmartcan.o : smartcan.c smartcan.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define SMARTCAN 1" >> .supportnsi.o : nsi.c nsi.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define NSI 1" >> .supportcc_can104.o : cc_can104.c cc_can104.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define CC104 1" >> .supportaim104.o : aim104.c aim104.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define AIM104 1" >> .supportpc-i03.o : pc-i03.c pc-i03.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define PCI03 1" >> .supportpcm3680.o : pcm3680.c pcm3680.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define PCM3680 1" >> .supportm437.o : m437.c m437.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define M437 1" >> .supportpcccan.o : pcccan.c pcccan.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define PCCCAN 1" >> .supportssv.o : ssv.c ssv.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define SSV 1" >> .supporttemplate.o : template.c template.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS) @echo "#define TEMPLATE 1" >> .supportopen.o : open.c open.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)i82527.o : i82527.c i82527.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)close.o : close.c close.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)read.o : read.c read.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)irq.o : irq.c irq.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)ioctl.o : ioctl.c ioctl.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)write.o : write.c write.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)sja1000.o : sja1000.c sja1000.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)sja1000p.o : sja1000p.c sja1000p.h $(CC) -c -o $(<D)/$@ $< $(CFLAGS)utils : rxtx sendburst readburstrxtx : rxtx.c $(CC) -o $(<D)/$@ $< -Wallsendburst : sendburst.c $(CC) -o $(<D)/$@ $< -Wallreadburst : readburst.c $(CC) -o $(<D)/$@ $< -Wallclean : rm -f *.o rm -f .support (cd src; rm -f *.o) (cd include; rm -f *.ver) (cd utils; rm -f rxtx sendburst readburst)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -