source: rtems/testsuites/libtests/tar02/Makefile.am @ 270434cc

4.11
Last change on this file since 270434cc was 270434cc, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 27, 2010 at 6:16:50 PM

2010-07-27 Joel Sherrill <joel.sherrill@…>

PR 1532/testing

  • Makefile.am, configure.ac: Add initial tests for untar capabilities.
  • tar01/.cvsignore, tar01/Makefile.am, tar01/init.c, tar01/tar01.doc, tar01/tar01.scn, tar02/.cvsignore, tar02/Makefile.am, tar02/init.c, tar02/tar02.doc, tar02/tar02.scn: New files.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5rtems_tests_PROGRAMS = tar02
6tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
7  initial_filesystem_tar.c
8
9dist_rtems_tests_DATA = tar02.scn
10
11include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
12include $(top_srcdir)/../automake/compile.am
13include $(top_srcdir)/../automake/leaf.am
14
15AM_CPPFLAGS += -I$(top_srcdir)/include
16AM_CPPFLAGS += -I$(top_srcdir)/../support/include
17AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
18
19LINK_OBJS = $(tar02_OBJECTS) $(tar02_LDADD)
20LINK_LIBS = $(tar02_LDLIBS)
21
22tar02$(EXEEXT): stamp-filesystem stamp-initial-fs-source $(tar02_OBJECTS) \
23    $(tar02_DEPENDENCIES)
24        @rm -f tar02$(EXEEXT)
25        $(make-exe)
26
27init.o: init.c stamp-initial-fs-source
28
29initial_filesystem_tar.c: stamp-initial-fs-source
30
31initial_filesystem_tar.h: stamp-initial-fs-source
32
33stamp-initial-fs-source: initial_filesystem.tar
34        $(BIN2C) initial_filesystem.tar initial_filesystem_tar
35        touch stamp-initial-fs-source
36
37stamp-filesystem:
38        rm -rf initial_fs
39        mkdir initial_fs
40        mkdir 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 && ln -s home/test_file symlink
44        touch stamp-filesystem
45
46initial_filesystem.tar: stamp-filesystem
47        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
48
49CLEANFILES = initial_filesystem* stamp-filesystem \
50            stamp-initial-fs-source
51
52include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.