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

4.11
Last change on this file since 18130481 was 18130481, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 29, 2010 at 4:20:36 PM

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

  • tar01/Makefile.am, tar02/Makefile.am: Replace mkdir cascade with $(MKDIR_P).
  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5rtems_tests_PROGRAMS = tar02
6tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
7  initial_filesystem_tar.c initial_filesystem_tar.h
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
22tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
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_P) initial_fs/home
37        (echo "This is a test of loading an RTEMS filesystem from an" ; \
38        echo "initial tar image.") >initial_fs/home/test_file
39        cd initial_fs && ln -s home/test_file symlink
40        touch stamp-filesystem
41
42initial_filesystem.tar: stamp-filesystem
43        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
44
45CLEANFILES = initial_filesystem* stamp-filesystem \
46            stamp-initial-fs-source
47
48include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.