makefile

来自「os arm os arm os arm os arm os arm os ar」· 代码 · 共 18 行

TXT
18
字号
include ../makeconfig

OBJS	=lib.o malloc.o write.o

../lib.o:	$(OBJS)
	$(LD) $(OBJS) -r -o ../lib.o 
%.o:%.c
	$(GCC) $(CFLAGS) $< -c -o $@
%.o:%.s
	$(AS) $(AFLAGS) $< -o $@

clean:
	rm -f *.o

lib.o:lib.c ../include/s3c2410/serial.h ../include/s3c2410/lcd.h ../include/s3c2410/s3c2410.h \
 ../include/kernel/sched.h ../include/s3c2410/cpu.h
malloc.o:malloc.c
write.o:write.c

⌨️ 快捷键说明

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