X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=rtems%2Frtems-y-test%2Fbasic-test%2FMakefile;fp=rtems%2Frtems-y-test%2Fbasic-test%2FMakefile;h=9576d69e3684ddb15f6ff83d2d9b74ad6fe000d2;hb=7c666cd589631a555da943396a3124a610487b7e;hp=0000000000000000000000000000000000000000;hpb=0d592874019a980b1a32b887be84aaabe7fb0b0c;p=yaffs2.git diff --git a/rtems/rtems-y-test/basic-test/Makefile b/rtems/rtems-y-test/basic-test/Makefile new file mode 100644 index 0000000..9576d69 --- /dev/null +++ b/rtems/rtems-y-test/basic-test/Makefile @@ -0,0 +1,58 @@ +# +# Makefile for yaffs-rtems-test.exe +# + +# +# RTEMS_MAKEFILE_PATH is typically set in an environment variable +# + +EXEC=yaffs-rtems-test.exe +PGM=${ARCH}/$(EXEC) + +# optional managers required +MANAGERS=all + +# C source names +CSRCS = yaffs-rtems-basic-test.c +CSRCS += yaffs-rtems-test-wrapper.c yaffs-rtems-flashsim.c +COBJS_ = $(CSRCS:.c=.o) +COBJS = $(COBJS_:%=${ARCH}/%) + +# C++ source names +CXXSRCS = +CXXOBJS_ = $(CXXSRCS:.cc=.o) +CXXOBJS = $(CXXOBJS_:%=${ARCH}/%) + +# AS source names +ASSRCS = +ASOBJS_ = $(ASSRCS:.s=.o) +ASOBJS = $(ASOBJS_:%=${ARCH}/%) + +# Libraries +#LIBS = -lrtemsall -lc -lyaffs2 +LINK_LIBS = -lyaffs2 + +include $(RTEMS_MAKEFILE_PATH)/Makefile.inc + +include $(RTEMS_CUSTOM) +include $(PROJECT_ROOT)/make/leaf.cfg + +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) +