makefile

来自「Linux 0.11 代码在不做修改的情况下,很难在现在的环境下这接编译通过(除」· 代码 · 共 46 行

TXT
46
字号
CC	=gcc# XXX lexiongjia modify# OLD:# CFLAGS	=-O -Wall -fstrength-reduce -fcombine-regs -fomit-frame-pointer \# 	-finline-functions -nostdinc -I../include# AS	=gas# AR	=gar# LD	=gldCFLAGS	=-O -Wall -fstrength-reduce -fomit-frame-pointer \	-finline-functions -nostdinc -mcpu=i386 -I../includeAS	=asAR	=arLD	=ldCPP	=gcc -E -nostdinc  -mcpu=i386 -I../include.c.o:	$(CC) $(CFLAGS) \	-c -o $*.o $<.s.o:	$(AS) -o $*.o $<.c.s:	$(CC) $(CFLAGS) \	-S -o $*.s $<OBJS	= memory.o page.oall: mm.omm.o: $(OBJS)	$(LD) -r -o mm.o $(OBJS)clean:	rm -f core *.o *.a tmp_make	for i in *.c;do rm -f `basename $$i .c`.s;donedep:	sed '/\#\#\# Dependencies/q' < Makefile > tmp_make	(for i in *.c;do $(CPP) -M $$i;done) >> tmp_make	cp tmp_make Makefile### Dependencies:memory.o : memory.c ../include/signal.h ../include/sys/types.h \  ../include/asm/system.h ../include/linux/sched.h ../include/linux/head.h \  ../include/linux/fs.h ../include/linux/mm.h ../include/linux/kernel.h 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?