source: rtems/testsuites/libtests/tar02/Makefile.am @ 48b2c10e

4.115
Last change on this file since 48b2c10e was 48b2c10e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/29/10 at 16:17:15

2010-07-29 Ralf Corsépius <ralf.corsepius@…>

  • tar01/Makefile.am, tar02/Makefile.am: Misc. fixes.
  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[270434cc]1##
2## $Id$
3##
4
5rtems_tests_PROGRAMS = tar02
6tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
[48b2c10e]7  initial_filesystem_tar.c initial_filesystem_tar.h
[270434cc]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
[48b2c10e]22tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
[270434cc]23        @rm -f tar02$(EXEEXT)
24        $(make-exe)
25
26initial_filesystem_tar.c: stamp-initial-fs-source
27
28initial_filesystem_tar.h: stamp-initial-fs-source
29
30stamp-initial-fs-source: initial_filesystem.tar
31        $(BIN2C) initial_filesystem.tar initial_filesystem_tar
32        touch stamp-initial-fs-source
33
34stamp-filesystem:
35        rm -rf initial_fs
36        mkdir initial_fs
37        mkdir initial_fs/home
38        (echo "This is a test of loading an RTEMS filesystem from an" ; \
39        echo "initial tar image.") >initial_fs/home/test_file
40        cd initial_fs && ln -s home/test_file symlink
41        touch stamp-filesystem
42
43initial_filesystem.tar: stamp-filesystem
44        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
45
46CLEANFILES = initial_filesystem* stamp-filesystem \
47            stamp-initial-fs-source
48
49include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.