aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: d9818fb987546b03f1b2660af79676f94c97d10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Process this file with automake to produce Makefile.in

sbin_PROGRAMS = ftl_format erase eraseall nftldump nanddump doc_loadbios \
               nftl_format mkfs.jffs ftl_check nandtest nandwrite mkfs.jffs2 \
	       lock unlock einfo mtd_debug fcp

CFLAGS = -O2 -Wall
INCLUDES = -I@CONFIG_KERNELDIR@/include -I@CONFIG_KERNELDIR@/fs/jffs2
SYMLINKS = crc32.h crc32.c compr_rtime.c compr_rubin.c compr_zlib.c compr.c pushpull.c pushpull.h histo_mips.h compr_rubin.h
CLEANFILES = $(SYMLINKS)

mkfs_jffs2_SOURCES = mkfs.jffs2.c $(SYMLINKS)

$(SYMLINKS):
	ln -sf @CONFIG_KERNELDIR@/fs/jffs2/$@ $@

compr.o: compr.c
	$(COMPILE) $(CFLAGS) $(INCLUDES) -Dprintk=printf -DKERN_NOTICE= -DKERN_WARNING= -c -o $@ $<