Add fsx file test and split up basic tests.
[yaffs2.git] / rtems / rtems-y-test / basic-test / Makefile
similarity index 66%
rename from rtems/rtems-y-test/Makefile
rename to rtems/rtems-y-test/basic-test/Makefile
index 401805173b91b76d3c5b93cf6c8f274406ed5985..9576d69e3684ddb15f6ff83d2d9b74ad6fe000d2 100644 (file)
@@ -13,7 +13,8 @@ PGM=${ARCH}/$(EXEC)
 MANAGERS=all
 
 # C source names
-CSRCS = yaffs-rtems-test.c yaffs-rtems-flashsim.c
+CSRCS = yaffs-rtems-basic-test.c
+CSRCS += yaffs-rtems-test-wrapper.c yaffs-rtems-flashsim.c
 COBJS_ = $(CSRCS:.c=.o)
 COBJS = $(COBJS_:%=${ARCH}/%)
 
@@ -40,6 +41,18 @@ OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
 
 all:    ${ARCH} $(PGM)
 
+#Create symlinks
+yaffs-rtems-test-wrapper.c: ../common/yaffs-rtems-test-wrapper.c
+       ln -sf $^ $@
+
+yaffs-rtems-flashsim.c: ../common/yaffs-rtems-flashsim.c
+       ln -sf $^ $@
+
+yaffs-rtems-flashsim.h: ../common/yaffs-rtems-flashsim.h
+       ln -sf $^ $@
+
+$(OBJS): yaffs-rtems-flashsim.h
+
 $(PGM): $(OBJS)
        $(make-exe)