📄 makefile
字号:
#Makefile for mkyaffs
#
# NB this is not yet suitable for putting into the kernel tree.
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
# Copyright (C) 2002 Aleph One Ltd.
# for Toby Churchill Ltd and Brightstar Engineering
#
# Created by Charles Manning <charles@aleph1.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
## Change or override KERNELDIR to your kernel
KERNELDIR = /usr/src/kernel-headers-2.4.18
CFLAGS = -I$(KERNELDIR)/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL
CFLAGS+= -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
CFLAGS+= -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
## Change if you are using a cross-compiler
MAKETOOLS =
CC=$(MAKETOOLS)gcc
MKYAFFSOBJS = mkyaffs.o
MKYAFFSIMAGEOBJS = mkyaffsimage.o nand_ecc.o
all: mkyaffs mkyaffsimage
$(MKYAFFSIMAGEOBJS): %.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
mkyaffsimage: $(MKYAFFSIMAGEOBJS)
$(CC) -o $@ $(MKYAFFSIMAGEOBJS)
$(MKYAFFSOBJS): %.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
mkyaffs: $(MKYAFFSOBJS)
$(CC) -o $@ $(MKYAFFSOBJS)
nand_ecc.c:
ln -s ../nand_ecc.c nand_ecc.c
clean:
rm -f $(MKYAFFSOBJS) $(MKYAFFSIMAGEOBJS) core
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -