rtems support: Rudimentary test harness now working.
[yaffs2.git] / rtems / rtems-y-test / Makefile
1 #
2 #  Makefile for yaffs-rtems-test.exe
3 #
4
5 #
6 #  RTEMS_MAKEFILE_PATH is typically set in an environment variable
7 #
8
9 EXEC=yaffs-rtems-test.exe
10 PGM=${ARCH}/$(EXEC)
11
12 # optional managers required
13 MANAGERS=all
14
15 # C source names
16 CSRCS = yaffs-rtems-test.c yaffs-rtems-flashsim.c
17 COBJS_ = $(CSRCS:.c=.o)
18 COBJS = $(COBJS_:%=${ARCH}/%)
19
20 # C++ source names
21 CXXSRCS =
22 CXXOBJS_ = $(CXXSRCS:.cc=.o)
23 CXXOBJS = $(CXXOBJS_:%=${ARCH}/%)
24
25 # AS source names
26 ASSRCS =
27 ASOBJS_ = $(ASSRCS:.s=.o)
28 ASOBJS = $(ASOBJS_:%=${ARCH}/%)
29
30 # Libraries
31 #LIBS = -lrtemsall -lc  -lyaffs2
32 LINK_LIBS = -lyaffs2
33
34 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
35
36 include $(RTEMS_CUSTOM)
37 include $(PROJECT_ROOT)/make/leaf.cfg
38
39 OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
40
41 all:    ${ARCH} $(PGM)
42
43 $(PGM): $(OBJS)
44         $(make-exe)
45