makefile
来自「LINUX1.0内核源代码,学习LINUX编程的一定要看。」· 代码 · 共 70 行
TXT
70 行
## 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 + =
减小字号Ctrl + -
显示快捷键?