📄 makefile
字号:
## Copyright (C) 1998 David A. Hinds -- dahinds@users.sourceforge.net## Makefile 1.138 2002/06/29 05:49:24## Include site dependent options and kernel configurationinclude ../config.mk# For files in kernel source tree, so that we can override config flagsXFLAGS := -O2 $(CPPFLAGS) -D__KERNEL__ -DEXPORT_SYMTAB $(MFLAG)# Don't remove "-O3" or bad things will happen!CFLAGS = -O3 -Wall -Wstrict-prototypes -pipeCPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULECC = $(KCC) $(AFLAGS) $(KFLAGS)SRCS = serial_cs.c memory_cs.c ftl_cs.c dummy_cs.c \ sram_mtd.c iflash2_mtd.c iflash2+_mtd.cMODULES = serial_cs.o memory_cs.o ftl_cs.o dummy_cs.o \ sram_mtd.o iflash2_mtd.o iflash2+_mtd.oEXTRA =I_EXTRA =ifndef CONFIG_PCMCIAifdef CONFIG_CARDBUSSRCS += memory_cb.c serial_cb.cMODULES += memory_cb.o serial_cb.oifdef CONFIG_INETSRCS += 3c575_cb.c tulip_cb.c epic_cb.c eepro100_cb.cMODULES += 3c575_cb.o tulip_cb.o epic_cb.o eepro100_cb.oendififdef CONFIG_SCSIifdef DO_APA1480SRCS += apa1480_stub.c aic7xxx.cMODULES += apa1480_cb.oAIC7XXX = aic7xxx.oifdef NEW_AIC7XXXSRCS += aic7xxx_linux.c aic7xxx_linux_pci.c aic7xxx_proc.c \ aic7770_linux.c aic7xxx_pci.c aic7xxx_93cx6.c aic7770.cAIC7XXX += aic7xxx_linux.o aic7xxx_linux_pci.o aic7xxx_proc.o \ aic7770_linux.o aic7xxx_pci.o aic7xxx_93cx6.o aic7770.oendifendifendififdef CONFIG_IEEE1394SRCS += pcilynx_stub.c pcilynx.c ohci1394_stub.c ohci1394.cMODULES += pcilynx_cb.o ohci1394_cb.oendifendifendififdef CONFIG_INETMODULES += pcnet_cs.o 3c589_cs.o nmclan_cs.o fmvj18x_cs.o smc91c92_cs.o \ xirc2ps_cs.o 3c574_cs.o axnet_cs.oSRCS += pcnet_cs.c 3c589_cs.c nmclan_cs.c fmvj18x_cs.c smc91c92_cs.c \ xirc2ps_cs.c 3c574_cs.c axnet_cs.cSRCS += 8390.cEXTRA += 8390.oI_EXTRA += install-8390ifdef CONFIG_TRMODULES += ibmtr_cs.oSRCS += ibmtr_cs.cendifendififdef DO_IDESRCS += ide_cs.cMODULES += ide_cs.oendififdef DO_PARPORTSRCS += parport_cs.cMODULES += parport_cs.oendifvpath %.c $(LINUX)/drivers/net $(LINUX)/drivers/scsi \ $(LINUX)/drivers/net/tokenring $(LINUX)/drivers/ieee1394 \ $(LINUX)/drivers/scsi/aic7xxxSCSI=$(LINUX)/drivers/scsiifdef CONFIG_SCSISRCS += qlogicfas.c aha152x.c fdomain.cSRCS += qlogic_stub.c aha152x_stub.c fdomain_stub.cMODULES += qlogic_cs.o aha152x_cs.o fdomain_cs.oendifall: $(MODULES) $(EXTRA)8390.o: 8390.c $(CC) -MD -c $(XFLAGS) -DMODULE $< @mkdir -p .depfiles ; mv $*.d .depfilesibmtr_cs.o: ibmtr_cs.c ibmtr.o $(CC) -c -MD $(CFLAGS) $(CPPFLAGS) $< @mkdir -p .depfiles ; mv $*.d .depfiles $(LD) -r -o .$@ $@ ibmtr.o mv .$@ $@ ; chmod -x $@ibmtr.o qlogicfas.o aha152x.o fdomain.o: %.o: %.c $(CC) -MD -c $(XFLAGS) -DPCMCIA -D__NO_VERSION__ $< @mkdir -p .depfiles ; mv $*.d .depfilesqlogic_cs.o: qlogic_stub.o qlogicfas.o $(LD) -r -o $@ $+ ; chmod -x $@aha152x_cs.o: aha152x_stub.o aha152x.o $(LD) -r -o $@ $+ ; chmod -x $@fdomain_cs.o: fdomain_stub.o fdomain.o $(LD) -r -o $@ $+ ; chmod -x $@3c575_cb.o tulip_cb.o epic_cb.o eepro100_cb.o: %.o: %.c $(CC) -MD -c $(XFLAGS) -DMODULE -DCARDBUS $< @mkdir -p .depfiles ; mv $*.d .depfiles$(AIC7XXX) pcilynx.o ohci1394.o: %.o: %.c $(CC) -MD -c $(XFLAGS) -DPCMCIA -D__NO_VERSION__ $< @mkdir -p .depfiles ; mv $*.d .depfilesapa1480_cb.o: apa1480_stub.o $(AIC7XXX) $(LD) -r -o $@ $+ ; chmod -x $@pcilynx_cb.o: pcilynx_stub.o pcilynx.o $(LD) -r -o $@ $+ ; chmod -x $@ohci1394_cb.o: ohci1394_stub.o ohci1394.o $(LD) -r -o $@ $+ ; chmod -x $@clean: rm -f core core.* *.o .*.o *.s *.a *~ .depend .depfiles/*.dinstall-8390: 8390.o @mkdir -p $(PREFIX)$(MODDIR)/net @rm -f $(PREFIX)$(MODDIR)/net/8390.o cp 8390.o $(PREFIX)$(MODDIR)/netinstall: install-modules $(I_EXTRA)include ../rules.mk
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -