X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rtems%2Frtems-y-test%2Fbasic-test%2FMakefile;fp=rtems%2Frtems-y-test%2FMakefile;h=9576d69e3684ddb15f6ff83d2d9b74ad6fe000d2;hb=7c666cd589631a555da943396a3124a610487b7e;hp=401805173b91b76d3c5b93cf6c8f274406ed5985;hpb=0d592874019a980b1a32b887be84aaabe7fb0b0c;p=yaffs2.git diff --git a/rtems/rtems-y-test/Makefile b/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 4018051..9576d69 100644 --- a/rtems/rtems-y-test/Makefile +++ b/rtems/rtems-y-test/basic-test/Makefile @@ -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)