Tests will now delete the emfiles with make clean
[yaffs2.git] / direct / test-framework / FrameworkRules.mk
index bf7ae0c1676dec2be38d4fcdbcc2ba29f4239f0d..f8cd849c69290ea3d2768727b5c52d5d3236000c 100644 (file)
@@ -17,7 +17,7 @@
 
 #EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
 
-CFLAGS =      -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_YAFFS2  -DCONFIG_YAFFS_DEFINES_TYPES
+CFLAGS +=      -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_YAFFS2  -DCONFIG_YAFFS_DEFINES_TYPES
 CFLAGS +=     -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
 CFLAGS +=     -DCONFIG_YAFFS_MONITOR_MALLOC
 CFLAGS +=    -Wall -g $(EXTRA_COMPILE_FLAGS) -Wstrict-aliasing -Werror
@@ -28,7 +28,7 @@ CFLAGS +=    -Wextra -Wpointer-arith
 
 #CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
 #CFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
-
+CLEAN_OBJS = emfile-2k-0 emfile-nand emfile-nand128MB
 
 COMMONTESTOBJS = yaffscfg2k.o yaffs_osglue.o yaffs_hweight.o yaffs_error.o\
                 yaffs_ecc.o yaffs_fileem.o yaffs_fileem2k.o yaffsfs.o yaffs_guts.o \
@@ -108,4 +108,3 @@ $(FRAMEWORKEXTRASYMLINKS):
        ln -s $(YDI_FRAMEWORK_DIR)/$@ $@
 
 $(ALLOBJS): %.o: %.c
-       gcc -c $(CFLAGS)   -o $@ $<