source: rtems/testsuites/libtests/tar02/Makefile.am @ cc43b364

4.115
Last change on this file since cc43b364 was cc43b364, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/31/10 at 03:07:34

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

  • tar01/Makefile.am, tar02/Makefile.am: Apply clean-local to remove intital_fs directory.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5if TARTESTS
6rtems_tests_PROGRAMS = tar02
7tar02_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 = tar02.scn
13endif
14
15include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
16include $(top_srcdir)/../automake/compile.am
17include $(top_srcdir)/../automake/leaf.am
18
19if TARTESTS
20AM_CPPFLAGS += -I$(top_srcdir)/include
21AM_CPPFLAGS += -I$(top_srcdir)/../support/include
22AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
23
24LINK_OBJS = $(tar02_OBJECTS) $(tar02_LDADD)
25LINK_LIBS = $(tar02_LDLIBS)
26
27tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
28        @rm -f tar02$(EXEEXT)
29        $(make-exe)
30
31initial_filesystem_tar.c: initial_filesystem.tar
32        $(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
33CLEANFILES += initial_filesystem_tar.c
34
35initial_filesystem_tar.h: initial_filesystem.tar
36        $(BIN2C) -H initial_filesystem.tar initial_filesystem_tar
37CLEANFILES += initial_filesystem_tar.h
38
39initial_filesystem.tar:
40        rm -rf initial_fs
41        $(MKDIR_P) initial_fs/home
42        (echo "This is a test of loading an RTEMS filesystem from an" ; \
43        echo "initial tar image.") >initial_fs/home/test_file
44        (cd initial_fs; \
45        $(LN_S) home/test_file symlink; \
46        $(PAX) -w -f ../initial_filesystem.tar home symlink)
47CLEANFILES += initial_filesystem.tar
48endif TARTESTS
49
50clean-local:
51        -rm -rf initial_fs
52
53include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.