Kbuild 886 字节
Newer Older
ZHJ0125's avatar
ZHJ0125 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Makefile for busybox
#
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.

NEEDED-$(CONFIG_E2FSCK) = y
NEEDED-$(CONFIG_FSCK) = y
NEEDED-$(CONFIG_MKE2FS) = y
NEEDED-$(CONFIG_TUNE2FS) = y

lib-y:=
lib-$(NEEDED-y) += cache.o dev.o devname.o devno.o blkid_getsize.o \
                   probe.o read.o resolve.o save.o tag.o list.o

CFLAGS_dev.o     := -include $(srctree)/include/busybox.h
CFLAGS_devname.o := -include $(srctree)/include/busybox.h
CFLAGS_devno.o   := -include $(srctree)/include/busybox.h
CFLAGS_blkid_getsize.o := -include $(srctree)/include/busybox.h
CFLAGS_probe.o   := -include $(srctree)/include/busybox.h
CFLAGS_save.o    := -include $(srctree)/include/busybox.h
CFLAGS_tag.o     := -include $(srctree)/include/busybox.h
CFLAGS_list.o    := -include $(srctree)/include/busybox.h