📄 makefile
字号:
## Makefile for the kernel block device drivers.## Note! Dependencies are done automagically by 'make dep', which also# removes any old dependencies. DON'T put your own dependencies here# unless it's something special (ie not a .c file).## Note 2! The CFLAGS definition is now inherited from the# parent makefile.#.c.s: $(CC) $(CFLAGS) -S $<.s.o: $(AS) -c -o $*.o $<.c.o: $(CC) $(CFLAGS) -c $<## Note : at this point, these files are compiled on all systems. # In the future, some of these should be built conditionally.#OBJS := ll_rw_blk.o floppy.o ramdisk.o genhd.o SRCS := ll_rw_blk.c floppy.c ramdisk.c genhd.c ifdef CONFIG_CDU31AOBJS := $(OBJS) cdu31a.oSRCS := $(SRCS) cdu31a.cendififdef CONFIG_MCDOBJS := $(OBJS) mcd.oSRCS := $(SRCS) mcd.cendififdef CONFIG_SBPCDOBJS := $(OBJS) sbpcd.oSRCS := $(SRCS) sbpcd.cendif #CONFIG_SBPCDifdef CONFIG_BLK_DEV_HDOBJS := $(OBJS) hd.oSRCS := $(SRCS) hd.cendififdef CONFIG_BLK_DEV_XDOBJS := $(OBJS) xd.oSRCS := $(SRCS) xd.cendifall: block.ablock.a: $(OBJS) rm -f block.a $(AR) rcs block.a $(OBJS) syncdep: $(CPP) -M $(SRCS) > .dependdummy:## include a dependency file if one exists#ifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -