?? 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 + -