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

4.115
Last change on this file since b013e6d was b013e6d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/30/10 at 04:00:20

2010-06-23 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: autoconf >= 2.65, automake >= 1.11.
  • 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
11dist_rtems_tests_DATA = tar01.scn
12
13include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
14include $(top_srcdir)/../automake/compile.am
15include $(top_srcdir)/../automake/leaf.am
16
17AM_CPPFLAGS += -I$(top_srcdir)/include
18AM_CPPFLAGS += -I$(top_srcdir)/../support/include
19AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
20
21LINK_OBJS = $(tar01_OBJECTS) $(tar01_LDADD)
22LINK_LIBS = $(tar01_LDLIBS)
23
24tar01$(EXEEXT): $(tar01_OBJECTS) $(tar01_DEPENDENCIES)
25        @rm -f tar01$(EXEEXT)
26        $(make-exe)
27
28initial_filesystem_tar.c: initial_filesystem.tar
29        $(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
30CLEANFILES += initial_filesystem_tar.c
31
32initial_filesystem_tar.h: initial_filesystem.tar
33        $(BIN2C) -H initial_filesystem.tar initial_filesystem_tar
34CLEANFILES += initial_filesystem_tar.h
35
36stamp-filesystem:
37        rm -rf initial_fs
38        $(MKDIR_P) initial_fs/home
39        (echo "This is a test of loading an RTEMS filesystem from an" ; \
40        echo "initial tar image.") >initial_fs/home/test_file
41        cd initial_fs && ln -s home/test_file symlink
42        touch stamp-filesystem
43CLEANFILES += stamp-filesystem
44
45initial_filesystem.tar: stamp-filesystem
46        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
47CLEANFILES += initial_filesystem.tar
48
49CLEANFILES += initial_fs
50
51include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.