source: rtems/testsuites/libtests/tar01/Makefile.am @ 9b52f0e

4.115
Last change on this file since 9b52f0e was 9b52f0e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/30/10 at 08:53:58

Fix typo.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5CLEANFILES =
6
7rtems_tests_PROGRAMS = tar01
8tar01_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
9  initial_filesystem_tar.c initial_filesystem_tar.h
10 
11BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h
12
13dist_rtems_tests_DATA = tar01.scn
14
15include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
16include $(top_srcdir)/../automake/compile.am
17include $(top_srcdir)/../automake/leaf.am
18
19AM_CPPFLAGS += -I$(top_srcdir)/include
20AM_CPPFLAGS += -I$(top_srcdir)/../support/include
21AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
22
23LINK_OBJS = $(tar01_OBJECTS) $(tar01_LDADD)
24LINK_LIBS = $(tar01_LDLIBS)
25
26tar01$(EXEEXT): $(tar01_OBJECTS) $(tar01_DEPENDENCIES)
27        @rm -f tar01$(EXEEXT)
28        $(make-exe)
29
30initial_filesystem_tar.c: initial_filesystem.tar
31        $(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
32CLEANFILES += initial_filesystem_tar.c
33
34initial_filesystem_tar.h: initial_filesystem.tar
35        $(BIN2C) -H initial_filesystem.tar initial_filesystem_tar
36CLEANFILES += initial_filesystem_tar.h
37
38initial_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)
46CLEANFILES += initial_filesystem.tar
47
48include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.