source: rtems/testsuites/libtests/tar01/Makefile.am @ e8899de3

4.115
Last change on this file since e8899de3 was e8899de3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/20/11 at 08:53:03

2011-06-20 Ralf Corsépius <ralf.corsepius@…>

  • devfs04/Makefile.am, deviceio01/Makefile.am, monitor02/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am, termios01/Makefile.am, termios03/Makefile.am, termios04/Makefile.am tztest/Makefile.am: Add missing files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1##
2## $Id$
3##
4
5if TARTESTS
6rtems_tests_PROGRAMS = tar01
7tar01_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
8  initial_filesystem_tar.c initial_filesystem_tar.h
9 
10BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h
11
12dist_rtems_tests_DATA = tar01.scn
13dist_rtems_tests_DATA += tar01.doc
14endif TARTESTS
15
16include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
17include $(top_srcdir)/../automake/compile.am
18include $(top_srcdir)/../automake/leaf.am
19
20if TARTESTS
21AM_CPPFLAGS += -I$(top_srcdir)/include
22AM_CPPFLAGS += -I$(top_srcdir)/../support/include
23AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
24
25LINK_OBJS = $(tar01_OBJECTS) $(tar01_LDADD)
26LINK_LIBS = $(tar01_LDLIBS)
27
28tar01$(EXEEXT): $(tar01_OBJECTS) $(tar01_DEPENDENCIES)
29        @rm -f tar01$(EXEEXT)
30        $(make-exe)
31
32initial_filesystem_tar.c: initial_filesystem.tar
33        $(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
34CLEANFILES += initial_filesystem_tar.c
35
36initial_filesystem_tar.h: initial_filesystem.tar
37        $(BIN2C) -H initial_filesystem.tar initial_filesystem_tar
38CLEANFILES += initial_filesystem_tar.h
39
40initial_filesystem.tar:
41        rm -rf initial_fs
42        $(MKDIR_P) initial_fs/home
43        (echo "This is a test of loading an RTEMS filesystem from an" ; \
44        echo "initial tar image.") >initial_fs/home/test_file
45        (cd initial_fs; \
46        $(LN_S) home/test_file symlink; \
47        $(PAX) -w -f ../initial_filesystem.tar home symlink)
48CLEANFILES += initial_filesystem.tar
49endif TARTESTS
50
51clean-local:
52        -rm -rf initial_fs
53
54include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.