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}/%)
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)