source: rtems/testsuites/libtests/tar01/Makefile.am @ 1061b9df

4.11
Last change on this file since 1061b9df was 1061b9df, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 30, 2010 at 5:51:07 AM

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

  • tar01/Makefile.am, tar02/Makefile.am: Add BUILT_SOURCES.
  • Property mode set to 100644
File size: 1.5 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
38stamp-filesystem:
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 && ln -s home/test_file symlink
44        touch stamp-filesystem
45CLEANFILES += stamp-filesystem
46
47initial_filesystem.tar: stamp-filesystem
48        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
49CLEANFILES += initial_filesystem.tar
50
51CLEANFILES += initial_fs
52
53include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.