1 | if TARTESTS |
---|
2 | rtems_tests_PROGRAMS = tar02 |
---|
3 | tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \ |
---|
4 | initial_filesystem_tar.c initial_filesystem_tar.h |
---|
5 | |
---|
6 | BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h |
---|
7 | |
---|
8 | dist_rtems_tests_DATA = tar02.scn |
---|
9 | dist_rtems_tests_DATA += tar02.doc |
---|
10 | endif |
---|
11 | |
---|
12 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
13 | include $(top_srcdir)/../automake/compile.am |
---|
14 | include $(top_srcdir)/../automake/leaf.am |
---|
15 | |
---|
16 | if TARTESTS |
---|
17 | AM_CPPFLAGS += -I$(top_srcdir)/include |
---|
18 | AM_CPPFLAGS += -I$(top_srcdir)/../support/include |
---|
19 | AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include |
---|
20 | |
---|
21 | LINK_OBJS = $(tar02_OBJECTS) |
---|
22 | LINK_LIBS = $(tar02_LDLIBS) |
---|
23 | |
---|
24 | tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES) |
---|
25 | @rm -f tar02$(EXEEXT) |
---|
26 | $(make-exe) |
---|
27 | |
---|
28 | init.c: initial_filesystem_tar.h |
---|
29 | |
---|
30 | initial_filesystem_tar.c: initial_filesystem.tar |
---|
31 | $(BIN2C) -C initial_filesystem.tar initial_filesystem_tar |
---|
32 | CLEANFILES += initial_filesystem_tar.c |
---|
33 | |
---|
34 | initial_filesystem_tar.h: initial_filesystem.tar |
---|
35 | $(BIN2C) -H initial_filesystem.tar initial_filesystem_tar |
---|
36 | CLEANFILES += initial_filesystem_tar.h |
---|
37 | |
---|
38 | initial_filesystem.tar: |
---|
39 | rm -rf initial_fs |
---|
40 | $(MKDIR_P) initial_fs/home |
---|
41 | (echo "This is a test of loading an RTEMS filesystem from an" ; \ |
---|
42 | echo "initial tar image.") >initial_fs/home/test_file |
---|
43 | (cd initial_fs; \ |
---|
44 | $(LN_S) home/test_file symlink; \ |
---|
45 | $(PAX) -w -f ../initial_filesystem.tar home symlink) |
---|
46 | CLEANFILES += initial_filesystem.tar |
---|
47 | endif TARTESTS |
---|
48 | |
---|
49 | clean-local: |
---|
50 | -rm -rf initial_fs |
---|
51 | |
---|
52 | include $(top_srcdir)/../automake/local.am |
---|